Lines Matching refs:char16_t

945  * @param len the length of the string in number of 2-byte code units (char16_t).
948 simdutf_warn_unused bool validate_utf16(const char16_t *buf, size_t len) noexcept;
960 * @param len the length of the string in number of 2-byte code units (char16_t).
963 simdutf_warn_unused bool validate_utf16le(const char16_t *buf, size_t len) noexcept;
975 * @param len the length of the string in number of 2-byte code units (char16_t).
978 simdutf_warn_unused bool validate_utf16be(const char16_t *buf, size_t len) noexcept;
989 * @param len the length of the string in number of 2-byte code units (char16_t).
992 simdutf_warn_unused result validate_utf16_with_errors(const char16_t *buf, size_t len) noexcept;
1003 * @param len the length of the string in number of 2-byte code units (char16_t).
1006 simdutf_warn_unused result validate_utf16le_with_errors(const char16_t *buf, size_t len) noexcept;
1017 * @param len the length of the string in number of 2-byte code units (char16_t).
1020 simdutf_warn_unused result validate_utf16be_with_errors(const char16_t *buf, size_t len) noexcept;
1072 * @return the number of written char16_t; 0 if conversion is not possible
1074 simdutf_warn_unused size_t convert_latin1_to_utf16le(const char * input, size_t length, char16_t* utf16_output) noexcept;
1084 * @return the number of written char16_t; 0 if conversion is not possible
1086 simdutf_warn_unused size_t convert_latin1_to_utf16be(const char * input, size_t length, char16_t* utf16_output) noexcept;
1122 * @return the number of written char16_t; 0 if the input was not valid UTF-8 string
1124 simdutf_warn_unused size_t convert_utf8_to_utf16(const char * input, size_t length, char16_t* utf16_output) noexcept;
1133 * @return the number of written char16_t.
1135 simdutf_warn_unused size_t convert_latin1_to_utf16(const char * input, size_t length, char16_t* utf16_output) noexcept;
1146 * @return the number of written char16_t; 0 if the input was not valid UTF-8 string
1148 simdutf_warn_unused size_t convert_utf8_to_utf16le(const char * input, size_t length, char16_t* utf16_output) noexcept;
1159 * @return the number of written char16_t; 0 if the input was not valid UTF-8 string
1161 simdutf_warn_unused size_t convert_utf8_to_utf16be(const char * input, size_t length, char16_t* utf16_output) noexcept;
1187 * @return a result pair struct (of type simdutf::error containing the two fields error and count) with an error code and either position of the error (in the input in code units) if any, or the number of char16_t written if successful.
1189 simdutf_warn_unused result convert_utf8_to_utf16_with_errors(const char * input, size_t length, char16_t* utf16_output) noexcept;
1200 * @return a result pair struct (of type simdutf::error containing the two fields error and count) with an error code and either position of the error (in the input in code units) if any, or the number of char16_t written if successful.
1202 simdutf_warn_unused result convert_utf8_to_utf16le_with_errors(const char * input, size_t length, char16_t* utf16_output) noexcept;
1213 * @return a result pair struct (of type simdutf::error containing the two fields error and count) with an error code and either position of the error (in the input in code units) if any, or the number of char16_t written if successful.
1215 simdutf_warn_unused result convert_utf8_to_utf16be_with_errors(const char * input, size_t length, char16_t* utf16_output) noexcept;
1266 * @return the number of written char16_t
1268 simdutf_warn_unused size_t convert_valid_utf8_to_utf16(const char * input, size_t length, char16_t* utf16_buffer) noexcept;
1278 * @return the number of written char16_t
1280 simdutf_warn_unused size_t convert_valid_utf8_to_utf16le(const char * input, size_t length, char16_t* utf16_buffer) noexcept;
1290 * @return the number of written char16_t
1292 simdutf_warn_unused size_t convert_valid_utf8_to_utf16be(const char * input, size_t length, char16_t* utf16_buffer) noexcept;
1338 * @return the number of char16_t code units required to encode the UTF-8 string as UTF-16LE
1366 * @param length the length of the string in 2-byte code units (char16_t)
1370 simdutf_warn_unused size_t convert_utf16_to_utf8(const char16_t * input, size_t length, char* utf8_buffer) noexcept;
1383 * @param length the length of the string in 2-byte code units (char16_t)
1387 simdutf_warn_unused size_t convert_utf16_to_latin1(const char16_t * input, size_t length, char* latin1_buffer) noexcept;
1398 * @param length the length of the string in 2-byte code units (char16_t)
1402 simdutf_warn_unused size_t convert_utf16le_to_latin1(const char16_t * input, size_t length, char* latin1_buffer) noexcept;
1413 * @param length the length of the string in 2-byte code units (char16_t)
1417 simdutf_warn_unused size_t convert_utf16be_to_latin1(const char16_t * input, size_t length, char* latin1_buffer) noexcept;
1429 * @param length the length of the string in 2-byte code units (char16_t)
1433 simdutf_warn_unused size_t convert_utf16le_to_utf8(const char16_t * input, size_t length, char* utf8_buffer) noexcept;
1444 * @param length the length of the string in 2-byte code units (char16_t)
1448 simdutf_warn_unused size_t convert_utf16be_to_utf8(const char16_t * input, size_t length, char* utf8_buffer) noexcept;
1458 * @param length the length of the string in 2-byte code units (char16_t)
1462 simdutf_warn_unused result convert_utf16_to_latin1_with_errors(const char16_t * input, size_t length, char* latin1_buffer) noexcept;
1472 * @param length the length of the string in 2-byte code units (char16_t)
1476 simdutf_warn_unused result convert_utf16le_to_latin1_with_errors(const char16_t * input, size_t length, char* latin1_buffer) noexcept;
1486 * @param length the length of the string in 2-byte code units (char16_t)
1490 simdutf_warn_unused result convert_utf16be_to_latin1_with_errors(const char16_t * input, size_t length, char* latin1_buffer) noexcept;
1502 * @param length the length of the string in 2-byte code units (char16_t)
1506 simdutf_warn_unused result convert_utf16_to_utf8_with_errors(const char16_t * input, size_t length, char* utf8_buffer) noexcept;
1517 * @param length the length of the string in 2-byte code units (char16_t)
1521 simdutf_warn_unused result convert_utf16le_to_utf8_with_errors(const char16_t * input, size_t length, char* utf8_buffer) noexcept;
1532 * @param length the length of the string in 2-byte code units (char16_t)
1536 simdutf_warn_unused result convert_utf16be_to_utf8_with_errors(const char16_t * input, size_t length, char* utf8_buffer) noexcept;
1546 * @param length the length of the string in 2-byte code units (char16_t)
1550 simdutf_warn_unused size_t convert_valid_utf16_to_utf8(const char16_t * input, size_t length, char* utf8_buffer) noexcept;
1561 * @param length the length of the string in 2-byte code units (char16_t)
1565 simdutf_warn_unused size_t convert_valid_utf16_to_latin1(const char16_t * input, size_t length, char* latin1_buffer) noexcept;
1575 * @param length the length of the string in 2-byte code units (char16_t)
1579 simdutf_warn_unused size_t convert_valid_utf16le_to_latin1(const char16_t * input, size_t length, char* latin1_buffer) noexcept;
1589 * @param length the length of the string in 2-byte code units (char16_t)
1593 simdutf_warn_unused size_t convert_valid_utf16be_to_latin1(const char16_t * input, size_t length, char* latin1_buffer) noexcept;
1604 * @param length the length of the string in 2-byte code units (char16_t)
1608 simdutf_warn_unused size_t convert_valid_utf16le_to_utf8(const char16_t * input, size_t length, char* utf8_buffer) noexcept;
1618 * @param length the length of the string in 2-byte code units (char16_t)
1622 simdutf_warn_unused size_t convert_valid_utf16be_to_utf8(const char16_t * input, size_t length, char* utf8_buffer) noexcept;
1633 * @param length the length of the string in 2-byte code units (char16_t)
1637 simdutf_warn_unused size_t convert_utf16_to_utf32(const char16_t * input, size_t length, char32_t* utf32_buffer) noexcept;
1648 * @param length the length of the string in 2-byte code units (char16_t)
1652 simdutf_warn_unused size_t convert_utf16le_to_utf32(const char16_t * input, size_t length, char32_t* utf32_buffer) noexcept;
1663 * @param length the length of the string in 2-byte code units (char16_t)
1667 simdutf_warn_unused size_t convert_utf16be_to_utf32(const char16_t * input, size_t length, char32_t* utf32_buffer) noexcept;
1679 * @param length the length of the string in 2-byte code units (char16_t)
1683 simdutf_warn_unused result convert_utf16_to_utf32_with_errors(const char16_t * input, size_t length, char32_t* utf32_buffer) noexcept;
1694 * @param length the length of the string in 2-byte code units (char16_t)
1698 simdutf_warn_unused result convert_utf16le_to_utf32_with_errors(const char16_t * input, size_t length, char32_t* utf32_buffer) noexcept;
1709 * @param length the length of the string in 2-byte code units (char16_t)
1713 simdutf_warn_unused result convert_utf16be_to_utf32_with_errors(const char16_t * input, size_t length, char32_t* utf32_buffer) noexcept;
1723 * @param length the length of the string in 2-byte code units (char16_t)
1727 simdutf_warn_unused size_t convert_valid_utf16_to_utf32(const char16_t * input, size_t length, char32_t* utf32_buffer) noexcept;
1737 * @param length the length of the string in 2-byte code units (char16_t)
1741 simdutf_warn_unused size_t convert_valid_utf16le_to_utf32(const char16_t * input, size_t length, char32_t* utf32_buffer) noexcept;
1751 * @param length the length of the string in 2-byte code units (char16_t)
1755 simdutf_warn_unused size_t convert_valid_utf16be_to_utf32(const char16_t * input, size_t length, char32_t* utf32_buffer) noexcept;
1765 * @param length the length of the string in 2-byte code units (char16_t)
1778 * @param length the length of the string in 2-byte code units (char16_t)
1781 simdutf_warn_unused size_t utf8_length_from_utf16(const char16_t * input, size_t length) noexcept;
1789 * @param length the length of the string in 2-byte code units (char16_t)
1792 simdutf_warn_unused size_t utf8_length_from_utf16le(const char16_t * input, size_t length) noexcept;
1800 * @param length the length of the string in 2-byte code units (char16_t)
1803 simdutf_warn_unused size_t utf8_length_from_utf16be(const char16_t * input, size_t length) noexcept;
1862 simdutf_warn_unused size_t convert_utf32_to_utf16(const char32_t * input, size_t length, char16_t* utf16_buffer) noexcept;
1877 simdutf_warn_unused size_t convert_utf32_to_utf16le(const char32_t * input, size_t length, char16_t* utf16_buffer) noexcept;
1937 simdutf_warn_unused size_t convert_utf32_to_utf16be(const char32_t * input, size_t length, char16_t* utf16_buffer) noexcept;
1951 * @return a result pair struct (of type simdutf::error containing the two fields error and count) with an error code and either position of the error (in the input in code units) if any, or the number of char16_t written if successful.
1953 simdutf_warn_unused result convert_utf32_to_utf16_with_errors(const char32_t * input, size_t length, char16_t* utf16_buffer) noexcept;
1966 * @return a result pair struct (of type simdutf::error containing the two fields error and count) with an error code and either position of the error (in the input in code units) if any, or the number of char16_t written if successful.
1968 simdutf_warn_unused result convert_utf32_to_utf16le_with_errors(const char32_t * input, size_t length, char16_t* utf16_buffer) noexcept;
1981 * @return a result pair struct (of type simdutf::error containing the two fields error and count) with an error code and either position of the error (in the input in code units) if any, or the number of char16_t written if successful.
1983 simdutf_warn_unused result convert_utf32_to_utf16be_with_errors(const char32_t * input, size_t length, char16_t* utf16_buffer) noexcept;
1997 simdutf_warn_unused size_t convert_valid_utf32_to_utf16(const char32_t * input, size_t length, char16_t* utf16_buffer) noexcept;
2011 simdutf_warn_unused size_t convert_valid_utf32_to_utf16le(const char32_t * input, size_t length, char16_t* utf16_buffer) noexcept;
2025 simdutf_warn_unused size_t convert_valid_utf32_to_utf16be(const char32_t * input, size_t length, char16_t* utf16_buffer) noexcept;
2036 * @param length the length of the string in 2-byte code units (char16_t)
2039 void change_endianness_utf16(const char16_t * input, size_t length, char16_t * output) noexcept;
2074 * @param length the length of the string in 2-byte code units (char16_t)
2077 simdutf_warn_unused size_t utf32_length_from_utf16(const char16_t * input, size_t length) noexcept;
2089 * @param length the length of the string in 2-byte code units (char16_t)
2092 simdutf_warn_unused size_t utf32_length_from_utf16le(const char16_t * input, size_t length) noexcept;
2104 * @param length the length of the string in 2-byte code units (char16_t)
2107 simdutf_warn_unused size_t utf32_length_from_utf16be(const char16_t * input, size_t length) noexcept;
2118 * @param length the length of the string in 2-byte code units (char16_t)
2121 simdutf_warn_unused size_t count_utf16(const char16_t * input, size_t length) noexcept;
2132 * @param length the length of the string in 2-byte code units (char16_t)
2135 simdutf_warn_unused size_t count_utf16le(const char16_t * input, size_t length) noexcept;
2146 * @param length the length of the string in 2-byte code units (char16_t)
2149 simdutf_warn_unused size_t count_utf16be(const char16_t * input, size_t length) noexcept;
2191 simdutf_warn_unused size_t trim_partial_utf16be(const char16_t* input, size_t length);
2206 simdutf_warn_unused size_t trim_partial_utf16le(const char16_t* input, size_t length);
2223 simdutf_warn_unused size_t trim_partial_utf16(const char16_t* input, size_t length);
2344 * @param len the length of the string in number of 2-byte code units (char16_t).
2347 simdutf_warn_unused virtual bool validate_utf16le(const char16_t *buf, size_t len) const noexcept = 0;
2359 * @param len the length of the string in number of 2-byte code units (char16_t).
2362 simdutf_warn_unused virtual bool validate_utf16be(const char16_t *buf, size_t len) const noexcept = 0;
2373 * @param len the length of the string in number of 2-byte code units (char16_t).
2376 simdutf_warn_unused virtual result validate_utf16le_with_errors(const char16_t *buf, size_t len) const noexcept = 0;
2387 * @param len the length of the string in number of 2-byte code units (char16_t).
2390 simdutf_warn_unused virtual result validate_utf16be_with_errors(const char16_t *buf, size_t len) const noexcept = 0;
2439 * @return the number of written char16_t; 0 if conversion is not possible
2441 simdutf_warn_unused virtual size_t convert_latin1_to_utf16le(const char * input, size_t length, char16_t* utf16_output) const noexcept = 0;
2451 * @return the number of written char16_t; 0 if conversion is not possible
2453 simdutf_warn_unused virtual size_t convert_latin1_to_utf16be(const char * input, size_t length, char16_t* utf16_output) const noexcept = 0;
2517 * @return the number of written char16_t; 0 if the input was not valid UTF-8 string
2519 simdutf_warn_unused virtual size_t convert_utf8_to_utf16le(const char * input, size_t length, char16_t* utf16_output) const noexcept = 0;
2530 * @return the number of written char16_t; 0 if the input was not valid UTF-8 string
2532 simdutf_warn_unused virtual size_t convert_utf8_to_utf16be(const char * input, size_t length, char16_t* utf16_output) const noexcept = 0;
2545 simdutf_warn_unused virtual result convert_utf8_to_utf16le_with_errors(const char * input, size_t length, char16_t* utf16_output) const noexcept = 0;
2558 simdutf_warn_unused virtual result convert_utf8_to_utf16be_with_errors(const char * input, size_t length, char16_t* utf16_output) const noexcept = 0;
2569 * @return the number of written char16_t; 0 if the input was not valid UTF-8 string
2594 * @return the number of written char16_t
2596 simdutf_warn_unused virtual size_t convert_valid_utf8_to_utf16le(const char * input, size_t length, char16_t* utf16_buffer) const noexcept = 0;
2606 * @return the number of written char16_t
2608 simdutf_warn_unused virtual size_t convert_valid_utf8_to_utf16be(const char * input, size_t length, char16_t* utf16_buffer) const noexcept = 0;
2629 * @return the number of char16_t code units required to encode the UTF-8 string as UTF-16LE
2655 * @param length the length of the string in 2-byte code units (char16_t)
2659 simdutf_warn_unused virtual size_t convert_utf16le_to_latin1(const char16_t * input, size_t length, char* latin1_buffer) const noexcept = 0;
2670 * @param length the length of the string in 2-byte code units (char16_t)
2674 simdutf_warn_unused virtual size_t convert_utf16be_to_latin1(const char16_t * input, size_t length, char* latin1_buffer) const noexcept = 0;
2684 * @param length the length of the string in 2-byte code units (char16_t)
2688 simdutf_warn_unused virtual result convert_utf16le_to_latin1_with_errors(const char16_t * input, size_t length, char* latin1_buffer) const noexcept = 0;
2698 * @param length the length of the string in 2-byte code units (char16_t)
2702 simdutf_warn_unused virtual result convert_utf16be_to_latin1_with_errors(const char16_t * input, size_t length, char* latin1_buffer) const noexcept = 0;
2712 * @param length the length of the string in 2-byte code units (char16_t)
2716 simdutf_warn_unused virtual size_t convert_valid_utf16le_to_latin1(const char16_t * input, size_t length, char* latin1_buffer) const noexcept = 0;
2726 * @param length the length of the string in 2-byte code units (char16_t)
2730 simdutf_warn_unused virtual size_t convert_valid_utf16be_to_latin1(const char16_t * input, size_t length, char* latin1_buffer) const noexcept = 0;
2741 * @param length the length of the string in 2-byte code units (char16_t)
2745 simdutf_warn_unused virtual size_t convert_utf16le_to_utf8(const char16_t * input, size_t length, char* utf8_buffer) const noexcept = 0;
2756 * @param length the length of the string in 2-byte code units (char16_t)
2760 simdutf_warn_unused virtual size_t convert_utf16be_to_utf8(const char16_t * input, size_t length, char* utf8_buffer) const noexcept = 0;
2771 * @param length the length of the string in 2-byte code units (char16_t)
2775 simdutf_warn_unused virtual result convert_utf16le_to_utf8_with_errors(const char16_t * input, size_t length, char* utf8_buffer) const noexcept = 0;
2786 * @param length the length of the string in 2-byte code units (char16_t)
2790 simdutf_warn_unused virtual result convert_utf16be_to_utf8_with_errors(const char16_t * input, size_t length, char* utf8_buffer) const noexcept = 0;
2800 * @param length the length of the string in 2-byte code units (char16_t)
2804 simdutf_warn_unused virtual size_t convert_valid_utf16le_to_utf8(const char16_t * input, size_t length, char* utf8_buffer) const noexcept = 0;
2814 * @param length the length of the string in 2-byte code units (char16_t)
2818 simdutf_warn_unused virtual size_t convert_valid_utf16be_to_utf8(const char16_t * input, size_t length, char* utf8_buffer) const noexcept = 0;
2829 * @param length the length of the string in 2-byte code units (char16_t)
2833 simdutf_warn_unused virtual size_t convert_utf16le_to_utf32(const char16_t * input, size_t length, char32_t* utf32_buffer) const noexcept = 0;
2844 * @param length the length of the string in 2-byte code units (char16_t)
2848 simdutf_warn_unused virtual size_t convert_utf16be_to_utf32(const char16_t * input, size_t length, char32_t* utf32_buffer) const noexcept = 0;
2859 * @param length the length of the string in 2-byte code units (char16_t)
2863 simdutf_warn_unused virtual result convert_utf16le_to_utf32_with_errors(const char16_t * input, size_t length, char32_t* utf32_buffer) const noexcept = 0;
2874 * @param length the length of the string in 2-byte code units (char16_t)
2878 simdutf_warn_unused virtual result convert_utf16be_to_utf32_with_errors(const char16_t * input, size_t length, char32_t* utf32_buffer) const noexcept = 0;
2888 * @param length the length of the string in 2-byte code units (char16_t)
2892 simdutf_warn_unused virtual size_t convert_valid_utf16le_to_utf32(const char16_t * input, size_t length, char32_t* utf32_buffer) const noexcept = 0;
2902 * @param length the length of the string in 2-byte code units (char16_t)
2906 simdutf_warn_unused virtual size_t convert_valid_utf16be_to_utf32(const char16_t * input, size_t length, char32_t* utf32_buffer) const noexcept = 0;
2916 * @param length the length of the string in 2-byte code units (char16_t)
2919 simdutf_warn_unused virtual size_t utf8_length_from_utf16le(const char16_t * input, size_t length) const noexcept = 0;
2929 * @param length the length of the string in 2-byte code units (char16_t)
2932 simdutf_warn_unused virtual size_t utf8_length_from_utf16be(const char16_t * input, size_t length) const noexcept = 0;
3030 * @param length the length of the string in 2-byte code units (char16_t)
3048 simdutf_warn_unused virtual size_t convert_utf32_to_utf16le(const char32_t * input, size_t length, char16_t* utf16_buffer) const noexcept = 0;
3063 simdutf_warn_unused virtual size_t convert_utf32_to_utf16be(const char32_t * input, size_t length, char16_t* utf16_buffer) const noexcept = 0;
3076 * @return a result pair struct (of type simdutf::error containing the two fields error and count) with an error code and either position of the error (in the input in code units) if any, or the number of char16_t written if successful.
3078 simdutf_warn_unused virtual result convert_utf32_to_utf16le_with_errors(const char32_t * input, size_t length, char16_t* utf16_buffer) const noexcept = 0;
3091 * @return a result pair struct (of type simdutf::error containing the two fields error and count) with an error code and either position of the error (in the input in code units) if any, or the number of char16_t written if successful.
3093 simdutf_warn_unused virtual result convert_utf32_to_utf16be_with_errors(const char32_t * input, size_t length, char16_t* utf16_buffer) const noexcept = 0;
3107 simdutf_warn_unused virtual size_t convert_valid_utf32_to_utf16le(const char32_t * input, size_t length, char16_t* utf16_buffer) const noexcept = 0;
3121 simdutf_warn_unused virtual size_t convert_valid_utf32_to_utf16be(const char32_t * input, size_t length, char16_t* utf16_buffer) const noexcept = 0;
3132 * @param length the length of the string in 2-byte code units (char16_t)
3135 virtual void change_endianness_utf16(const char16_t * input, size_t length, char16_t * output) const noexcept = 0;
3186 * @param length the length of the string in 2-byte code units (char16_t)
3224 * @param length the length of the string in 2-byte code units (char16_t)
3227 simdutf_warn_unused virtual size_t utf32_length_from_utf16le(const char16_t * input, size_t length) const noexcept = 0;
3239 * @param length the length of the string in 2-byte code units (char16_t)
3242 simdutf_warn_unused virtual size_t utf32_length_from_utf16be(const char16_t * input, size_t length) const noexcept = 0;
3253 * @param length the length of the string in 2-byte code units (char16_t)
3256 simdutf_warn_unused virtual size_t count_utf16le(const char16_t * input, size_t length) const noexcept = 0;
3267 * @param length the length of the string in 2-byte code units (char16_t)
3270 simdutf_warn_unused virtual size_t count_utf16be(const char16_t * input, size_t length) const noexcept = 0;