Searched defs:code_point (Results 1 - 25 of 32) sorted by relevance

12

/external/chromium_org/base/strings/
H A Dutf_string_conversion_utils.h15 inline bool IsValidCodepoint(uint32 code_point) { argument
19 return code_point < 0xD800u ||
20 (code_point >= 0xE000u && code_point <= 0x10FFFFu);
23 inline bool IsValidCharacter(uint32 code_point) { argument
26 return code_point < 0xD800u || (code_point >= 0xE000u &&
27 code_point < 0xFDD0u) || (code_point > 0xFDEFu &&
28 code_point <
74 WriteUnicodeCharacter(uint32 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 code_point; local
21 CBU8_NEXT(src, *char_index, src_len, code_point);
22 *code_point_out = static_cast<uint32>(code_point);
29 return IsValidCodepoint(code_point);
35 uint32* code_point) {
45 *code_point = CBU16_GET_SUPPLEMENTARY(src[*char_index],
50 *code_point = src[*char_index];
53 return IsValidCodepoint(*code_point);
60 uint32* code_point) {
32 ReadUnicodeCharacter(const char16* src, int32 src_len, int32* char_index, uint32* code_point) argument
57 ReadUnicodeCharacter(const wchar_t* src, int32 src_len, int32* char_index, uint32* code_point) argument
71 WriteUnicodeCharacter(uint32 code_point, std::string* output) argument
92 WriteUnicodeCharacter(uint32 code_point, string16* output) argument
[all...]
H A Dutf_string_conversions.cc29 uint32 code_point; local
30 if (ReadUnicodeCharacter(src, src_len32, &i, &code_point)) {
31 WriteUnicodeCharacter(code_point, output);
H A Dutf_offset_string_conversions.cc193 uint32 code_point; local
196 if (ReadUnicodeCharacter(src, src_len32, &i, &code_point)) {
197 chars_written = WriteUnicodeCharacter(code_point, output);
H A Dstring_util.cc226 base_icu::UChar32 code_point = 0; local
227 CBU8_NEXT(data, char_index, truncation_length, code_point);
228 if (!IsValidCharacter(code_point) ||
229 !IsValidCodepoint(code_point)) {
349 int32 code_point; local
350 CBU8_NEXT(src, char_index, src_len, code_point);
351 if (!IsValidCharacter(code_point))
/external/chromium_org/remoting/host/linux/
H A Dunicode_to_keysym_unittest.cc16 uint32_t code_point; member in struct:remoting::Test
38 GetKeySymsForUnicode(kTests[i].code_point, &keysyms);
/external/chromium_org/base/json/
H A Dstring_escape.cc28 // Try to escape the |code_point| if it is a known special character. If
31 bool EscapeSpecialCodePoint(uint32 code_point, std::string* dest) { argument
35 switch (code_point) {
80 uint32 code_point; local
81 if (!ReadUnicodeCharacter(str.data(), length, &i, &code_point)) {
82 code_point = kReplacementCodePoint;
86 if (EscapeSpecialCodePoint(code_point, dest))
90 if (code_point < 32)
91 base::StringAppendF(dest, kU16EscapeFormat, code_point);
93 WriteUnicodeCharacter(code_point, des
[all...]
H A Djson_parser.cc776 uint32 code_point = CBU16_GET_SUPPLEMENTARY(code_unit16_high, local
779 CBU8_APPEND_UNSAFE(code_unit8, offset, code_point);
/external/chromium_org/chrome/browser/extensions/api/braille_display_private/
H A Dbrlapi_keycode_map.cc49 uint32 code_point = key_sym & ~BRLAPI_KEY_SYM_UNICODE; local
50 if (!base::IsValidCharacter(code_point))
53 base::WriteUnicodeCharacter(code_point, event->standard_key_char.get());
/external/chromium_org/base/i18n/
H A Dfile_util_icu.cc105 uint32 code_point; local
109 code_point);
113 code_point);
120 code_point = cur_char;
125 if (illegal->contains(code_point)) {
H A Dstreaming_utf8_validator_unittest.cc64 int32 code_point; local
65 U8_NEXT(src, char_index, src_len, code_point);
66 if (!base::IsValidCodepoint(code_point))
/external/chromium_org/url/
H A Durl_canon_icu.cc30 UChar32 code_point,
40 DCHECK(code_point < 0x110000);
42 _itoa_s(code_point, number, 10);
26 appendURLEscapedChar(const void* context, UConverterFromUnicodeArgs* from_args, const UChar* code_units, int32_t length, UChar32 code_point, UConverterCallbackReason reason, UErrorCode* err) argument
H A Durl_canon_etc.cc266 unsigned code_point; local
267 ReadUTFChar(spec, &i, end, &code_point);
268 AppendUTF8Value(code_point, output);
H A Durl_canon_internal.cc27 unsigned code_point; local
28 ReadUTFChar(source, &i, length, &code_point);
29 AppendUTF8EscapedValue(code_point, output);
291 unsigned code_point; local
292 success &= ReadUTFChar(input, &i, input_len, &code_point);
293 AppendUTF8Value(code_point, output);
302 unsigned code_point; local
303 success &= ReadUTFChar(input, &i, input_len, &code_point);
304 AppendUTF16Value(code_point, output);
H A Durl_canon_internal.h144 // the decoded value into |*code_point|. If the character is valid, we will
146 // kUnicodeReplacementCharacter into |*code_point|.
219 // the decoded value into |*code_point|. If the character is valid, we will
221 // kUnicodeReplacementCharacter into |*code_point|.
230 inline void AppendUTF16Value(unsigned code_point, argument
232 if (code_point > 0xffff) {
233 output->push_back(static_cast<base::char16>((code_point >> 10) + 0xd7c0));
234 output->push_back(static_cast<base::char16>((code_point & 0x3ff) | 0xdc00));
236 output->push_back(static_cast<base::char16>(code_point));
H A Durl_util.cc543 unsigned code_point; local
545 unescaped_chars.length(), &code_point)) {
547 AppendUTF16Value(code_point, output);
/external/chromium_org/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.h36 inline CacheEntry(uchar code_point, bool value) argument
37 : code_point_(code_point),
61 inline CacheEntry(uchar code_point, signed offset) argument
62 : code_point_(code_point),
H A Dunicode.cc210 uchar code_point = ((first << 6) | second) & kMaxTwoByteChar; local
211 if (code_point <= kMaxOneByteChar) {
216 return code_point;
228 uchar code_point = ((((first << 6) | second) << 6) | third) local
230 if (code_point <= kMaxTwoByteChar) {
235 return code_point;
247 uchar code_point = (((((first << 6 | second) << 6) | third) << 6) | fourth) local
249 if (code_point <= kMaxThreeByteChar) {
254 return code_point;
/external/chromium_org/remoting/host/
H A Dinput_injector_linux.cc68 // specified |code_point|.
70 uint32_t code_point,
74 GetKeySymsForUnicode(code_point, &keysyms);
326 uint32_t code_point; local
328 text.c_str(), text.size(), &index, &code_point)) {
334 if (!FindKeycodeForUnicode(display_, code_point, &keycode, &modifiers))
69 FindKeycodeForUnicode(Display* display, uint32_t code_point, uint32_t* keycode, uint32_t* modifiers) argument
/external/chromium_org/third_party/ots/src/
H A Dcmap.cc217 const uint16_t code_point = cp; local
220 const uint16_t glyph = code_point + ranges[i].id_delta;
225 const uint16_t range_delta = code_point - ranges[i].start_range;
/external/chromium_org/third_party/protobuf/src/google/protobuf/io/
H A Dtokenizer.cc899 static void AppendUTF8(uint32 code_point, string* output) { argument
902 if (code_point <= 0x7f) {
903 tmp = code_point;
905 } else if (code_point <= 0x07ff) {
907 ((code_point & 0x07c0) << 2) |
908 (code_point & 0x003f);
910 } else if (code_point <= 0xffff) {
912 ((code_point & 0xf000) << 4) |
913 ((code_point & 0x0fc0) << 2) |
914 (code_point
955 IsHeadSurrogate(uint32 code_point) argument
959 IsTrailSurrogate(uint32 code_point) argument
983 FetchUnicodePoint(const char* ptr, uint32* code_point) argument
[all...]
/external/chromium_org/net/base/
H A Dnet_util_icu.cc61 unsigned code_point; local
62 U16_NEXT(str, i, str_len, code_point);
65 UScriptCode cur_script = uscript_getScript(code_point, &err);
/external/chromium_org/testing/gtest/src/
H A Dgtest.cc1715 // code_point parameter is of type UInt32 because wchar_t may not be
1717 // If the code_point is not a valid Unicode code point
1720 std::string CodePointToUtf8(UInt32 code_point) { argument
1721 if (code_point > kMaxCodePoint4) {
1722 return "(Invalid Unicode 0x" + String::FormatHexInt(code_point) + ")";
1726 if (code_point <= kMaxCodePoint1) {
1728 str[0] = static_cast<char>(code_point); // 0xxxxxxx
1729 } else if (code_point <= kMaxCodePoint2) {
1731 str[1] = static_cast<char>(0x80 | ChopLowBits(&code_point, 6)); // 10xxxxxx
1732 str[0] = static_cast<char>(0xC0 | code_point); // 11
[all...]
/external/chromium_org/third_party/mesa/src/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...]

Completed in 4617 milliseconds

12