Home
last modified time | relevance | path

Searched refs:ch (Results 1 – 25 of 27) sorted by relevance

12

/arkcompiler/ets_runtime/ecmascript/
Ddate_parse.h80 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 …]
Djs_locale.h385 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()
Djs_date_time_format.cpp1221 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/
Dlexer.h164 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/
Djson_builder.cpp31 …std::find_if(string.begin(), string.end(), [](char ch) { return ch == '"' || ch == '\\' || ch < ' … in JsonEscape() argument
Dutf.cpp36 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/
Dbuiltins_global.h66 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);
Dbuiltins_global.cpp84 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/
Dutf_helper_test.cpp176 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 …]
Dnumber_helper_test.cpp199 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/
DmergeProgram.cpp141 … 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/
Djson_parser.h560 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()
Dutf_helper.cpp35 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()
Dutf_helper.h66 std::array<uint8_t, MAX_BYTES> ch; member
/arkcompiler/runtime_core/assembler/
Dcontext.cpp57 for (const auto &ch : p) { in ValidateRegisterName() local
58 if (std::isdigit(ch) == 0) { in ValidateRegisterName()
/arkcompiler/ets_runtime/ecmascript/intl/
Dlocale_helper.h112 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/
Dcompilation_driver.cpp210 std::vector<std::string> CompilationDriver::SplitString(const std::string &str, const char ch) const in SplitString()
215 while (getline(sstr, split, ch)) { in SplitString()
Dcompiler_log.cpp66 std::vector<std::string> AotMethodLogList::spiltString(const std::string &str, const char ch) in spiltString() argument
71 while (getline(sstr, spilt, ch)) { in spiltString()
Dcompiler_log.h173 std::vector<std::string> spiltString(const std::string &str, const char ch);
Dcompilation_driver.h338 std::vector<std::string> SplitString(const std::string &str, const char ch) const;
Dstub_builder.h452 GateRef IsDigit(GateRef ch);
Dstub_builder.cpp1284 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/
Dcoding-style.md58 switch (ch) {
/arkcompiler/ets_frontend/es2panda/lexer/regexp/
Dregexp.cpp687 char32_t ch = Next(); in ParseUnicodePropertyEscape() local
688 if (ch == LEX_CHAR_RIGHT_BRACE) { in ParseUnicodePropertyEscape()
/arkcompiler/ets_frontend/es2panda/util/
Dustring.h273 void Append(char32_t ch) noexcept in Append() argument
279 StringView::Utf8Encode<ArenaString>(str_, ch); in Append()

12