/arkcompiler/ets_runtime/ecmascript/ |
D | date_parse.h | 80 char GetLower(char ch) in GetLower() argument 82 if (ch >= 'A' && ch <= 'Z') { in GetLower() 84 return ch + 32; in GetLower() 86 return ch; in GetLower() 110 bool IsThisChar(char ch) const in IsThisChar() argument 112 return value_ == ch; in IsThisChar() 131 bool IsChar(char ch) in IsChar() argument 133 if (value_ != ch) { in IsChar() 181 bool IsSymbol(char ch) const in IsSymbol() argument 183 return type_ == DATE_SYMBOL && static_cast<int>(ch) == value_; in IsSymbol() [all …]
|
D | js_locale.h | 385 static bool IsAsciiAlpha(char ch) in IsAsciiAlpha() argument 387 return InRange(ch, 'A', 'Z') || InRange(ch, 'a', 'z'); in IsAsciiAlpha() 390 static char LocaleIndependentAsciiToUpper(char ch) in LocaleIndependentAsciiToUpper() argument 392 return (InRange(ch, 'a', 'z')) ? static_cast<char>((ch - 'a' + 'A')) : ch; in LocaleIndependentAsciiToUpper() 395 static char LocaleIndependentAsciiToLower(char ch) in LocaleIndependentAsciiToLower() argument 397 return (InRange(ch, 'A', 'Z')) ? static_cast<char>((ch - 'A' + 'a')) : ch; in LocaleIndependentAsciiToLower() 666 static bool IsAToZ(char ch) in IsAToZ() argument 668 int lowerCh = JSLocale::AsciiAlphaToLower(ch); in IsAToZ()
|
D | js_date_time_format.cpp | 1221 char16_t ch = pattern.charAt(i); in ChangeHourCyclePattern() local 1222 if (ch == '\'') { in ChangeHourCyclePattern() 1224 result.append(ch); in ChangeHourCyclePattern() 1225 } else if (HOUR_CYCLE_MAP.find(ch) != HOUR_CYCLE_MAP.end()) { in ChangeHourCyclePattern() 1227 result.append(needChange ? key : ch); in ChangeHourCyclePattern() 1229 result.append(ch); in ChangeHourCyclePattern() 1231 last = ch; in ChangeHourCyclePattern()
|
/arkcompiler/ets_frontend/es2panda/lexer/ |
D | lexer.h | 164 inline static uint32_t HexValue(char32_t ch); 166 inline static bool IsHexDigit(char32_t ch); 167 inline static bool IsBinaryDigit(char32_t ch); 168 inline static bool IsOctalDigit(char32_t ch); 410 inline uint32_t Lexer::HexValue(char32_t ch) in HexValue() argument 414 …return ch < LEX_CHAR_UPPERCASE_A ? ch - LEX_CHAR_0 : ((ch - LEX_CHAR_UPPERCASE_A + DEC_OFFSET) & H… in HexValue() 422 inline bool Lexer::IsHexDigit(char32_t ch) in IsHexDigit() argument 424 return ch < LEX_ASCII_MAX_BITS && std::isxdigit(static_cast<unsigned char>(ch)); in IsHexDigit() 427 inline bool Lexer::IsBinaryDigit(char32_t ch) in IsBinaryDigit() argument 429 return ch == LEX_CHAR_0 || ch == LEX_CHAR_1; in IsBinaryDigit() [all …]
|
/arkcompiler/runtime_core/libpandabase/utils/ |
D | json_builder.cpp | 31 …std::find_if(string.begin(), string.end(), [](char ch) { return ch == '"' || ch == '\\' || ch < ' … in JsonEscape() argument
|
D | utf.cpp | 36 std::array<uint8_t, CONST_4> ch; member 169 MUtf8Char ch = ConvertUtf16ToMUtf8(utf16_in[i], next16Code); in ConvertRegionUtf16ToMUtf8() local 170 if (mutf8_pos + ch.n > mutf8_len) { in ConvertRegionUtf16ToMUtf8() 173 for (size_t c = 0; c < ch.n; ++c) { in ConvertRegionUtf16ToMUtf8() 174 … mutf8_out[mutf8_pos++] = ch.ch[c]; // NOLINT(cppcoreguidelines-pro-bounds-pointer-arithmetic) in ConvertRegionUtf16ToMUtf8() 176 if (ch.n == CONST_4) { // Two UTF-16 chars are used in ConvertRegionUtf16ToMUtf8()
|
/arkcompiler/ets_runtime/ecmascript/builtins/ |
D | builtins_global.h | 66 static bool IsUnescapedURI(uint16_t ch); 67 static bool IsInUnescapedURISet(uint16_t ch); 68 static bool IsInReservedURISet(uint16_t ch); 69 static bool IsReservedURI(uint16_t ch); 70 static bool IsInMarkURISet(uint16_t ch); 71 static bool IsHexDigits(uint16_t ch);
|
D | builtins_global.cpp | 84 bool BuiltinsGlobal::IsUnescapedURI(uint16_t ch) in IsUnescapedURI() argument 86 if ((ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z') || (ch >= '0' && ch <= '9')) { in IsUnescapedURI() 89 return IsInMarkURISet(ch); in IsUnescapedURI() 92 bool BuiltinsGlobal::IsInUnescapedURISet(uint16_t ch) in IsInUnescapedURISet() argument 94 if (ch == '#') { in IsInUnescapedURISet() 97 return IsUnescapedURI(ch) || IsReservedURI(ch); in IsInUnescapedURISet() 100 bool BuiltinsGlobal::IsInReservedURISet(uint16_t ch) in IsInReservedURISet() argument 102 if (ch == '#') { in IsInReservedURISet() 105 return IsReservedURI(ch); in IsInReservedURISet() 108 bool BuiltinsGlobal::IsReservedURI(uint16_t ch) in IsReservedURI() argument [all …]
|
/arkcompiler/ets_runtime/ecmascript/base/tests/ |
D | utf_helper_test.cpp | 176 EXPECT_EQ(utf8Char.ch, utf8CharTemp.ch); in HWTEST_F_L0() 186 EXPECT_EQ(utf8Char.ch, utf8CharTemp.ch); in HWTEST_F_L0() 191 EXPECT_EQ(utf8Char.ch, utf8CharTemp.ch); in HWTEST_F_L0() 198 EXPECT_EQ(utf8Char.ch, utf8CharTemp.ch); in HWTEST_F_L0() 203 EXPECT_EQ(utf8Char.ch, utf8CharTemp.ch); in HWTEST_F_L0() 215 EXPECT_EQ(utf8Char.ch, utf8CharTemp.ch); in HWTEST_F_L0() 222 EXPECT_EQ(utf8Char.ch, utf8CharTemp.ch); in HWTEST_F_L0() 236 EXPECT_EQ(utf8Char.ch, utf8CharTemp.ch); in HWTEST_F_L0() 243 EXPECT_EQ(utf8Char.ch, utf8CharTemp.ch); in HWTEST_F_L0() 250 EXPECT_EQ(utf8Char.ch, utf8CharTemp.ch); in HWTEST_F_L0() [all …]
|
D | number_helper_test.cpp | 199 EXPECT_EQ(d.ch.at(1), 160); in HWTEST_F_L0() 200 uint8_t b = d.ch.at(1); in HWTEST_F_L0()
|
/arkcompiler/ets_frontend/merge_abc/src/ |
D | mergeProgram.cpp | 141 … std::find_if(line.begin(), line.end(), [](unsigned char ch) { return std::isspace(ch) == 0; })); in CollectProtoFiles() argument 143 …line.erase(std::find_if(line.rbegin(), line.rend(), [](unsigned char ch) { return ch != CARRIAGE; … in CollectProtoFiles() argument
|
/arkcompiler/ets_runtime/ecmascript/base/ |
D | json_parser.h | 560 bool IsNumberCharacter(T ch) in IsNumberCharacter() argument 562 if (ch >= '0' && ch <= '9') { in IsNumberCharacter() 568 bool IsNumberSignalCharacter(T ch) in IsNumberSignalCharacter() argument 570 return ch == '.' || ch == 'e' || ch == 'E' || ch == '+' || ch == '-'; in IsNumberSignalCharacter()
|
D | utf_helper.cpp | 35 bool IsUTF16HighSurrogate(uint16_t ch) in IsUTF16HighSurrogate() argument 37 return DECODE_LEAD_LOW <= ch && ch <= DECODE_LEAD_HIGH; in IsUTF16HighSurrogate() 40 bool IsUTF16LowSurrogate(uint16_t ch) in IsUTF16LowSurrogate() argument 42 return DECODE_TRAIL_LOW <= ch && ch <= DECODE_TRAIL_HIGH; in IsUTF16LowSurrogate()
|
D | utf_helper.h | 66 std::array<uint8_t, MAX_BYTES> ch; member
|
/arkcompiler/runtime_core/assembler/ |
D | context.cpp | 57 for (const auto &ch : p) { in ValidateRegisterName() local 58 if (std::isdigit(ch) == 0) { in ValidateRegisterName()
|
/arkcompiler/ets_runtime/ecmascript/intl/ |
D | locale_helper.h | 112 static bool IsAsciiAlpha(char ch) in IsAsciiAlpha() argument 114 return InRange(ch, 'A', 'Z') || InRange(ch, 'a', 'z'); in IsAsciiAlpha()
|
/arkcompiler/ets_runtime/ecmascript/compiler/ |
D | compilation_driver.cpp | 210 std::vector<std::string> CompilationDriver::SplitString(const std::string &str, const char ch) const in SplitString() 215 while (getline(sstr, split, ch)) { in SplitString()
|
D | compiler_log.cpp | 66 std::vector<std::string> AotMethodLogList::spiltString(const std::string &str, const char ch) in spiltString() argument 71 while (getline(sstr, spilt, ch)) { in spiltString()
|
D | compiler_log.h | 173 std::vector<std::string> spiltString(const std::string &str, const char ch);
|
D | compilation_driver.h | 338 std::vector<std::string> SplitString(const std::string &str, const char ch) const;
|
D | stub_builder.h | 452 GateRef IsDigit(GateRef ch);
|
D | stub_builder.cpp | 1284 GateRef StubBuilder::IsDigit(GateRef ch) in IsDigit() argument 1286 return BoolAnd(Int32LessThanOrEqual(ch, Int32('9')), in IsDigit() 1287 Int32GreaterThanOrEqual(ch, Int32('0'))); in IsDigit()
|
/arkcompiler/runtime_core/docs/ |
D | coding-style.md | 58 switch (ch) {
|
/arkcompiler/ets_frontend/es2panda/lexer/regexp/ |
D | regexp.cpp | 687 char32_t ch = Next(); in ParseUnicodePropertyEscape() local 688 if (ch == LEX_CHAR_RIGHT_BRACE) { in ParseUnicodePropertyEscape()
|
/arkcompiler/ets_frontend/es2panda/util/ |
D | ustring.h | 273 void Append(char32_t ch) noexcept in Append() argument 279 StringView::Utf8Encode<ArenaString>(str_, ch); in Append()
|