parrotcode: src/charset/ascii.c | |
Contents | C |
src/charset/ascii.c
This file implements the charset functions for ascii data and common charset functionality for similar charsets like iso-8859-1.
PARROT_WARN_UNUSED_RESULT STRING *ascii_get_graphemes(PARROT_INTERP, NOTNULL(STRING *source_string), UINTVAL offset, UINTVAL count)
static void set_graphemes(PARROT_INTERP, NOTNULL(STRING *source_string), UINTVAL offset, UINTVAL replace_count, NOTNULL(STRING *insert_string))
PARROT_WARN_UNUSED_RESULT PARROT_CANNOT_RETURN_NULL STRING *ascii_get_graphemes_inplace(PARROT_INTERP, NOTNULL(STRING *source_string), UINTVAL offset, UINTVAL count, NOTNULL(STRING *dest_string))
static STRING *to_ascii(PARROT_INTERP, NOTNULL(STRING *src), NULLOK(STRING *dest))
static STRING *to_unicode(PARROT_INTERP, NOTNULL(STRING *src), NULLOK(STRING *dest))
static STRING *to_charset(PARROT_INTERP, NOTNULL(STRING *src), NULLOK(STRING *dest))
static STRING *compose(PARROT_INTERP, NOTNULL(STRING *src))
static STRING *decompose(PARROT_INTERP, NOTNULL(STRING *src))
static void upcase(PARROT_INTERP, NOTNULL(STRING *source_string))
static void downcase(PARROT_INTERP, NOTNULL(STRING *source_string))
static void titlecase(PARROT_INTERP, NOTNULL(STRING *source_string))
static void upcase_first(PARROT_INTERP, NOTNULL(STRING *source_string))
static void downcase_first(PARROT_INTERP, NOTNULL(STRING *source_string))
static void titlecase_first(PARROT_INTERP, NOTNULL(STRING *source_string))
PARROT_WARN_UNUSED_RESULT INTVAL ascii_compare(PARROT_INTERP, NOTNULL(const STRING *lhs), NOTNULL(const STRING *rhs))
PARROT_WARN_UNUSED_RESULT INTVAL mixed_cs_index(PARROT_INTERP, NOTNULL(STRING *src), NOTNULL(STRING *search), UINTVAL offs)
PARROT_WARN_UNUSED_RESULT INTVAL ascii_cs_index(PARROT_INTERP, NOTNULL(STRING *source_string), NOTNULL(STRING *search_string), UINTVAL offset)
PARROT_WARN_UNUSED_RESULT INTVAL ascii_cs_rindex(PARROT_INTERP, NOTNULL(STRING *source_string), NOTNULL(STRING *search_string), UINTVAL offset)
PARROT_WARN_UNUSED_RESULT static UINTVAL validate(PARROT_INTERP, NOTNULL(STRING *src))
PARROT_WARN_UNUSED_RESULT static STRING *string_from_codepoint(PARROT_INTERP, UINTVAL codepoint)
PARROT_WARN_UNUSED_RESULT static INTVAL is_cclass(PARROT_INTERP, INTVAL flags, NOTNULL(STRING *source_string), UINTVAL offset)
PARROT_WARN_UNUSED_RESULT static INTVAL find_cclass(PARROT_INTERP, INTVAL flags, NOTNULL(STRING *source_string), UINTVAL offset, UINTVAL count)
static INTVAL find_not_cclass(PARROT_INTERP, INTVAL flags, NOTNULL(STRING *source_string), UINTVAL offset, UINTVAL count)
PARROT_PURE_FUNCTION size_t ascii_compute_hash(SHIM_INTERP, NOTNULL(const STRING *source_string), size_t seed)
PARROT_CANNOT_RETURN_NULL const CHARSET *Parrot_charset_ascii_init(PARROT_INTERP)
STRING *charset_cvt_ascii_to_binary(PARROT_INTERP, NOTNULL(STRING *src), NULLOK(STRING *dest))
STRING *charset_cvt_ascii_to_iso_8859_1(PARROT_INTERP, NOTNULL(STRING *src), NULLOK(STRING *dest))
|