diff options
author | Adrian Johnson <ajohnson@redneon.com> | 2009-09-28 19:14:46 +0930 |
---|---|---|
committer | Adrian Johnson <ajohnson@redneon.com> | 2009-10-29 22:05:19 +1030 |
commit | 600dd833983bd85bf8aea487393ce156abb622bd (patch) | |
tree | 6009453b80ba5f2f955fa07d39d34f4354f9548c /src/cairo-output-stream.c | |
parent | f571356d346565cae34f08d12c584c4bd40921d6 (diff) |
Provide a builtin implementation of isspace() and isdigit()
The glibc versions are slow in utf8 locales.
Diffstat (limited to 'src/cairo-output-stream.c')
-rw-r--r-- | src/cairo-output-stream.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/cairo-output-stream.c b/src/cairo-output-stream.c index 71154339..20f676c9 100644 --- a/src/cairo-output-stream.c +++ b/src/cairo-output-stream.c @@ -41,7 +41,6 @@ #include <stdio.h> #include <locale.h> -#include <ctype.h> #include <errno.h> /* Numbers printed with %f are printed with this number of significant @@ -341,7 +340,7 @@ _cairo_dtostr (char *buffer, size_t size, double d, cairo_bool_t limited_precisi if (*p == '+' || *p == '-') p++; - while (isdigit (*p)) + while (_cairo_isdigit (*p)) p++; if (strncmp (p, decimal_point, decimal_point_len) == 0) @@ -362,7 +361,7 @@ _cairo_dtostr (char *buffer, size_t size, double d, cairo_bool_t limited_precisi if (*p == '+' || *p == '-') p++; - while (isdigit (*p)) + while (_cairo_isdigit (*p)) p++; if (strncmp (p, decimal_point, decimal_point_len) == 0) { @@ -434,7 +433,7 @@ _cairo_output_stream_vprintf (cairo_output_stream_t *stream, f++; } - while (isdigit (*f)) + while (_cairo_isdigit (*f)) f++; length_modifier = 0; |