| parrotcode: src/charset/unicode.c | |
| Contents | C |

src/charset/unicode.c

This file implements the charset functions for unicode data
static void set_graphemesreplace_count graphemes in STRING source_string starting at offset offset.
Gets the graphemes to be replaced from STRING insert_string.
static STRING *get_graphemessource_string starting at offset.
Gets count graphemes total.
static STRING *get_graphemes_inplacecount graphemes in place from STRING source_string starting at offset offset.
Puts them into STRING dest_string.
static STRING *to_charsetsrc to unicode STRING dest.
static STRING *composesrc.
Attempts to denormalize the STRING into the ICU default,
NFC.If Parrot does not have ICU included,
throws an exception.
static STRING *decomposestatic void upcasesrc to all upper-case graphemes,
for those characters which support upper-case versions.Throws an exception if ICU is not installed.
static void downcasestatic void titlecasestatic void upcase_firstsource_string to uppercase,
if the grapheme supports it.
Not implemented.
static void downcase_firstsource_string to lower-case,
if the grapheme supports it.
Not implemented
static void titlecase_firstsource_string to title case,
if the string supports it.
Not implemented.
static INTVAL comparelhs and rhs.
Returns -1 if lhs < rhs.
Returns 0 if lhs = rhs.
Returns 1 if lhs > rhs.
static INTVAL cs_rindexsearch_string in STRING source_string,
starting from offset.
Not implemented.
static UINTVAL validatesrc is a valid unicode string,
returns 0 otherwise.
static int u_iscclassstatic INTVAL is_cclassstatic INTVAL find_cclassstatic INTVAL find_not_cclassstatic STRING *string_from_codepointstatic size_t compute_hashsrc with starting seed value seed.
const CHARSET *Parrot_charset_unicode_init
|
|
|