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

/external/chromium/base/
H A Dutf_string_conversion_utils.h14 inline bool IsValidCodepoint(uint32 code_point) { argument
18 return code_point < 0xD800u ||
19 (code_point >= 0xE000u && code_point <= 0x10FFFFu);
25 // |*code_point|. |src| represents the entire string to read, and |*char_index|
30 // Returns true on success. On false, |*code_point| will be invalid.
40 uint32* code_point);
47 uint32* code_point);
54 size_t WriteUnicodeCharacter(uint32 code_point, std::string* output);
58 size_t WriteUnicodeCharacter(uint32 code_point, string1
63 WriteUnicodeCharacter(uint32 code_point, std::wstring* output) argument
[all...]
H A Dutf_offset_string_conversions.cc33 uint32 code_point; local
36 if (ReadUnicodeCharacter(src, src_len32, &i, &code_point)) {
37 chars_written = WriteUnicodeCharacter(code_point, output);
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.cc31 uint32 code_point; local
32 if (ReadUnicodeCharacter(src, src_len32, &i, &code_point)) {
33 WriteUnicodeCharacter(code_point, output);
/external/chromium/googleurl/src/
H A Durl_canon_icu.cc55 UChar32 code_point,
65 DCHECK(code_point < 0x110000);
67 _itoa_s(code_point, number, 10);
166 int code_point; // Avoids warning when U8_NEXT writes -1 to it. local
167 U8_NEXT(str, *begin, length, code_point);
168 *code_point_out = static_cast<unsigned>(code_point);
175 if (U_IS_UNICODE_CHAR(code_point))
182 unsigned* code_point) {
187 *code_point = kUnicodeReplacementCharacter;
191 *code_point
51 appendURLEscapedChar(const void* context, UConverterFromUnicodeArgs* from_args, const UChar* code_units, int32_t length, UChar32 code_point, UConverterCallbackReason reason, UErrorCode* err) argument
181 ReadUTFChar(const char16* str, int* begin, int length, unsigned* code_point) argument
[all...]
H A Durl_canon_etc.cc289 unsigned code_point; local
290 if (!ReadUTFChar(spec, &i, end, &code_point))
293 AppendUTF8Value(code_point, output);
H A Durl_canon_internal.cc49 unsigned code_point; local
50 ReadUTFChar(source, &i, length, &code_point);
51 AppendUTF8EscapedValue(code_point, output);
286 unsigned code_point; local
287 success &= ReadUTFChar(input, &i, input_len, &code_point);
288 AppendUTF8Value(code_point, output);
297 unsigned code_point; local
298 success &= ReadUTFChar(input, &i, input_len, &code_point);
299 AppendUTF16Value(code_point, output);
H A Durl_canon_internal.h161 // the decoded value into |*code_point|. If the character is valid, we will
163 // kUnicodeReplacementCharacter into |*code_point|.
246 // the decoded value into |*code_point|. If the character is valid, we will
248 // kUnicodeReplacementCharacter into |*code_point|.
256 unsigned* code_point);
259 inline void AppendUTF16Value(unsigned code_point, argument
261 if (code_point > 0xffff) {
262 output->push_back(static_cast<char16>((code_point >> 10) + 0xd7c0));
263 output->push_back(static_cast<char16>((code_point & 0x3ff) | 0xdc00));
265 output->push_back(static_cast<char16>(code_point));
[all...]
/external/chromium/base/i18n/
H A Dfile_util_icu.cc140 uint32 code_point; local
144 code_point);
148 code_point);
155 code_point = cur_char;
160 if (illegal->contains(code_point)) {
H A Dicu_string_conversions.cc21 inline bool IsValidCodepoint(uint32 code_point) { argument
25 return code_point < 0xD800u ||
26 (code_point >= 0xE000u && code_point <= 0x10FFFFu);
/external/v8/src/
H A Dunicode-inl.h35 template <class T, int s> bool Predicate<T, s>::get(uchar code_point) { argument
36 CacheEntry entry = entries_[code_point & kMask];
37 if (entry.code_point_ == code_point) return entry.value_;
38 return CalculateValue(code_point);
42 uchar code_point) {
43 bool result = T::Is(code_point);
44 entries_[code_point & kMask] = CacheEntry(code_point, result);
41 CalculateValue( uchar code_point) argument
H A Dunicode.h59 inline CacheEntry(uchar code_point, bool value) argument
60 : code_point_(code_point),
84 inline CacheEntry(uchar code_point, signed offset) argument
85 : code_point_(code_point),
/external/chromium/net/base/
H A Dnet_util.cc469 unsigned code_point; local
470 U16_NEXT(str, i, str_len, code_point);
473 UScriptCode cur_script = uscript_getScript(code_point, &err);
/external/gtest/src/
H A Dgtest.cc1426 // code_point parameter is of type UInt32 because wchar_t may not be
1430 // If the code_point is not a valid Unicode code point
1433 char* CodePointToUtf8(UInt32 code_point, char* str) { argument
1434 if (code_point <= kMaxCodePoint1) {
1436 str[0] = static_cast<char>(code_point); // 0xxxxxxx
1437 } else if (code_point <= kMaxCodePoint2) {
1439 str[1] = static_cast<char>(0x80 | ChopLowBits(&code_point, 6)); // 10xxxxxx
1440 str[0] = static_cast<char>(0xC0 | code_point); // 110xxxxx
1441 } else if (code_point <= kMaxCodePoint3) {
1443 str[2] = static_cast<char>(0x80 | ChopLowBits(&code_point,
[all...]
/external/protobuf/gtest/src/
H A Dgtest.cc1413 // code_point parameter is of type UInt32 because wchar_t may not be
1417 // If the code_point is not a valid Unicode code point
1420 char* CodePointToUtf8(UInt32 code_point, char* str) { argument
1421 if (code_point <= kMaxCodePoint1) {
1423 str[0] = static_cast<char>(code_point); // 0xxxxxxx
1424 } else if (code_point <= kMaxCodePoint2) {
1426 str[1] = static_cast<char>(0x80 | ChopLowBits(&code_point, 6)); // 10xxxxxx
1427 str[0] = static_cast<char>(0xC0 | code_point); // 110xxxxx
1428 } else if (code_point <= kMaxCodePoint3) {
1430 str[2] = static_cast<char>(0x80 | ChopLowBits(&code_point,
[all...]

Completed in 739 milliseconds