Home | History | Annotate | Download | only in utils

Lines Matching refs:src

54 ssize_t utf32_to_utf8_length(const char32_t *src, size_t src_len);
57 * Stores a UTF-8 string converted from "src" in "dst", if "dst_length" is not
58 * large enough to store the string, the part of the "src" string is stored
65 * "src" == \u3042\u3044 (\xE3\x81\x82\xE3\x81\x84)
74 * "src" == \u3042\u3044 (\xE3\x81\x82\xE3\x81\x84)
84 * "src" == \u3042\u3044 (\xE3\x81\x82\xE3\x81\x84)
93 void utf32_to_utf8(const char32_t* src, size_t src_len, char* dst, size_t dst_len);
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, size_t dst_len);
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 nul-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". Returns -1 in case
153 ssize_t utf8_to_utf16_length(const uint8_t* src, size_t srcLen, bool overreadIsFatal = false);
163 const uint8_t* src, size_t srcLen, char16_t* dst, size_t dstLen);
174 const uint8_t* src, size_t srcLen, char16_t* dst, size_t dstLen);