Unicode

Unicode — Unicode and UTF-8 utility functions.

Functions

Types and Values

typedef raptor_unichar

Description

Functions to support converting to and from Unicode written in UTF-8 which is the native internal string format of all the redland libraries. Includes checking for Unicode names using either the XML 1.0 or XML 1.1 rules.

Functions

raptor_unicode_utf8_string_put_char ()

int
raptor_unicode_utf8_string_put_char (raptor_unichar c,
                                     unsigned char *output,
                                     size_t length);

Returns


raptor_unicode_utf8_string_get_char ()

int
raptor_unicode_utf8_string_get_char (const unsigned char *input,
                                     size_t length,
                                     raptor_unichar *output);

Returns


raptor_unicode_is_xml11_namestartchar ()

int
raptor_unicode_is_xml11_namestartchar (raptor_unichar c);

Returns


raptor_unicode_is_xml10_namestartchar ()

int
raptor_unicode_is_xml10_namestartchar (raptor_unichar c);

Returns


raptor_unicode_is_xml11_namechar ()

int
raptor_unicode_is_xml11_namechar (raptor_unichar c);

Returns


raptor_unicode_is_xml10_namechar ()

int
raptor_unicode_is_xml10_namechar (raptor_unichar c);

Returns


raptor_unicode_check_utf8_string ()

int
raptor_unicode_check_utf8_string (const unsigned char *string,
                                  size_t length);

Returns


raptor_unicode_utf8_strlen ()

int
raptor_unicode_utf8_strlen (const unsigned char *string,
                            size_t length);

Returns


raptor_unicode_utf8_substr ()

size_t
raptor_unicode_utf8_substr (unsigned char *dest,
                            size_t *dest_length_p,
                            const unsigned char *src,
                            size_t src_length,
                            int startingLoc,
                            int length);

Returns

Types and Values

raptor_unichar

typedef unsigned long raptor_unichar;

raptor Unicode codepoint