/third_party/jerryscript/jerry-core/lit/ |
D | lit-char-helpers.c | 210 lit_code_point_is_identifier_start (lit_code_point_t code_point) /**< code point */ in lit_code_point_is_identifier_start() argument 213 if (code_point <= LIT_UTF8_1_BYTE_CODE_POINT_MAX) in lit_code_point_is_identifier_start() 215 return ((LEXER_TO_ASCII_LOWERCASE (code_point) >= LIT_CHAR_LOWERCASE_A in lit_code_point_is_identifier_start() 216 && LEXER_TO_ASCII_LOWERCASE (code_point) <= LIT_CHAR_LOWERCASE_Z) in lit_code_point_is_identifier_start() 217 || code_point == LIT_CHAR_DOLLAR_SIGN in lit_code_point_is_identifier_start() 218 || code_point == LIT_CHAR_UNDERSCORE); in lit_code_point_is_identifier_start() 222 if (code_point >= LIT_UTF8_4_BYTE_CODE_POINT_MIN) in lit_code_point_is_identifier_start() 225 return (code_point >= 0x10C80 && code_point <= 0x10CF2); in lit_code_point_is_identifier_start() 228 JERRY_ASSERT (code_point <= LIT_UTF8_4_BYTE_CODE_POINT_MIN); in lit_code_point_is_identifier_start() 231 return lit_char_is_unicode_letter ((ecma_char_t) code_point); in lit_code_point_is_identifier_start() [all …]
|
D | lit-strings.c | 46 lit_code_point_t code_point = 0; in lit_is_valid_utf8_string() local 53 code_point = ((uint32_t) (c & LIT_UTF8_LAST_5_BITS_MASK)); in lit_is_valid_utf8_string() 59 code_point = ((uint32_t) (c & LIT_UTF8_LAST_4_BITS_MASK)); in lit_is_valid_utf8_string() 65 code_point = ((uint32_t) (c & LIT_UTF8_LAST_3_BITS_MASK)); in lit_is_valid_utf8_string() 87 code_point <<= LIT_UTF8_BITS_IN_EXTRA_BYTES; in lit_is_valid_utf8_string() 88 code_point |= (c & LIT_UTF8_LAST_6_BITS_MASK); in lit_is_valid_utf8_string() 91 if (code_point < min_code_point in lit_is_valid_utf8_string() 92 || code_point > LIT_UNICODE_CODE_POINT_MAX) in lit_is_valid_utf8_string() 98 if (code_point >= LIT_UTF16_HIGH_SURROGATE_MIN in lit_is_valid_utf8_string() 99 && code_point <= LIT_UTF16_HIGH_SURROGATE_MAX) in lit_is_valid_utf8_string() [all …]
|
D | lit-strings.h | 91 bool lit_is_code_point_utf16_low_surrogate (lit_code_point_t code_point); 92 bool lit_is_code_point_utf16_high_surrogate (lit_code_point_t code_point); 114 lit_utf8_size_t lit_code_point_to_utf8 (lit_code_point_t code_point, lit_utf8_byte_t *buf); 115 lit_utf8_size_t lit_code_point_to_cesu8 (lit_code_point_t code_point, lit_utf8_byte_t *buf); 129 lit_code_point_t *code_point); 132 ecma_char_t *code_point); 135 ecma_char_t *code_point);
|
D | lit-char-helpers.h | 76 bool lit_code_point_is_identifier_start (lit_code_point_t code_point); 77 bool lit_code_point_is_identifier_part (lit_code_point_t code_point); 217 size_t lit_code_point_to_cesu8_bytes (uint8_t *dst_p, lit_code_point_t code_point); 218 size_t lit_code_point_get_cesu8_length (lit_code_point_t code_point);
|
/third_party/gn/src/base/strings/ |
D | utf_string_conversion_utils.h | 18 inline bool IsValidCodepoint(uint32_t code_point) { in IsValidCodepoint() argument 22 return code_point < 0xD800u || in IsValidCodepoint() 23 (code_point >= 0xE000u && code_point <= 0x10FFFFu); in IsValidCodepoint() 26 inline bool IsValidCharacter(uint32_t code_point) { in IsValidCharacter() argument 29 return code_point < 0xD800u || in IsValidCharacter() 30 (code_point >= 0xE000u && code_point < 0xFDD0u) || in IsValidCharacter() 31 (code_point > 0xFDEFu && code_point <= 0x10FFFFu && in IsValidCharacter() 32 (code_point & 0xFFFEu) != 0xFFFEu); in IsValidCharacter() 53 uint32_t* code_point); 59 size_t WriteUnicodeCharacter(uint32_t code_point, std::string* output); [all …]
|
D | utf_string_conversion_utils.cc | 21 int32_t code_point; in ReadUnicodeCharacter() local 22 CBU8_NEXT(src, *char_index, src_len, code_point); in ReadUnicodeCharacter() 23 *code_point_out = static_cast<uint32_t>(code_point); in ReadUnicodeCharacter() 30 return IsValidCodepoint(code_point); in ReadUnicodeCharacter() 36 uint32_t* code_point) { in ReadUnicodeCharacter() argument 45 *code_point = in ReadUnicodeCharacter() 50 *code_point = src[*char_index]; in ReadUnicodeCharacter() 53 return IsValidCodepoint(*code_point); in ReadUnicodeCharacter() 58 size_t WriteUnicodeCharacter(uint32_t code_point, std::string* output) { in WriteUnicodeCharacter() argument 59 if (code_point <= 0x7f) { in WriteUnicodeCharacter() [all …]
|
D | utf_string_conversions.cc | 49 void UnicodeAppendUnsafe(char* out, int32_t* size, uint32_t code_point) { in UnicodeAppendUnsafe() argument 50 CBU8_APPEND_UNSAFE(out, *size, code_point); in UnicodeAppendUnsafe() 53 void UnicodeAppendUnsafe(char16_t* out, int32_t* size, uint32_t code_point) { in UnicodeAppendUnsafe() argument 54 CBU16_APPEND_UNSAFE(out, *size, code_point); in UnicodeAppendUnsafe() 69 int32_t code_point; in DoUTFConversion() local 70 CBU8_NEXT(src, i, src_len, code_point); in DoUTFConversion() 72 if (!IsValidCodepoint(code_point)) { in DoUTFConversion() 74 code_point = kErrorCodePoint; in DoUTFConversion() 77 UnicodeAppendUnsafe(dest, dest_len, code_point); in DoUTFConversion() 103 int32_t code_point; in DoUTFConversion() local [all …]
|
D | utf_offset_string_conversions.cc | 197 uint32_t code_point; in ConvertUnicode() local 200 if (ReadUnicodeCharacter(src, src_len32, &i, &code_point)) { in ConvertUnicode() 201 chars_written = WriteUnicodeCharacter(code_point, output); in ConvertUnicode()
|
/third_party/boost/boost/locale/ |
D | utf.hpp | 34 typedef uint32_t code_point; typedef 39 static const code_point illegal = 0xFFFFFFFFu; 44 static const code_point incomplete = 0xFFFFFFFEu; 49 inline bool is_valid_codepoint(code_point v) in is_valid_codepoint() 83 static code_point decode(Iterator &p,Iterator e); 99 static int width(code_point value); 127 static Iterator encode(code_point value,Iterator out); 134 static code_point decode_valid(Iterator &p); 165 static int width(code_point value) in width() 193 static code_point decode(Iterator &p,Iterator e) in decode() [all …]
|
D | utf8_codecvt.hpp | 42 static utf::code_point to_unicode(state_type &,char const *&begin,char const *end) in to_unicode() 46 utf::code_point c = utf::utf_traits<char>::decode(p,end); in to_unicode() 52 static utf::code_point from_unicode(state_type &,utf::code_point u,char *begin,char const *end) in from_unicode()
|
/third_party/gn/src/base/json/ |
D | string_escape.cc | 35 bool EscapeSpecialCodePoint(uint32_t code_point, std::string* dest) { in EscapeSpecialCodePoint() argument 39 switch (code_point) { in EscapeSpecialCodePoint() 93 uint32_t code_point; in EscapeJSONStringImpl() local 94 if (!ReadUnicodeCharacter(str.data(), length, &i, &code_point) || in EscapeJSONStringImpl() 95 code_point == static_cast<decltype(code_point)>(CBU_SENTINEL) || in EscapeJSONStringImpl() 96 !IsValidCharacter(code_point)) { in EscapeJSONStringImpl() 97 code_point = kReplacementCodePoint; in EscapeJSONStringImpl() 101 if (EscapeSpecialCodePoint(code_point, dest)) in EscapeJSONStringImpl() 105 if (code_point < 32) in EscapeJSONStringImpl() 106 base::StringAppendF(dest, kU16EscapeFormat, code_point); in EscapeJSONStringImpl() [all …]
|
D | json_parser.cc | 512 uint32_t code_point; in ConsumeStringRaw() local 513 if (!DecodeUTF16(&code_point)) { in ConsumeStringRaw() 517 string.Append(code_point); in ConsumeStringRaw() 594 uint32_t code_point = in DecodeUTF16() local 596 if (!IsValidCharacter(code_point)) in DecodeUTF16() 599 *out_code_point = code_point; in DecodeUTF16()
|
/third_party/protobuf/src/google/protobuf/io/ |
D | tokenizer.cc | 930 static void AppendUTF8(uint32 code_point, std::string* output) { in AppendUTF8() argument 933 if (code_point <= 0x7f) { in AppendUTF8() 934 tmp = code_point; in AppendUTF8() 936 } else if (code_point <= 0x07ff) { in AppendUTF8() 937 tmp = 0x0000c080 | ((code_point & 0x07c0) << 2) | (code_point & 0x003f); in AppendUTF8() 939 } else if (code_point <= 0xffff) { in AppendUTF8() 940 tmp = 0x00e08080 | ((code_point & 0xf000) << 4) | in AppendUTF8() 941 ((code_point & 0x0fc0) << 2) | (code_point & 0x003f); in AppendUTF8() 943 } else if (code_point <= 0x1fffff) { in AppendUTF8() 944 tmp = 0xf0808080 | ((code_point & 0x1c0000) << 6) | in AppendUTF8() [all …]
|
/third_party/boost/libs/locale/src/icu/ |
D | codecvt.cpp | 86 UChar code_point[2]={0}; in from_unicode() local 91 code_point[0]=u; in from_unicode() 96 code_point[0]=0xD800 | (u>>10); in from_unicode() 97 code_point[1]=0xDC00 | (u & 0x3FF); in from_unicode() 101 int olen = ucnv_fromUChars(cvt_,begin,end-begin,code_point,len,&err); in from_unicode()
|
/third_party/boost/libs/locale/src/util/ |
D | codecvt_converter.cpp | 57 utf::code_point c = utf::utf_traits<char>::decode(p,end); in to_unicode() 208 utf::code_point to_unicode(state_type &,char const *&begin,char const *end) const in to_unicode() 213 … utf::code_point from_unicode(state_type &,utf::code_point u,char *begin,char const *end) const in from_unicode() 352 … utf::code_point to_unicode(base_converter_ptr &ptr,char const *&begin,char const *end) const in to_unicode() 360 …utf::code_point from_unicode(base_converter_ptr &ptr,utf::code_point u,char *begin,char const *end… in from_unicode()
|
/third_party/libphonenumber/cpp/test/phonenumbers/utf/ |
D | unicodetext_test.cc | 27 char32 code_point; in TEST() member 41 EXPECT_EQ(values[i].code_point, *it); in TEST()
|
/third_party/jerryscript/jerry-core/parser/js/ |
D | js-lexer.c | 634 lit_code_point_t code_point = UINT32_MAX; in lexer_parse_identifier() local 649 … code_point = lexer_hex_in_braces_to_code_point (source_p + 3, source_end_p, &escape_length); in lexer_parse_identifier() 653 code_point = lexer_hex_to_code_point (source_p + 2, 4); in lexer_parse_identifier() 659 code_point = lexer_hex_to_code_point (source_p + 2, 4); in lexer_parse_identifier() 663 if (code_point == UINT32_MAX) in lexer_parse_identifier() 672 if (!lit_code_point_is_identifier_start (code_point)) in lexer_parse_identifier() 679 if (!lit_code_point_is_identifier_part (code_point)) in lexer_parse_identifier() 685 length += lit_code_point_get_cesu8_length (code_point); in lexer_parse_identifier() 691 lit_code_point_t code_point = *source_p; in lexer_parse_identifier() local 694 if (JERRY_UNLIKELY (code_point >= LIT_UTF8_2_BYTE_MARKER)) in lexer_parse_identifier() [all …]
|
/third_party/boost/boost/nowide/utf/ |
D | convert.hpp | 38 code_point c = utf_traits<CharIn>::template decode(source_begin, source_end); in convert_buffer() 69 code_point c; in convert_string()
|
/third_party/flutter/engine/flutter/shell/platform/windows/ |
D | win32_flutter_window.cc | 139 void Win32FlutterWindow::OnChar(unsigned int code_point) { in OnChar() argument 141 SendChar(code_point); in OnChar() 235 void Win32FlutterWindow::SendChar(unsigned int code_point) { in SendChar() argument 237 handler->CharHook(this, code_point); in SendChar()
|
D | win32_flutter_window.h | 66 void OnChar(unsigned int code_point) override; 114 void SendChar(unsigned int code_point);
|
D | keyboard_hook_handler.h | 28 unsigned int code_point) = 0;
|
/third_party/boost/libs/spirit/example/support/utree/ |
D | utf8_parser.hpp | 47 void operator()(std::string& s, uchar code_point) const in operator ()() 52 *s_iter++ = code_point; in operator ()()
|
/third_party/protobuf/src/google/protobuf/stubs/ |
D | strutil.cc | 2250 int EncodeAsUTF8Char(uint32 code_point, char* output) { in EncodeAsUTF8Char() argument 2253 if (code_point <= 0x7f) { in EncodeAsUTF8Char() 2254 tmp = code_point; in EncodeAsUTF8Char() 2256 } else if (code_point <= 0x07ff) { in EncodeAsUTF8Char() 2258 ((code_point & 0x07c0) << 2) | in EncodeAsUTF8Char() 2259 (code_point & 0x003f); in EncodeAsUTF8Char() 2261 } else if (code_point <= 0xffff) { in EncodeAsUTF8Char() 2263 ((code_point & 0xf000) << 4) | in EncodeAsUTF8Char() 2264 ((code_point & 0x0fc0) << 2) | in EncodeAsUTF8Char() 2265 (code_point & 0x003f); in EncodeAsUTF8Char() [all …]
|
/third_party/flutter/engine/flutter/shell/platform/glfw/ |
D | keyboard_hook_handler.h | 27 virtual void CharHook(GLFWwindow* window, unsigned int code_point) = 0;
|
D | text_input_plugin.cc | 39 void TextInputPlugin::CharHook(GLFWwindow* window, unsigned int code_point) { in CharHook() argument 45 active_model_->AddCharacter(static_cast<char>(code_point)); in CharHook()
|