summaryrefslogtreecommitdiff
path: root/src/cairo-unicode.c
AgeCommit message (Collapse)AuthorFilesLines
2008-10-14[doc] Fix a few gtk-doc errors.Chris Wilson1-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.
2008-08-08[unicode] Add _cairo_utf8_get_char_validated()Behdad Esfahbod1-2/+40
2008-06-29Add _cairo_ucs4_to_utf8Adrian Johnson1-0/+39
2008-06-26Allow NULL output in _cairo_utf8_to_ucs4()Behdad Esfahbod1-10/+13
The function can be used to validate UTF-8 text now.
2008-06-01Fix now-detected doc formatting issuesBehdad Esfahbod1-1/+2
2008-05-28[cairo-unicode] Make unicode conversion funcs take const char *utf8Behdad Esfahbod1-16/+18
Instead of the previous const unsigned char *utf8. This is in line with our public API now.
2008-01-28[doc] Make sure all function names in docs are followed by ()Behdad Esfahbod1-2/+1
2007-12-20[cairo-unicode] Don't compile _cairo_utf8_to_utf16 on LinuxBehdad Esfahbod1-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.
2007-10-04[cairo-error] Clean up all the warnings and missing _cairo_error() calls.Chris Wilson1-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.
2007-10-04[malloc/error] Add call to _cairo_error() after a failed malloc.Chris Wilson1-2/+6
Blitz all allocations to ensure that they raise a _cairo_error(CAIRO_STATUS_NO_MEMORY) on failure.
2007-06-29[fix] Avoid int overflow when allocating large buffersVladimir Vukicevic1-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.
2007-04-03[src] Make sure all source files #include "cairoint.h" as their first includeBehdad Esfahbod1-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.
2007-01-07Spell check the docsBehdad Esfahbod1-2/+2
2006-06-06Remove initial, final, and duplicate blank lines.Carl Worth1-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.
2006-06-06Remove all remaining trailing whitespace.Carl Worth1-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.
2006-06-06Remove trailing whitespace from lines that look like comments.Carl Worth1-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).
2006-06-06Remove extraneous whitespace from "blank" lines.Carl Worth1-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.
2005-04-02Style and indentation fixes.Carl Worth1-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.
2005-02-01Commit earlier missed new fileOwen Taylor1-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.