Searched refs:code_point (Results 1 - 25 of 33) sorted by relevance

12

/external/libchrome/base/strings/
H A Dutf_string_conversion_utils.h18 inline bool IsValidCodepoint(uint32_t code_point) { argument
22 return code_point < 0xD800u ||
23 (code_point >= 0xE000u && code_point <= 0x10FFFFu);
26 inline bool IsValidCharacter(uint32_t code_point) { argument
29 return code_point < 0xD800u || (code_point >= 0xE000u &&
30 code_point < 0xFDD0u) || (code_point > 0xFDEFu &&
31 code_point <
76 WriteUnicodeCharacter(uint32_t code_point, std::wstring* output) argument
[all...]
H A Dutf_string_conversion_utils.cc18 // 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) {
32 ReadUnicodeCharacter(const char16* src, int32_t src_len, int32_t* char_index, uint32_t* code_point) argument
57 ReadUnicodeCharacter(const wchar_t* src, int32_t , int32_t* char_index, uint32_t* code_point) argument
71 WriteUnicodeCharacter(uint32_t code_point, std::string* output) argument
92 WriteUnicodeCharacter(uint32_t code_point, string16* output) argument
[all...]
H A Dutf_string_conversions.cc32 uint32_t code_point; local
33 if (ReadUnicodeCharacter(src, src_len32, &i, &code_point)) {
34 WriteUnicodeCharacter(code_point, output);
H A Dstring_util.cc372 base_icu::UChar32 code_point = 0; local
373 CBU8_NEXT(data, char_index, truncation_length, code_point);
374 if (!IsValidCharacter(code_point) ||
375 !IsValidCodepoint(code_point)) {
525 int32_t code_point; local
526 CBU8_NEXT(src, char_index, src_len, code_point);
527 if (!IsValidCharacter(code_point))
/external/libweave/third_party/chromium/base/strings/
H A Dutf_string_conversion_utils.h19 inline bool IsValidCodepoint(uint32_t code_point) { argument
23 return code_point < 0xD800u ||
24 (code_point >= 0xE000u && code_point <= 0x10FFFFu);
27 inline bool IsValidCharacter(uint32_t code_point) { argument
30 return code_point < 0xD800u || (code_point >= 0xE000u &&
31 code_point < 0xFDD0u) || (code_point > 0xFDEFu &&
32 code_point <
67 WriteUnicodeCharacter(uint32_t code_point, std::wstring* output) argument
[all...]
H A Dutf_string_conversion_utils.cc18 // 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);
34 size_t WriteUnicodeCharacter(uint32_t code_point, std::string* output) { argument
35 if (code_point <= 0x7f) {
37 output->push_back(static_cast<char>(code_point));
47 CBU8_APPEND_UNSAFE(&(*output)[0], char_offset, code_point);
H A Dstring_util.cc237 int32_t code_point; local
238 CBU8_NEXT(src, char_index, src_len, code_point);
239 if (!IsValidCharacter(code_point))
/external/libweave/third_party/chromium/base/json/
H A Dstring_escape.cc32 // Try to escape the |code_point| if it is a known special character. If
35 bool EscapeSpecialCodePoint(uint32_t code_point, std::string* dest) { argument
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, des
[all...]
H A Djson_parser.cc781 uint32_t code_point = local
783 if (!IsValidCharacter(code_point))
787 CBU8_APPEND_UNSAFE(code_unit8, offset, code_point);
/external/libchrome/base/json/
H A Dstring_escape.cc32 // Try to escape the |code_point| if it is a known special character. If
35 bool EscapeSpecialCodePoint(uint32_t code_point, std::string* dest) { argument
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, des
[all...]
H A Djson_parser.cc786 uint32_t code_point = local
788 if (!IsValidCharacter(code_point))
792 CBU8_APPEND_UNSAFE(code_unit8, offset, code_point);
/external/v8/src/
H A Dunicode-inl.h14 template <class T, int s> bool Predicate<T, s>::get(uchar code_point) { argument
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);
20 CalculateValue( uchar code_point) argument
H A Dunicode.h40 inline CacheEntry(uchar code_point, bool value) argument
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) argument
74 : code_point_(code_point),
/external/protobuf/src/google/protobuf/io/
H A Dtokenizer.cc915 static void AppendUTF8(uint32 code_point, string* output) { argument
918 if (code_point <= 0x7f) {
919 tmp = code_point;
921 } else if (code_point <= 0x07ff) {
923 ((code_point & 0x07c0) << 2) |
924 (code_point & 0x003f);
926 } else if (code_point <= 0xffff) {
928 ((code_point & 0xf000) << 4) |
929 ((code_point & 0x0fc0) << 2) |
930 (code_point
971 IsHeadSurrogate(uint32 code_point) argument
975 IsTrailSurrogate(uint32 code_point) argument
999 FetchUnicodePoint(const char* ptr, uint32* code_point) argument
[all...]
/external/vboot_reference/cgpt/
H A Dcgpt_common.c443 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 >>
531 uint32_t code_point = 0; local
[all...]
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/codegen/
H A DRubyTarget.java372 int code_point = 0;
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/google-breakpad/src/testing/gtest/src/
H A Dgtest.cc1429 // code_point parameter is of type UInt32 because wchar_t may not be
1433 // If the code_point is not a valid Unicode code point
1436 char* CodePointToUtf8(UInt32 code_point, char* str) { argument
1437 if (code_point <= kMaxCodePoint1) {
1439 str[0] = static_cast<char>(code_point); // 0xxxxxxx
1440 } else if (code_point <= kMaxCodePoint2) {
1442 str[1] = static_cast<char>(0x80 | ChopLowBits(&code_point, 6)); // 10xxxxxx
1443 str[0] = static_cast<char>(0xC0 | code_point); // 110xxxxx
1444 } else if (code_point <= kMaxCodePoint3) {
1446 str[2] = static_cast<char>(0x80 | ChopLowBits(&code_point,
[all...]
/external/gtest/src/
H A Dgtest.cc1431 // code_point parameter is of type UInt32 because wchar_t may not be
1433 // If the code_point is not a valid Unicode code point
1436 std::string CodePointToUtf8(UInt32 code_point) { argument
1437 if (code_point > kMaxCodePoint4) {
1438 return "(Invalid Unicode 0x" + String::FormatHexInt(code_point) + ")";
1442 if (code_point <= kMaxCodePoint1) {
1444 str[0] = static_cast<char>(code_point); // 0xxxxxxx
1445 } else if (code_point <= kMaxCodePoint2) {
1447 str[1] = static_cast<char>(0x80 | ChopLowBits(&code_point, 6)); // 10xxxxxx
1448 str[0] = static_cast<char>(0xC0 | code_point); // 11
[all...]
/external/llvm/utils/unittest/googletest/src/
H A Dgtest.cc1428 // code_point parameter is of type UInt32 because wchar_t may not be
1432 // If the code_point is not a valid Unicode code point
1435 char* CodePointToUtf8(UInt32 code_point, char* str) { argument
1436 if (code_point <= kMaxCodePoint1) {
1438 str[0] = static_cast<char>(code_point); // 0xxxxxxx
1439 } else if (code_point <= kMaxCodePoint2) {
1441 str[1] = static_cast<char>(0x80 | ChopLowBits(&code_point, 6)); // 10xxxxxx
1442 str[0] = static_cast<char>(0xC0 | code_point); // 110xxxxx
1443 } else if (code_point <= kMaxCodePoint3) {
1445 str[2] = static_cast<char>(0x80 | ChopLowBits(&code_point,
[all...]
/external/mesa3d/src/gtest/src/
H A Dgtest.cc1428 // code_point parameter is of type UInt32 because wchar_t may not be
1432 // If the code_point is not a valid Unicode code point
1435 char* CodePointToUtf8(UInt32 code_point, char* str) { argument
1436 if (code_point <= kMaxCodePoint1) {
1438 str[0] = static_cast<char>(code_point); // 0xxxxxxx
1439 } else if (code_point <= kMaxCodePoint2) {
1441 str[1] = static_cast<char>(0x80 | ChopLowBits(&code_point, 6)); // 10xxxxxx
1442 str[0] = static_cast<char>(0xC0 | code_point); // 110xxxxx
1443 } else if (code_point <= kMaxCodePoint3) {
1445 str[2] = static_cast<char>(0x80 | ChopLowBits(&code_point,
[all...]
/external/protobuf/gtest/src/
H A Dgtest.cc1449 // code_point parameter is of type UInt32 because wchar_t may not be
1453 // If the code_point is not a valid Unicode code point
1456 char* CodePointToUtf8(UInt32 code_point, char* str) { argument
1457 if (code_point <= kMaxCodePoint1) {
1459 str[0] = static_cast<char>(code_point); // 0xxxxxxx
1460 } else if (code_point <= kMaxCodePoint2) {
1462 str[1] = static_cast<char>(0x80 | ChopLowBits(&code_point, 6)); // 10xxxxxx
1463 str[0] = static_cast<char>(0xC0 | code_point); // 110xxxxx
1464 } else if (code_point <= kMaxCodePoint3) {
1466 str[2] = static_cast<char>(0x80 | ChopLowBits(&code_point,
[all...]
/external/vulkan-validation-layers/tests/gtest-1.7.0/src/
H A Dgtest.cc1431 // code_point parameter is of type UInt32 because wchar_t may not be
1433 // If the code_point is not a valid Unicode code point
1436 std::string CodePointToUtf8(UInt32 code_point) { argument
1437 if (code_point > kMaxCodePoint4) {
1438 return "(Invalid Unicode 0x" + String::FormatHexInt(code_point) + ")";
1442 if (code_point <= kMaxCodePoint1) {
1444 str[0] = static_cast<char>(code_point); // 0xxxxxxx
1445 } else if (code_point <= kMaxCodePoint2) {
1447 str[1] = static_cast<char>(0x80 | ChopLowBits(&code_point, 6)); // 10xxxxxx
1448 str[0] = static_cast<char>(0xC0 | code_point); // 11
[all...]
/external/libvpx/libvpx/third_party/googletest/src/src/
H A Dgtest-all.cc628 // code_point parameter is of type UInt32 because wchar_t may not be
630 // If the code_point is not a valid Unicode code point
633 GTEST_API_ std::string CodePointToUtf8(UInt32 code_point);
2915 // code_point parameter is of type UInt32 because wchar_t may not be
2917 // If the code_point is not a valid Unicode code point
2920 std::string CodePointToUtf8(UInt32 code_point) { argument
2921 if (code_point > kMaxCodePoint4) {
2922 return "(Invalid Unicode 0x" + String::FormatHexInt(code_point) + ")";
2926 if (code_point <= kMaxCodePoint1) {
2928 str[0] = static_cast<char>(code_point); //
[all...]
/external/opencv3/modules/ts/src/
H A Dts_gtest.cpp637 // code_point parameter is of type UInt32 because wchar_t may not be
639 // If the code_point is not a valid Unicode code point
642 GTEST_API_ std::string CodePointToUtf8(UInt32 code_point);
2931 // code_point parameter is of type UInt32 because wchar_t may not be
2933 // If the code_point is not a valid Unicode code point
2936 std::string CodePointToUtf8(UInt32 code_point) { argument
2937 if (code_point > kMaxCodePoint4) {
2938 return "(Invalid Unicode 0x" + String::FormatHexInt(code_point) + ")";
2942 if (code_point <= kMaxCodePoint1) {
2944 str[0] = static_cast<char>(code_point); //
[all...]
/external/protobuf/gtest/fused-src/gtest/
H A Dgtest-all.cc606 // code_point parameter is of type UInt32 because wchar_t may not be
610 // If the code_point is not a valid Unicode code point
613 GTEST_API_ char* CodePointToUtf8(UInt32 code_point, char* str);
2789 // code_point parameter is of type UInt32 because wchar_t may not be
2793 // If the code_point is not a valid Unicode code point
2796 char* CodePointToUtf8(UInt32 code_point, char* str) { argument
2797 if (code_point <= kMaxCodePoint1) {
2799 str[0] = static_cast<char>(code_point); // 0xxxxxxx
2800 } else if (code_point <= kMaxCodePoint2) {
2802 str[1] = static_cast<char>(0x80 | ChopLowBits(&code_point,
[all...]

Completed in 1021 milliseconds

12