summaryrefslogtreecommitdiff
path: root/src/cairo-unicode.c
Commit message (Collapse)AuthorAgeFilesLines
* [unicode] Non-characters are allowed in Unicode stringsBehdad Esfahbod2022-05-181-3/+1
| | | | | | https://www.unicode.org/faq/private_use.html#nonchar_codes Fixes https://github.com/harfbuzz/harfbuzz/issues/3590
* Remove unused variableAdrian Johnson2017-09-021-2/+0
|
* unicode: Extract the UCS4 to UTF-16 conversion to a separate functionAndrea Canciani2017-04-251-6/+33
| | | | | Reuse the function for the UTF-8 to UTF-16 conversion, but also make it available for internal use by cairo.
* Update FSF addressAndrea Canciani2010-04-271-1/+1
| | | | | | | | | | | I updated the Free Software Foundation address using the following script. for i in $(git grep Temple | cut -d: -f1 ) do sed -e 's/59 Temple Place[, -]* Suite 330, Boston, MA *02111-1307[, ]* USA/51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA/' -i "$i" done Fixes http://bugs.freedesktop.org/show_bug.cgi?id=21356
* Move _cairo_error() to a standalone headerChris Wilson2010-01-221-0/+1
| | | | | A pending commit will want to include some utility code from cairo and so we need to extricate the error handling from the PLT symbol hiding.
* [doc] Fix a few gtk-doc errors.Chris Wilson2008-10-141-2/+4
| | | | | | gtk-doc insists on a non-empty long description, even for trivial functions that are fully described by their input arguments and return value. Grrr.
* [unicode] Add _cairo_utf8_get_char_validated()Behdad Esfahbod2008-08-081-2/+40
|
* Add _cairo_ucs4_to_utf8Adrian Johnson2008-06-291-0/+39
|
* Allow NULL output in _cairo_utf8_to_ucs4()Behdad Esfahbod2008-06-261-10/+13
| | | | The function can be used to validate UTF-8 text now.
* Fix now-detected doc formatting issuesBehdad Esfahbod2008-06-011-1/+2
|
* [cairo-unicode] Make unicode conversion funcs take const char *utf8Behdad Esfahbod2008-05-281-16/+18
| | | | | Instead of the previous const unsigned char *utf8. This is in line with our public API now.
* [doc] Make sure all function names in docs are followed by ()Behdad Esfahbod2008-01-281-2/+1
|
* [cairo-unicode] Don't compile _cairo_utf8_to_utf16 on LinuxBehdad Esfahbod2007-12-201-0/+2
| | | | | The _cairo_utf8_to_utf16() is only used in win32 and atsui font backends. Don't build it if none of those two are available.
* [cairo-error] Clean up all the warnings and missing _cairo_error() calls.Chris Wilson2007-10-041-12/+8
| | | | | | | | | | | Every time we assign or return a hard-coded error status wrap that value with a call to _cairo_error(). So the idiom becomes: status = _cairo_error (CAIRO_STATUS_NO_MEMORY); or return _cairo_error (CAIRO_STATUS_INVALID_DASH); This ensures that a breakpoint placed on _cairo_error() will trigger immediately cairo detects the error.
* [malloc/error] Add call to _cairo_error() after a failed malloc.Chris Wilson2007-10-041-2/+6
| | | | | Blitz all allocations to ensure that they raise a _cairo_error(CAIRO_STATUS_NO_MEMORY) on failure.
* [fix] Avoid int overflow when allocating large buffersVladimir Vukicevic2007-06-291-2/+2
| | | | | | | | This patch introduces three macros: _cairo_malloc_ab, _cairo_malloc_abc, _cairo_malloc_ab_plus_c and replaces various calls to malloc(a*b), malloc(a*b*c), and malloc(a*b+c) with them. The macros return NULL if int overflow would occur during the allocation. See CODING_STYLE for more information.
* [src] Make sure all source files #include "cairoint.h" as their first includeBehdad Esfahbod2007-04-031-3/+1
| | | | | | | | | | | | | | | | | | This is necessary to avoid many portability problems as cairoint.h includes config.h. Without a test, we will regress again, hence add it. The inclusion idiom for cairo now is: #include "cairoint.h" #include "cairo-something.h" #include "cairo-anotherthing-private.h" #include <some-library.h> #include <other-library/other-file.h> Moreover, some standard headers files are included from cairoint.h and need not be included again.
* Spell check the docsBehdad Esfahbod2007-01-071-2/+2
|
* Remove initial, final, and duplicate blank lines.Carl Worth2006-06-061-3/+0
| | | | | | This patch was produced by running git-stripspace on all *.[ch] files within cairo. Note that this script would have also created all the changes from the previous commits to remove trailing whitespace.
* Remove all remaining trailing whitespace.Carl Worth2006-06-061-1/+1
| | | | | | | | | | | This patch was produced with the following (GNU) sed script: sed -i -r -e 's/[ \t]+$//' run on all *.[ch] files within cairo. Note that the above script would have also created all the changes from the previous commits to remove trailing whitespace.
* Remove trailing whitespace from lines that look like comments.Carl Worth2006-06-061-5/+5
| | | | | | | | | | This patch was produced with the following (GNU) sed script: sed -i -r -e '/^[ \t]*\/?\*/ s/[ \t]+$//' run on all *.[ch] files within cairo, (though I manually excluded src/cairo-atsui-font.c which has a code line that appears as a comment to this script).
* Remove extraneous whitespace from "blank" lines.Carl Worth2006-06-061-15/+15
| | | | | | | | This patch was produced with the following (GNU) sed script: sed -i -r -e 's/^[ \t]+$//' run on all *.[ch] files within cairo.
* Style and indentation fixes.Carl Worth2005-04-021-14/+14
| | | | | | | cast to quiet new gcc-4 warnings. Initialize variables to quiet new gcc-4 warnings. Use unsigned char* as expected by freetype, libpng, Xlib, and zlib. Propagate unsigned char* down from cairo_text_extents.
* Commit earlier missed new fileOwen Taylor2005-02-011-0/+340
src/cairo_unicode.c src/cairoint.h src/Makefile.am: Add _cairo_utf8_to_utf16(), _cairo_utf8_to_ucs4() based on code from GLib.