HomeSort by relevance Sort by last modified time
    Searched refs:code_point (Results 1 - 25 of 52) sorted by null

1 2 3

  /external/libchrome/base/strings/
utf_string_conversion_utils.h 18 inline bool IsValidCodepoint(uint32_t code_point) {
22 return code_point < 0xD800u ||
23 (code_point >= 0xE000u && code_point <= 0x10FFFFu);
26 inline bool IsValidCharacter(uint32_t code_point) {
29 return code_point < 0xD800u || (code_point >= 0xE000u &&
30 code_point < 0xFDD0u) || (code_point > 0xFDEFu &&
31 code_point <= 0x10FFFFu && (code_point & 0xFFFEu) != 0xFFFEu)
    [all...]
utf_string_conversion_utils.cc 18 // use a signed type for code_point. But this function returns false
20 int32_t code_point; local
21 CBU8_NEXT(src, *char_index, src_len, code_point);
22 *code_point_out = static_cast<uint32_t>(code_point);
29 return IsValidCodepoint(code_point);
35 uint32_t* code_point) {
45 *code_point = CBU16_GET_SUPPLEMENTARY(src[*char_index],
50 *code_point = src[*char_index];
53 return IsValidCodepoint(*code_point);
60 uint32_t* code_point) {
    [all...]
utf_string_conversions.cc 32 uint32_t code_point; local
33 if (ReadUnicodeCharacter(src, src_len32, &i, &code_point)) {
34 WriteUnicodeCharacter(code_point, output);
string_util.cc 371 base_icu::UChar32 code_point = 0; local
372 CBU8_NEXT(data, char_index, truncation_length, code_point);
373 if (!IsValidCharacter(code_point) ||
374 !IsValidCodepoint(code_point)) {
524 int32_t code_point; local
525 CBU8_NEXT(src, char_index, src_len, code_point);
526 if (!IsValidCharacter(code_point))
  /external/libchrome/base/json/
string_escape.cc 32 // Try to escape the |code_point| if it is a known special character. If
35 bool EscapeSpecialCodePoint(uint32_t code_point, std::string* dest) {
39 switch (code_point) {
93 uint32_t code_point; local
94 if (!ReadUnicodeCharacter(str.data(), length, &i, &code_point)) {
95 code_point = kReplacementCodePoint;
99 if (EscapeSpecialCodePoint(code_point, dest))
103 if (code_point < 32)
104 base::StringAppendF(dest, kU16EscapeFormat, code_point);
106 WriteUnicodeCharacter(code_point, dest)
    [all...]
json_parser.cc 792 uint32_t code_point = local
794 if (!IsValidCharacter(code_point))
798 CBU8_APPEND_UNSAFE(code_unit8, offset, code_point);
  /external/v8/src/
unicode-inl.h 14 template <class T, int s> bool Predicate<T, s>::get(uchar code_point) {
15 CacheEntry entry = entries_[code_point & kMask];
16 if (entry.code_point() == code_point) return entry.value();
17 return CalculateValue(code_point);
21 uchar code_point) {
22 bool result = T::Is(code_point);
23 entries_[code_point & kMask] = CacheEntry(code_point, result);
unicode.h 40 inline CacheEntry(uchar code_point, bool value)
41 : bit_field_(CodePointField::encode(code_point) |
44 uchar code_point() const { return CodePointField::decode(bit_field_); } function in class:unibrow::Predicate::CacheEntry
73 inline CacheEntry(uchar code_point, signed offset)
74 : code_point_(code_point),
  /art/test/ti-agent/
ti_utf.h 94 const uint32_t code_point = ((one & 0x0f) << 18) | ((two & 0x3f) << 12) local
100 surrogate_pair |= ((code_point >> 10) + 0xd7c0) & 0xffff;
102 surrogate_pair |= ((code_point & 0x03ff) + 0xdc00) << 16;
139 const uint32_t code_point = (ch << 10) + ch2 - 0x035fdc00; local
140 *utf8_out++ = (code_point >> 18) | 0xf0;
141 *utf8_out++ = ((code_point >> 12) & 0x3f) | 0x80;
142 *utf8_out++ = ((code_point >> 6) & 0x3f) | 0x80;
143 *utf8_out++ = (code_point & 0x3f) | 0x80;
  /art/runtime/
utf-inl.h 59 const uint32_t code_point = ((one & 0x0f) << 18) | ((two & 0x3f) << 12) local
65 surrogate_pair |= ((code_point >> 10) + 0xd7c0) & 0xffff;
67 surrogate_pair |= ((code_point & 0x03ff) + 0xdc00) << 16;
utf.cc 150 const uint32_t code_point = (ch << 10) + ch2 - 0x035fdc00; local
151 *utf8_out++ = (code_point >> 18) | 0xf0;
152 *utf8_out++ = ((code_point >> 12) & 0x3f) | 0x80;
153 *utf8_out++ = ((code_point >> 6) & 0x3f) | 0x80;
154 *utf8_out++ = (code_point & 0x3f) | 0x80;
utf_test.cc 284 const uint32_t code_point = (ch << 10) + ch2 - 0x035fdc00; local
285 *utf8_out++ = (code_point >> 18) | 0xf0;
286 *utf8_out++ = ((code_point >> 12) & 0x3f) | 0x80;
287 *utf8_out++ = ((code_point >> 6) & 0x3f) | 0x80;
288 *utf8_out++ = (code_point & 0x3f) | 0x80;
309 static void codePointToSurrogatePair(uint32_t code_point, uint16_t &first, uint16_t &second) {
310 first = (code_point >> 10) + 0xd7c0;
311 second = (code_point & 0x03ff) + 0xdc00;
  /external/protobuf/src/google/protobuf/io/
tokenizer.cc 927 static void AppendUTF8(uint32 code_point, string* output) {
930 if (code_point <= 0x7f) {
931 tmp = code_point;
933 } else if (code_point <= 0x07ff) {
935 ((code_point & 0x07c0) << 2) |
936 (code_point & 0x003f);
938 } else if (code_point <= 0xffff) {
940 ((code_point & 0xf000) << 4) |
941 ((code_point & 0x0fc0) << 2) |
942 (code_point & 0x003f)
    [all...]
  /external/vboot_reference/cgpt/
cgpt_common.c 443 uint32_t code_point = 0; local
461 code_point = (codeunit & 0x03FF) + 0x0040;
464 code_point = codeunit;
469 code_point = (code_point << 10) | (codeunit & 0x03FF);
481 require(code_point <= 0x10FFFF);
482 if (code_point <= 0x7F && maxoutput >= 1) {
484 utf8[s8idx++] = code_point & 0x7F;
485 } else if (code_point <= 0x7FF && maxoutput >= 2) {
487 utf8[s8idx++] = 0xC0 | (code_point >> 6)
531 uint32_t code_point = 0; local
    [all...]
  /external/antlr/antlr-3.4/tool/src/main/java/org/antlr/codegen/
RubyTarget.java 372 int code_point = 0; local
380 code_point = literal.codePointAt( 1 );
383 code_point = 10;
386 code_point = 13;
389 code_point = 9;
392 code_point = 8;
395 code_point = 12;
398 code_point = Integer.parseInt( literal.substring( 2 ), 16 );
405 code_point = literal.codePointAt( 0 );
410 return ( "0x" + Integer.toHexString( code_point ) );
    [all...]
  /external/protobuf/src/google/protobuf/stubs/
strutil.cc     [all...]
strutil.h     [all...]
  /external/google-breakpad/src/testing/gtest/src/
gtest.cc     [all...]
  /external/googletest/googletest/src/
gtest.cc     [all...]
  /external/libvpx/libvpx/third_party/googletest/src/src/
gtest.cc     [all...]
  /external/llvm/utils/unittest/googletest/src/
gtest.cc     [all...]
  /external/mesa3d/src/gtest/src/
gtest.cc     [all...]
  /external/protobuf/gtest/src/
gtest.cc     [all...]
  /external/swiftshader/third_party/LLVM/utils/unittest/googletest/
gtest.cc     [all...]
  /external/v8/testing/gtest/src/
gtest.cc     [all...]

Completed in 706 milliseconds

1 2 3