Home
last modified time | relevance | path

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

/art/runtime/
Dutf.cc80 const uint32_t ch = GetUtf16FromUtf8(&utf8_data_in); in ConvertModifiedUtf8ToUtf16() local
81 const uint16_t leading = GetLeadingUtf16Char(ch); in ConvertModifiedUtf8ToUtf16()
82 const uint16_t trailing = GetTrailingUtf16Char(ch); in ConvertModifiedUtf8ToUtf16()
109 const uint32_t ch = GetUtf16FromUtf8(&p); in ConvertModifiedUtf8ToUtf16() local
110 const uint16_t leading = GetLeadingUtf16Char(ch); in ConvertModifiedUtf8ToUtf16()
111 const uint16_t trailing = GetTrailingUtf16Char(ch); in ConvertModifiedUtf8ToUtf16()
133 const uint16_t ch = *utf16_in++; in ConvertUtf16ToModifiedUtf8() local
134 if (ch > 0 && ch <= 0x7f) { in ConvertUtf16ToModifiedUtf8()
135 *utf8_out++ = ch; in ConvertUtf16ToModifiedUtf8()
141 if ((ch >= 0xd800 && ch <= 0xdbff) && (char_count > 0)) { in ConvertUtf16ToModifiedUtf8()
[all …]
Dutf_test.cc233 const uint16_t ch = *chars++; in CountUtf8Bytes_reference() local
234 if (ch > 0 && ch <= 0x7f) { in CountUtf8Bytes_reference()
236 } else if (ch >= 0xd800 && ch <= 0xdbff) { in CountUtf8Bytes_reference()
255 } else if (ch > 0x7ff) { in CountUtf8Bytes_reference()
267 const uint16_t ch = *utf16_in++; in ConvertUtf16ToModifiedUtf8_reference() local
268 if (ch > 0 && ch <= 0x7f) { in ConvertUtf16ToModifiedUtf8_reference()
269 *utf8_out++ = ch; in ConvertUtf16ToModifiedUtf8_reference()
275 if ((ch >= 0xd800 && ch <= 0xdbff) && (char_count > 0)) { in ConvertUtf16ToModifiedUtf8_reference()
284 const uint32_t code_point = (ch << 10) + ch2 - 0x035fdc00; in ConvertUtf16ToModifiedUtf8_reference()
293 if (ch > 0x07ff) { in ConvertUtf16ToModifiedUtf8_reference()
[all …]
Dutils.cc261 char ch = *p++; in PrettyDescriptor() local
262 if (ch == '/') { in PrettyDescriptor()
263 ch = '.'; in PrettyDescriptor()
265 result.push_back(ch); in PrettyDescriptor()
491 std::string PrintableChar(uint16_t ch) { in PrintableChar() argument
494 if (NeedsEscaping(ch)) { in PrintableChar()
495 StringAppendF(&result, "\\u%04x", ch); in PrintableChar()
497 result += ch; in PrintableChar()
509 uint32_t ch = GetUtf16FromUtf8(&p); in PrintableString() local
510 if (ch == '\\') { in PrintableString()
[all …]
Dutils.h98 static inline bool NeedsEscaping(uint16_t ch) { in NeedsEscaping() argument
99 return (ch < ' ' || ch > '~'); in NeedsEscaping()
119 std::string PrintableChar(uint16_t ch);
Dart_method.cc97 char ch = shorty[i]; in NumArgRegisters() local
98 if (ch == 'D' || ch == 'J') { in NumArgRegisters()
Dclass_linker_test.cc702 for (int ch = 1; ch < 256; ++ch) { in TEST_F() local
704 descriptor.push_back(ch); in TEST_F()
705 if (expected.find(ch) == std::string::npos) { in TEST_F()
/art/runtime/native/
Dlibcore_util_CharsetUtils.cc125 jchar ch = static_cast<jchar>(*src++ & 0xff); in CharsetUtils_asciiBytesToChars() local
126 *dst++ = (ch <= 0x7f) ? ch : REPLACEMENT_CHAR; in CharsetUtils_asciiBytesToChars()
171 jchar ch = *src++; in charsToBytes() local
172 if (ch > maxValidChar) { in charsToBytes()
173 ch = '?'; in charsToBytes()
175 *dst++ = static_cast<jbyte>(ch); in charsToBytes()
207 jint ch = string->CharAt(i); in CharsetUtils_toUtf8Bytes() local
208 if (ch < 0x80) { in CharsetUtils_toUtf8Bytes()
210 if (!out.append(ch)) { in CharsetUtils_toUtf8Bytes()
213 } else if (ch < 0x800) { in CharsetUtils_toUtf8Bytes()
[all …]
Djava_lang_String.cc66 static jint String_fastIndexOf(JNIEnv* env, jobject java_this, jint ch, jint start) { in String_fastIndexOf() argument
69 DCHECK_LE(ch, 0xffff); in String_fastIndexOf()
70 return soa.Decode<mirror::String*>(java_this)->FastIndexOf(ch, start); in String_fastIndexOf()
/art/compiler/jni/quick/
Dcalling_convention.h87 char ch = shorty_[i]; in CallingConvention() local
88 switch (ch) { in CallingConvention()
119 char ch = shorty_[param]; in IsParamALongOrDouble() local
120 return (ch == 'J' || ch == 'D'); in IsParamALongOrDouble()
129 char ch = shorty_[param]; in IsParamAFloatOrDouble() local
130 return (ch == 'F' || ch == 'D'); in IsParamAFloatOrDouble()
/art/runtime/mirror/
Dstring.cc37 int32_t String::FastIndexOf(int32_t ch, int32_t start) { in FastIndexOf() argument
48 if (*p++ == ch) { in FastIndexOf()
173 const uint32_t ch = GetUtf16FromUtf8(&modified_utf8); in Equals() local
174 if (ch == '\0') { in Equals()
178 if (GetLeadingUtf16Char(ch) != CharAt(i++)) { in Equals()
182 const uint16_t trailing = GetTrailingUtf16Char(ch); in Equals()
200 uint32_t ch = GetUtf16FromUtf8(&p); in Equals() local
202 if (GetLeadingUtf16Char(ch) != CharAt(i)) { in Equals()
206 const uint16_t trailing = GetTrailingUtf16Char(ch); in Equals()
Dstring.h150 int32_t FastIndexOf(int32_t ch, int32_t start) SHARED_REQUIRES(Locks::mutator_lock_);
Dobject_test.cc54 uint16_t ch = (((utf16_expected_le[i*2 + 0] & 0xff) << 8) | in AssertString() local
56 utf16_expected[i] = ch; in AssertString()
/art/cmdline/
Dtoken_range.h212 auto it = std::remove_if(token.begin(), token.end(), [&](char ch) { in RemoveCharacter()
213 if (ch == c) { in RemoveCharacter()
/art/dexdump/
Ddexdump.cc150 const char ch = str[offset + i]; in descriptorToDot() local
151 newStr[i] = (ch == '/' || ch == '$') ? '.' : ch; in descriptorToDot()