summaryrefslogtreecommitdiffstats
path: root/src/io/inkscapestream.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Move i/o stream classes into own directory. Add README.Tavmjong Bah2018-11-181-800/+0
|
* Clarify licensesMax Gaukler2018-11-081-1/+2
| | | | | | - add license headers to everything - convert a few files from public domain or LGPL2.1+ to GPL2+ - some archaeology to clarify which files are from which library
* Inkscapestream: Make some things const and avoid unnecessary copiesEduard Braun2018-09-291-5/+4
|
* Purge gunichar from InkscapestreamEduard Braun2018-09-291-17/+14
| | | | | | | | | | None of these functions seems to expect an actual gunichar (which is a 32-bit type and can hold any UTF-32 or UCS-4 character code, also known as a Unicode code point). Instead we want UTF-8 encoded character data (i.e. gchar, which is equivalent to char) that can be output byte-wise to form a valid UTF-8 encoded string.
* Inkscapestream: Fix write methods for string typesEduard Braun2018-09-291-7/+7
| | | | | | | | | | | As we output UTF8 encoded strings to normal streams we can (and should) put one byte at a time. Iterating over an ustring will give us "unichar"s with up to four bytes, though, which is bound to fail when written to a stream. Using Glib::ustring::raw() gives us a std::string with the raw (but still UTF8 encoded) character array that can be iterated byte-wise and output to the stream as-is.
* Inkscapestream: Incredible speed up for writing of stringsEduard Braun2018-09-221-2/+3
| | | | | | | | | | | | | This tremendously speeds up saving long strings which previously had to do "n!" lookups (where n is the number of chars) as Glib::ustring::operator[] has to iterate over all preceding unichars in each iteration to find the requested unichar. A file with a CDATA section of ~1 MB saves in a few milliseconds now, previously it didn't finish even after some minutes. Fixed bugs: - https://bugs.launchpad.net/inkscape/+bug/1793877
* Revert "Fix include order with clang-tidy check llvm-include-order"Marc Jeanmougin2018-05-041-1/+1
| | | | This reverts commit bba4ff6672494fab59286b50f6c645ad62a47e60.
* Fix include order with clang-tidy check llvm-include-orderMarc Jeanmougin2018-04-291-1/+1
|
* Preparation to merge /dom/io and /io code (bug #1120585 )Kris De Gussem2013-03-081-1/+1
| | | (bzr r12184)
* Preparation to merge /dom/io and /io code (bug #1120585 )Kris De Gussem2013-03-031-39/+3
| | | (bzr r12168)
* fixing variable type in stream classes to what was intended (preparation for ↵Kris De Gussem2013-02-131-7/+3
| | | | | solving bug #1120585 ) (bzr r12123)
* A couple of forward declarationsAlex Valavanis2013-02-111-1/+1
| | | (bzr r12119)
* Fixing more broken and split doc comments.Jon A. Cruz2011-10-271-1/+1
| | | (bzr r10697)
* Avoid string literal char* warnings on g++-4.2: change some functions to ↵Peter Moulder2007-10-111-2/+2
| | | | | take char const* rather than char*. (bzr r3874)
* moving trunk for module inkscapeMenTaLguY2006-01-161-0/+842
(bzr r1)