Home
last modified time | relevance | path

Searched refs:ch (Results 1 - 25 of 56) sorted by relevance

123

/arkcompiler/runtime_core/static_core/plugins/ets/runtime/napi/
H A Dets_mangle.cpp30 auto [ch, len] = ark::utf::ConvertMUtf8ToUtf16Pair(utf8); in MangleString()
33 if (ch == '.' || ch == '/') { in MangleString()
35 } else if (ch == '_') { in MangleString()
37 } else if (ch == ';') { in MangleString()
39 } else if (ch == '[') { in MangleString()
41 } else if ((ch >= '0' && ch <= '9') || (ch >= 'a' && ch < in MangleString()
[all...]
/arkcompiler/ets_runtime/ecmascript/base/
H A Djson_helper.cpp34 for (const auto ch : str) { in IsFastValueToQuotedString()
35 switch (ch) { in IsFastValueToQuotedString()
47 if (ch > 0 && ch < CODE_SPACE) { in IsFastValueToQuotedString()
69 auto ch = str[i]; in AppendValueToQuotedString() local
70 switch (ch) { in AppendValueToQuotedString()
98 str[i + 1] >= ALONE_SURROGATE_3B_SECOND_START && // 1: The first character after ch in AppendValueToQuotedString()
99 str[i + 1] <= ALONE_SURROGATE_3B_SECOND_END && // 1: The first character after ch in AppendValueToQuotedString()
100 str[i + 2] >= ALONE_SURROGATE_3B_THIRD_START && // 2: The second character after ch in AppendValueToQuotedString()
101 str[i + 2] <= ALONE_SURROGATE_3B_THIRD_END) { // 2: The second character after ch in AppendValueToQuotedString()
[all...]
H A Djson_helper.h65 static inline void AppendUnicodeEscape(int ch, CString& output) in AppendUnicodeEscape() argument
69 output += HEX_DIGIT[(ch >> HEX_SHIFT_THREE) & HEX_DIGIT_MASK]; in AppendUnicodeEscape()
70 output += HEX_DIGIT[(ch >> HEX_SHIFT_TWO) & HEX_DIGIT_MASK]; in AppendUnicodeEscape()
71 output += HEX_DIGIT[(ch >> HEX_SHIFT_ONE) & HEX_DIGIT_MASK]; in AppendUnicodeEscape()
72 output += HEX_DIGIT[ch & HEX_DIGIT_MASK]; in AppendUnicodeEscape()
H A Dutf_helper.h98 std::array<uint8_t, MAX_BYTES> ch; member
144 static inline bool IsHexDigits(uint16_t ch) in IsHexDigits() argument
146 return (ch >= '0' && ch <= '9') || (ch >= 'A' && ch <= 'F') || (ch >= 'a' && ch <= 'f'); in IsHexDigits()
/arkcompiler/ets_frontend/es2panda/lexer/
H A Dlexer.h169 inline static uint32_t HexValue(char32_t ch);
171 inline static bool IsHexDigit(char32_t ch);
172 inline static bool IsBinaryDigit(char32_t ch);
173 inline static bool IsOctalDigit(char32_t ch);
424 inline uint32_t Lexer::HexValue(char32_t ch) in HexValue() argument
428 return ch < LEX_CHAR_UPPERCASE_A ? ch - LEX_CHAR_0 : ((ch - LEX_CHAR_UPPERCASE_A + DEC_OFFSET) & HEX_MASK); in HexValue()
436 inline bool Lexer::IsHexDigit(char32_t ch) in IsHexDigit() argument
438 return ch < LEX_ASCII_MAX_BIT in IsHexDigit()
441 IsBinaryDigit(char32_t ch) IsBinaryDigit() argument
446 IsOctalDigit(char32_t ch) IsOctalDigit() argument
[all...]
/arkcompiler/ets_runtime/ecmascript/
H A Ddate_parse.h86 char GetLower(char ch) in GetLower() argument
88 if (ch >= 'A' && ch <= 'Z') { in GetLower()
90 return ch + 32; in GetLower()
92 return ch; in GetLower()
116 bool IsThisChar(char ch) const in IsThisChar()
118 return value_ == ch; in IsThisChar()
137 bool IsChar(char ch) in IsChar() argument
139 if (value_ != ch) { in IsChar()
187 bool IsSymbol(char ch) cons
265 Symbol(char ch) Symbol() argument
336 IgnoreSymbol(char ch) IgnoreSymbol() argument
[all...]
H A Djs_locale.h397 static bool IsAsciiAlpha(char ch) in IsAsciiAlpha() argument
399 return InRange(ch, 'A', 'Z') || InRange(ch, 'a', 'z'); in IsAsciiAlpha()
402 static char LocaleIndependentAsciiToUpper(char ch) in LocaleIndependentAsciiToUpper() argument
404 return (InRange(ch, 'a', 'z')) ? static_cast<char>((ch - 'a' + 'A')) : ch; in LocaleIndependentAsciiToUpper()
407 static char LocaleIndependentAsciiToLower(char ch) in LocaleIndependentAsciiToLower() argument
409 return (InRange(ch, 'A', 'Z')) ? static_cast<char>((ch in LocaleIndependentAsciiToLower()
684 IsAToZ(char ch) IsAToZ() argument
[all...]
H A Djs_date_time_format.cpp226 char16_t ch = pattern[i]; in HourCycleFromPattern() local
227 switch (ch) { in HourCycleFromPattern()
1498 char16_t ch = pattern.charAt(i); in ChangeHourCyclePattern() local
1499 if (ch == '\'') { in ChangeHourCyclePattern()
1501 result.append(ch); in ChangeHourCyclePattern()
1502 } else if (HOUR_CYCLE_MAP.find(ch) != HOUR_CYCLE_MAP.end()) { in ChangeHourCyclePattern()
1504 result.append(needChange ? key : ch); in ChangeHourCyclePattern()
1506 result.append(ch); in ChangeHourCyclePattern()
1508 last = ch; in ChangeHourCyclePattern()
/arkcompiler/runtime_core/libpandabase/utils/
H A Djson_builder.cpp31 std::find_if(string.begin(), string.end(), [](char ch) { return ch == '"' || ch == '\\' || ch < ' '; }); in JsonEscape()
H A 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/runtime_core/static_core/libpandabase/utils/
H A Djson_builder.cpp31 std::find_if(string.begin(), string.end(), [](char ch) { return ch == '"' || ch == '\\' || ch < ' '; }); in JsonEscape()
/arkcompiler/toolchain/websocket/
H A Dstring_utils.h27 str.erase(str.begin(), std::find_if(str.begin(), str.end(), [](unsigned char ch) { return !std::isspace(ch); })); in TrimLeft()
32 str.erase(std::find_if(str.rbegin(), str.rend(), [](unsigned char ch) { return !std::isspace(ch); }).base(), in TrimRight()
/arkcompiler/ets_runtime/ecmascript/builtins/
H A Dbuiltins_global.h191 static bool IsUnescapedURI(uint16_t ch);
192 static bool IsInUnescapedURISet(uint16_t ch);
193 static bool IsInReservedURISet(uint16_t ch);
194 static bool IsReservedURI(uint16_t ch);
195 static bool IsInMarkURISet(uint16_t ch);
196 static bool IsHexDigits(uint16_t ch);
205 static bool IsUTF16HighSurrogate(uint16_t ch) in IsUTF16HighSurrogate() argument
207 return base::utf_helper::DECODE_LEAD_LOW <= ch && ch <= base::utf_helper::DECODE_LEAD_HIGH; in IsUTF16HighSurrogate()
210 static bool IsUTF16LowSurrogate(uint16_t ch) in IsUTF16LowSurrogate() argument
[all...]
H A Dbuiltins_global.cpp117 bool BuiltinsGlobal::IsUnescapedURI(uint16_t ch) in IsUnescapedURI() argument
119 if ((ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z') || (ch >= '0' && ch <= '9')) { in IsUnescapedURI()
122 return IsInMarkURISet(ch); in IsUnescapedURI()
125 bool BuiltinsGlobal::IsInUnescapedURISet(uint16_t ch) in IsInUnescapedURISet() argument
127 if (ch in IsInUnescapedURISet()
133 IsInReservedURISet(uint16_t ch) IsInReservedURISet() argument
141 IsReservedURI(uint16_t ch) IsReservedURI() argument
148 IsInMarkURISet(uint16_t ch) IsInMarkURISet() argument
155 IsHexDigits(uint16_t ch) IsHexDigits() argument
339 uint16_t ch = EcmaStringAccessor(string).Get(i); GetValueFromHexString() local
[all...]
H A Dbuiltins_string.h295 static bool IsUTF16HighSurrogate(uint16_t ch) in IsUTF16HighSurrogate() argument
297 return base::utf_helper::DECODE_LEAD_LOW <= ch && ch <= base::utf_helper::DECODE_LEAD_HIGH; in IsUTF16HighSurrogate()
299 static bool IsUTF16LowSurrogate(uint16_t ch) in IsUTF16LowSurrogate() argument
301 return base::utf_helper::DECODE_TRAIL_LOW <= ch && ch <= base::utf_helper::DECODE_TRAIL_HIGH; in IsUTF16LowSurrogate()
/arkcompiler/ets_frontend/ets2panda/lexer/
H A Dlexer.h297 inline static uint32_t HexValue(char32_t ch);
299 inline static bool IsHexDigit(char32_t ch);
300 inline static bool IsBinaryDigit(char32_t ch);
301 inline static bool IsOctalDigit(char32_t ch);
577 inline uint32_t Lexer::HexValue(char32_t ch) in HexValue() argument
581 return ch < LEX_CHAR_UPPERCASE_A ? ch - LEX_CHAR_0 : ((ch - LEX_CHAR_UPPERCASE_A + DEC_OFFSET) & HEX_MASK); in HexValue()
589 inline bool Lexer::IsHexDigit(char32_t ch) in IsHexDigit() argument
591 return ch < LEX_ASCII_MAX_BIT in IsHexDigit()
594 IsBinaryDigit(char32_t ch) IsBinaryDigit() argument
599 IsOctalDigit(char32_t ch) IsOctalDigit() argument
[all...]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_util/src/
H A Dnamemangler.cpp34 static inline bool UpdatePrimType(bool primType, int splitNo, uint32_t ch) in UpdatePrimType() argument
36 if (ch == 'L') { in UpdatePrimType()
40 if (((ch == ';') || (ch == '(') || (ch == ')')) && (splitNo > 1)) { in UpdatePrimType()
/arkcompiler/ets_runtime/ecmascript/base/tests/
H A Dutf_helper_test.cpp166 EXPECT_EQ(utf8Char.ch, utf8CharTemp.ch); in HWTEST_F_L0()
176 EXPECT_EQ(utf8Char.ch, utf8CharTemp.ch); in HWTEST_F_L0()
181 EXPECT_EQ(utf8Char.ch, utf8CharTemp.ch); in HWTEST_F_L0()
188 EXPECT_EQ(utf8Char.ch, utf8CharTemp.ch); in HWTEST_F_L0()
193 EXPECT_EQ(utf8Char.ch, utf8CharTemp.ch); in HWTEST_F_L0()
[all...]
/arkcompiler/ets_frontend/merge_abc/src/
H A DmergeProgram.cpp157 std::find_if(line.begin(), line.end(), [](unsigned char ch) { return std::isspace(ch) == 0; })); in CollectProtoFiles()
159 line.erase(std::find_if(line.rbegin(), line.rend(), [](unsigned char ch) { return ch != CARRIAGE; }).base(), in CollectProtoFiles()
/arkcompiler/ets_frontend/ets2panda/util/
H A Dustring.cpp87 char32_t ch = it.PeekCp(&size); in IsConvertibleToChar() local
88 return size == Length() && ch != Iterator::INVALID_CP; in IsConvertibleToChar()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/test/mempool/
H A Dmaple_string_test.cpp95 char ch = 'o'; in TEST() local
98 ans = ms_obj.find(ch, 0); // 3 in TEST()
100 ans = ms_obj.find(ch, 900); in TEST()
/arkcompiler/ets_runtime/ecmascript/intl/
H A Dlocale_helper.h114 static bool IsAsciiAlpha(char ch) in IsAsciiAlpha() argument
116 return InRange(ch, 'A', 'Z') || InRange(ch, 'a', 'z'); in IsAsciiAlpha()
/arkcompiler/runtime_core/assembler/
H A Dcontext.cpp57 for (const auto &ch : p) { in ValidateRegisterName()
58 if (std::isdigit(ch) == 0) { in ValidateRegisterName()
/arkcompiler/runtime_core/static_core/assembler/
H A Dcontext.cpp56 for (const auto &ch : p) { in ValidateFoundedRegisterName()
57 if (std::isdigit(ch) == 0) { in ValidateFoundedRegisterName()
/arkcompiler/ets_runtime/ecmascript/compiler/
H A Dcompilation_driver.cpp77 std::vector<std::string> CompilationDriver::SplitString(const std::string &str, const char ch) const in SplitString()
82 while (getline(sstr, split, ch)) { in SplitString()

Completed in 30 milliseconds

123