Home | History | Annotate | Download | only in utils

Lines Matching refs:src

56 ssize_t utf32_to_utf8_length(const char32_t *src, size_t src_len);
59 * Stores a UTF-8 string converted from "src" in "dst", if "dst_length" is not
60 * large enough to store the string, the part of the "src" string is stored
66 * "src" == \u3042\u3044 (\xE3\x81\x82\xE3\x81\x84)
75 * "src" == \u3042\u3044 (\xE3\x81\x82\xE3\x81\x84)
85 * "src" == \u3042\u3044 (\xE3\x81\x82\xE3\x81\x84)
93 void utf32_to_utf8(const char32_t* src, size_t src_len, char* dst);
102 int32_t utf32_from_utf8_at(const char *src, size_t src_len, size_t index, size_t *next_index);
106 * Returns the UTF-8 length of UTF-16 string "src".
108 ssize_t utf16_to_utf8_length(const char16_t *src, size_t src_len);
115 void utf16_to_utf8(const char16_t* src, size_t src_len, char* dst);
118 * Returns the length of "src" when "src" is valid UTF-8 string.
119 * Returns 0 if src is NULL or 0-length string. Returns -1 when the source
122 * This function should be used to determine whether "src" is valid UTF-8
123 * characters with valid unicode codepoints. "src" must be null-terminated.
130 * If you do not care whether "src" is valid UTF-8 or not, you should use
133 ssize_t utf8_length(const char *src);
138 size_t utf8_to_utf32_length(const char *src, size_t src_len);
141 * Stores a UTF-32 string converted from "src" in "dst". "dst" must be large
145 void utf8_to_utf32(const char* src, size_t src_len, char32_t* dst);
148 * Returns the UTF-16 length of UTF-8 string "src".
150 ssize_t utf8_to_utf16_length(const uint8_t* src, size_t srcLen);
157 char16_t* utf8_to_utf16_no_null_terminator(const uint8_t* src, size_t srcLen, char16_t* dst);
164 void utf8_to_utf16(const uint8_t* src, size_t srcLen, char16_t* dst);