Lines Matching +full:3 +full:- +full:point

1 /* SPDX-License-Identifier: GPL-2.0+ */
14 #define MAX_UTF8_PER_UTF16 3
17 * console_read_unicode() - read Unicode code point from console
19 * @code: pointer to store Unicode code point
25 * utf8_get() - get next UTF-8 code point from buffer
27 * @src: pointer to current byte, updated to point to next byte
28 * Return: code point, or 0 for end of string, or -1 if no legal
29 * code point is found. In case of an error src points to
35 * utf8_put() - write UTF-8 code point to buffer
37 * @code: code point
39 * Return: -1 if the input parameters are invalid
44 * utf8_utf16_strnlen() - length of a truncated utf-8 string after conversion
45 * to utf-16
47 * @src: utf-8 string
49 * Return: length in bytes after conversion to utf-16 without the
50 * trailing \0. If an invalid UTF-8 sequence is hit one
56 * utf8_utf16_strlen() - length of a utf-8 string after conversion to utf-16
58 * @src: utf-8 string
59 * Return: length in bytes after conversion to utf-16 without the
60 * trailing \0. -1 if the utf-8 string is not valid.
65 * utf8_utf16_strncpy() - copy utf-8 string to utf-16 string
70 * Return: -1 if the input parameters are invalid
75 * utf8_utf16_strcpy() - copy utf-8 string to utf-16 string
79 * Return: -1 if the input parameters are invalid
84 * utf16_get() - get next UTF-16 code point from buffer
86 * @src: pointer to current word, updated to point to next word
87 * Return: code point, or 0 for end of string, or -1 if no legal
88 * code point is found. In case of an error src points to
94 * utf16_put() - write UTF-16 code point to buffer
96 * @code: code point
98 * Return: -1 if the input parameters are invalid
103 * utf16_strnlen() - length of a truncated utf-16 string
105 * @src: utf-16 string
107 * Return: length in code points. If an invalid UTF-16 sequence is
114 * utf16_utf8_strnlen() - length of a truncated utf-16 string after conversion
115 * to utf-8
117 * @src: utf-16 string
119 * Return: length in bytes after conversion to utf-8 without the
120 * trailing \0. If an invalid UTF-16 sequence is hit one
126 * utf16_utf8_strlen() - length of a utf-16 string after conversion to utf-8
128 * @src: utf-16 string
129 * Return: length in bytes after conversion to utf-8 without the
130 * trailing \0. -1 if the utf-16 string is not valid.
135 * utf16_utf8_strncpy() - copy utf-16 string to utf-8 string
140 * Return: -1 if the input parameters are invalid
145 * utf16_utf8_strcpy() - copy utf-16 string to utf-8 string
149 * Return: -1 if the input parameters are invalid
154 * utf_to_lower() - convert a Unicode letter to lower case
162 * utf_to_upper() - convert a Unicode letter to upper case
170 * u16_strlen - count non-zero words
172 * This function matches wsclen() if the -fshort-wchar compiler flag is set.
176 * ReturnValue: number of non-zero words.
177 * This is not the number of utf-16 letters!
182 * u16_strlen - count non-zero words
184 * This function matches wscnlen_s() if the -fshort-wchar compiler flag is set.
189 * ReturnValue: number of non-zero words.
190 * This is not the number of utf-16 letters!
195 * u16_strcpy() - copy u16 string
207 * u16_strdup() - duplicate u16 string
218 * utf16_to_utf8() - Convert an utf16 string to utf8
223 * NOTE that a single utf16 character can generate up to 3 utf8