summaryrefslogtreecommitdiff
path: root/src/raptor_utf8.c
diff options
context:
space:
mode:
authorDave Beckett <dave@dajobe.org>2003-12-06 23:01:11 +0000
committerDave Beckett <dave@dajobe.org>2003-12-06 23:01:11 +0000
commit0b41e4ba594953e680432ed3efc7c7c88be46306 (patch)
treef64def051321f86204a6b143c3bae0f72dfbc634 /src/raptor_utf8.c
parent4886c33e5535942c5ad5210109dd17c33c38ee53 (diff)
downloadraptor-0b41e4ba594953e680432ed3efc7c7c88be46306.tar.gz
(raptor_unicode_char_to_utf8): unsigned char* arg.
(raptor_utf8_is_nfc): unsigned int, cast for unsigned char*
Diffstat (limited to 'src/raptor_utf8.c')
-rw-r--r--src/raptor_utf8.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/raptor_utf8.c b/src/raptor_utf8.c
index db41cbba..728a4f2a 100644
--- a/src/raptor_utf8.c
+++ b/src/raptor_utf8.c
@@ -52,7 +52,7 @@
* Return value: bytes encoded to output buffer or <0 on failure
**/
int
-raptor_unicode_char_to_utf8(unsigned long c, char *output)
+raptor_unicode_char_to_utf8(unsigned long c, unsigned char *output)
{
int size=0;
@@ -677,7 +677,7 @@ raptor_unicode_is_extender(long c)
int
raptor_utf8_is_nfc(const unsigned char *input, size_t length)
{
- int i;
+ unsigned int i;
int plain=1;
#ifdef HAVE_G_UTF8_NORMALIZE
unsigned char *norm;
@@ -693,7 +693,7 @@ raptor_utf8_is_nfc(const unsigned char *input, size_t length)
return 1;
#ifdef HAVE_G_UTF8_NORMALIZE
- norm=(unsigned char*)g_utf8_normalize(input, length, G_NORMALIZE_NFKC);
+ norm=(unsigned char*)g_utf8_normalize((const gchar*)input, length, G_NORMALIZE_NFKC);
for(i=0; i<length; i++)
if(input[i] != norm[i]) {
free(norm);