summaryrefslogtreecommitdiffstats
path: root/src/io/inkscapestream.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-11-18Move i/o stream classes into own directory. Add README.Tavmjong Bah1-800/+0
2018-11-08Clarify licensesMax Gaukler1-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
2018-09-29Inkscapestream: Make some things const and avoid unnecessary copiesEduard Braun1-5/+4
2018-09-29Purge gunichar from InkscapestreamEduard Braun1-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.
2018-09-29Inkscapestream: Fix write methods for string typesEduard Braun1-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.
2018-09-22Inkscapestream: Incredible speed up for writing of stringsEduard Braun1-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
2018-05-04Revert "Fix include order with clang-tidy check llvm-include-order"Marc Jeanmougin1-1/+1
This reverts commit bba4ff6672494fab59286b50f6c645ad62a47e60.
2018-04-29Fix include order with clang-tidy check llvm-include-orderMarc Jeanmougin1-1/+1
2013-03-08Preparation to merge /dom/io and /io code (bug #1120585 )Kris De Gussem1-1/+1
(bzr r12184)
2013-03-03Preparation to merge /dom/io and /io code (bug #1120585 )Kris De Gussem1-39/+3
(bzr r12168)
2013-02-13fixing variable type in stream classes to what was intended (preparation for ↵Kris De Gussem1-7/+3
solving bug #1120585 ) (bzr r12123)
2013-02-11A couple of forward declarationsAlex Valavanis1-1/+1
(bzr r12119)
2011-10-27Fixing more broken and split doc comments.Jon A. Cruz1-1/+1
(bzr r10697)
2007-10-11Avoid string literal char* warnings on g++-4.2: change some functions to ↵Peter Moulder1-2/+2
take char const* rather than char*. (bzr r3874)