Home
last modified time | relevance | path

Searched refs:UTF8 (Results 1 – 25 of 136) sorted by relevance

123456

/external/llvm/include/llvm/Support/
DConvertUTF.h103 typedef unsigned char UTF8; /* typically 8 bits */ typedef
136 const UTF8** sourceStart, const UTF8* sourceEnd,
144 const UTF8** sourceStart, const UTF8* sourceEnd,
152 const UTF8** sourceStart, const UTF8* sourceEnd,
157 UTF8** targetStart, UTF8* targetEnd, ConversionFlags flags);
161 UTF8** targetStart, UTF8* targetEnd, ConversionFlags flags);
171 Boolean isLegalUTF8Sequence(const UTF8 *source, const UTF8 *sourceEnd);
173 Boolean isLegalUTF8String(const UTF8 **source, const UTF8 *sourceEnd);
175 unsigned getNumBytesForUTF8(UTF8 firstByte);
198 char *&ResultPtr, const UTF8 *&ErrorPtr);
[all …]
/external/llvm/lib/Support/
DConvertUTF.c103 static const UTF8 firstByteMark[7] = { 0x00, 0x00, 0xC0, 0xE0, 0xF0, 0xF8, 0xFC };
223 UTF8** targetStart, UTF8* targetEnd, ConversionFlags flags) { in ConvertUTF16toUTF8()
226 UTF8* target = *targetStart; in ConvertUTF16toUTF8()
277 case 4: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6; in ConvertUTF16toUTF8()
278 case 3: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6; in ConvertUTF16toUTF8()
279 case 2: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6; in ConvertUTF16toUTF8()
280 case 1: *--target = (UTF8)(ch | firstByteMark[bytesToWrite]); in ConvertUTF16toUTF8()
293 UTF8** targetStart, UTF8* targetEnd, ConversionFlags flags) { in ConvertUTF32toUTF8()
296 UTF8* target = *targetStart; in ConvertUTF32toUTF8()
330 case 4: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6; in ConvertUTF32toUTF8()
[all …]
DConvertUTFWrapper.cpp18 char *&ResultPtr, const UTF8 *&ErrorPtr) { in ConvertUTF8toWide()
23 const UTF8 *Pos = reinterpret_cast<const UTF8*>(Source.begin()); in ConvertUTF8toWide()
24 if (!isLegalUTF8String(&Pos, reinterpret_cast<const UTF8*>(Source.end()))) { in ConvertUTF8toWide()
32 const UTF8 *sourceStart = (const UTF8*)Source.data(); in ConvertUTF8toWide()
45 const UTF8 *sourceStart = (const UTF8*)Source.data(); in ConvertUTF8toWide()
66 UTF8 *TargetStart = reinterpret_cast<UTF8 *>(ResultPtr); in ConvertCodePointToUTF8()
67 UTF8 *TargetEnd = TargetStart + 4; in ConvertCodePointToUTF8()
115 UTF8 *Dst = reinterpret_cast<UTF8 *>(&Out[0]); in convertUTF16ToUTF8String()
116 UTF8 *DstEnd = Dst + Out.size(); in convertUTF16ToUTF8String()
144 const UTF8 *Src = reinterpret_cast<const UTF8 *>(SrcUTF8.begin()); in convertUTF8ToUTF16String()
[all …]
DUnicode.cpp351 const UTF8 *Start = reinterpret_cast<const UTF8 *>(Text.data() + i); in columnWidthUTF8()
/external/google-breakpad/src/common/
Dconvert_UTF.h111 typedef unsigned char UTF8; /* typically 8 bits */ typedef
138 ConversionResult ConvertUTF8toUTF16 (const UTF8** sourceStart, const UTF8* sourceEnd,
142 UTF8** targetStart, UTF8* targetEnd, ConversionFlags flags);
144 ConversionResult ConvertUTF8toUTF32 (const UTF8** sourceStart, const UTF8* sourceEnd,
148 UTF8** targetStart, UTF8* targetEnd, ConversionFlags flags);
156 Boolean isLegalUTF8Sequence(const UTF8 *source, const UTF8 *sourceEnd);
Dconvert_UTF.c219 static const UTF8 firstByteMark[7] = { 0x00, 0x00, 0xC0, 0xE0, 0xF0, 0xF8, 0xFC };
234 UTF8** targetStart, UTF8* targetEnd, ConversionFlags flags) { in ConvertUTF16toUTF8()
237 UTF8* target = *targetStart; in ConvertUTF16toUTF8()
288 case 4: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6; in ConvertUTF16toUTF8()
289 case 3: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6; in ConvertUTF16toUTF8()
290 case 2: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6; in ConvertUTF16toUTF8()
291 case 1: *--target = (UTF8)(ch | firstByteMark[bytesToWrite]); in ConvertUTF16toUTF8()
313 static Boolean isLegalUTF8(const UTF8 *source, int length) { in isLegalUTF8()
314 UTF8 a; in isLegalUTF8()
315 const UTF8 *srcptr = source+length; in isLegalUTF8()
[all …]
Dstring_conversion.cc43 const UTF8 *source_ptr = reinterpret_cast<const UTF8 *>(in); in UTF8ToUTF16()
44 const UTF8 *source_end_ptr = source_ptr + source_length; in UTF8ToUTF16()
59 const UTF8 *source_ptr = reinterpret_cast<const UTF8 *>(in); in UTF8ToUTF16Char()
60 const UTF8 *source_end_ptr = source_ptr + sizeof(char); in UTF8ToUTF16Char()
72 return static_cast<int>(source_ptr - reinterpret_cast<const UTF8 *>(in)); in UTF8ToUTF16Char()
75 source_ptr = reinterpret_cast<const UTF8 *>(in); in UTF8ToUTF16Char()
78 if (source_end_ptr > reinterpret_cast<const UTF8 *>(in) + in_length) in UTF8ToUTF16Char()
140 scoped_array<UTF8> target_buffer(new UTF8[target_capacity]); in UTF16ToUTF8()
141 UTF8 *target_ptr = target_buffer.get(); in UTF16ToUTF8()
142 UTF8 *target_end_ptr = target_ptr + target_capacity; in UTF16ToUTF8()
/external/antlr/antlr-3.4/runtime/C/src/
Dantlr3convertutf.c191 static const UTF8 firstByteMark[7] = { 0x00, 0x00, 0xC0, 0xE0, 0xF0, 0xF8, 0xFC };
207 UTF8** targetStart, UTF8* targetEnd, ConversionFlags flags) { in ConvertUTF16toUTF8()
210 UTF8* target = *targetStart; in ConvertUTF16toUTF8()
261 case 4: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6; in ConvertUTF16toUTF8()
262 case 3: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6; in ConvertUTF16toUTF8()
263 case 2: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6; in ConvertUTF16toUTF8()
264 case 1: *--target = (UTF8)(ch | firstByteMark[bytesToWrite]); in ConvertUTF16toUTF8()
287 isLegalUTF8(const UTF8 *source, int length) { in isLegalUTF8()
288 UTF8 a; in isLegalUTF8()
289 const UTF8 *srcptr = source+length; in isLegalUTF8()
[all …]
/external/antlr/antlr-3.4/runtime/C/include/
Dantlr3convertutf.h108 typedef ANTLR3_UINT8 UTF8; /* typically 8 bits */ typedef
145 const UTF8** sourceStart, const UTF8* sourceEnd,
150 UTF8** targetStart, UTF8* targetEnd, ConversionFlags flags);
153 const UTF8** sourceStart, const UTF8* sourceEnd,
158 UTF8** targetStart, UTF8* targetEnd, ConversionFlags flags);
168 ANTLR3_BOOLEAN isLegalUTF8Sequence(const UTF8 *source, const UTF8 *sourceEnd);
/external/smali/util/src/test/java/org/jf/util/
DClassFileNameHandlerTest.java43 private final Charset UTF8 = Charset.forName("UTF-8"); field in ClassFileNameHandlerTest
53 Assert.assertEquals(95, result.getBytes(UTF8).length); in test1ByteEncodings()
66 Assert.assertEquals(200, sb.toString().getBytes(UTF8).length); in test2ByteEncodings()
67 Assert.assertEquals(195, result.getBytes(UTF8).length); in test2ByteEncodings()
72 Assert.assertEquals(200, sb.toString().getBytes(UTF8).length); in test2ByteEncodings()
73 Assert.assertEquals(195, result.getBytes(UTF8).length); in test2ByteEncodings()
86 Assert.assertEquals(300, sb.toString().getBytes(UTF8).length); in test3ByteEncodings()
87 Assert.assertEquals(292, result.getBytes(UTF8).length); in test3ByteEncodings()
92 Assert.assertEquals(300, sb.toString().getBytes(UTF8).length); in test3ByteEncodings()
93 Assert.assertEquals(292, result.getBytes(UTF8).length); in test3ByteEncodings()
[all …]
/external/regex-re2/re2/testing/
Dexhaustive3_test.cc29 static string UTF8(Rune r) { in UTF8() function
48 v.push_back(UTF8(i)); in InterestingUTF8()
53 v.push_back(UTF8(256 + j)); in InterestingUTF8()
56 v.push_back(UTF8(i + j)); in InterestingUTF8()
60 v.push_back(UTF8(Runemax + j)); in InterestingUTF8()
/external/icu/icu4c/source/common/
Dunisetspan.h41 UTF8 = 4, enumerator
49 FWD_UTF8_CONTAINED = FWD | UTF8 | CONTAINED,
50 FWD_UTF8_NOT_CONTAINED = FWD | UTF8 | NOT_CONTAINED,
53 BACK_UTF8_CONTAINED = BACK | UTF8 | CONTAINED,
54 BACK_UTF8_NOT_CONTAINED = BACK | UTF8 | NOT_CONTAINED
/external/clang/lib/Format/
DEncoding.h35 const UTF8 *Ptr = reinterpret_cast<const UTF8 *>(Text.begin()); in detectEncoding()
36 const UTF8 *BufEnd = reinterpret_cast<const UTF8 *>(Text.end()); in detectEncoding()
/external/clang/utils/TableGen/
DClangCommentHTMLNamedCharacterReferenceEmitter.cpp36 StringRef UTF8(Translated, TranslatedPtr - Translated); in translateCodePointToUTF8() local
40 for (size_t i = 0, e = UTF8.size(); i != e; ++i) { in translateCodePointToUTF8()
42 OS.write_hex(static_cast<unsigned char>(UTF8[i])); in translateCodePointToUTF8()
/external/lldb/source/Host/macosx/cfcpp/
DCFCString.h33 const char * UTF8 (std::string& str);
35 static const char *UTF8 (CFStringRef cf_str, std::string& str);
DCFCString.cpp109 CFCString::UTF8(std::string& str) in UTF8() function in CFCString
111 return CFCString::UTF8(get(), str); in UTF8()
120 CFCString::UTF8 (CFStringRef cf_str, std::string& str) in UTF8() function in CFCString
/external/lldb/tools/debugserver/source/MacOSX/
DCFString.h36 const char * UTF8 (std::string& str);
38 static const char *UTF8 (CFStringRef cf_str, std::string& str);
DCFString.cpp113 CFString::UTF8(std::string& str) in UTF8() function in CFString
115 return CFString::UTF8(get(), str); in UTF8()
124 CFString::UTF8 (CFStringRef cf_str, std::string& str) in UTF8() function in CFString
/external/pcre/dist/
Dpcrecpp_unittest.cc538 TestQuoteMeta("Pl\xc3\xa1\x63ido Domingo", pcrecpp::UTF8()); in TestQuoteMetaUtf8()
539 TestQuoteMeta("xyz", pcrecpp::UTF8()); // No fancy utf8 in TestQuoteMetaUtf8()
540 TestQuoteMeta("\xc2\xb0", pcrecpp::UTF8()); // 2-byte utf8 (degree symbol) in TestQuoteMetaUtf8()
541 TestQuoteMeta("27\xc2\xb0 degrees", pcrecpp::UTF8()); // As a middle character in TestQuoteMetaUtf8()
542 TestQuoteMeta("\xe2\x80\xb3", pcrecpp::UTF8()); // 3-byte utf8 (double prime) in TestQuoteMetaUtf8()
543 TestQuoteMeta("\xf0\x9d\x85\x9f", pcrecpp::UTF8()); // 4-byte utf8 (music note) in TestQuoteMetaUtf8()
547 pcrecpp::UTF8()); in TestQuoteMetaUtf8()
1202 RE re_test2("...", pcrecpp::UTF8()); in main()
1211 RE re_test4("(.)", pcrecpp::UTF8()); in main()
1218 RE re_test6(utf8_string, pcrecpp::UTF8()); in main()
[all …]
/external/openfst/src/include/fst/
Dstring.h42 enum TokenType { SYMBOL = 1, BYTE = 2, UTF8 = 3 }; enumerator
75 } else if (token_type_ == UTF8) { in ConvertStringToLabels()
166 enum TokenType { SYMBOL = 1, BYTE = 2, UTF8 = 3 }; enumerator
196 } else if (token_type_ == UTF8) { in operator()
/external/lldb/source/DataFormatters/
DCXXFormatterFunctions.cpp178 UTF8**, in DumpUTFBufferToStream() argument
179 UTF8*, in DumpUTFBufferToStream()
216 UTF8* utf8_data_ptr = nullptr; in DumpUTFBufferToStream()
217 UTF8* utf8_data_end_ptr = nullptr; in DumpUTFBufferToStream()
222 utf8_data_ptr = (UTF8*)utf8_data_buffer_sp->GetBytes(); in DumpUTFBufferToStream()
225 …utf8_data_ptr = (UTF8*)utf8_data_buffer_sp->GetBytes(); // needed because the ConvertFunction will… in DumpUTFBufferToStream()
231 utf8_data_ptr = (UTF8*)data_ptr; in DumpUTFBufferToStream()
232 utf8_data_end_ptr = (UTF8*)data_end_ptr; in DumpUTFBufferToStream()
256 UTF8**,
257 UTF8*,
[all …]
/external/mockito/cglib-and-asm/src/org/mockito/asm/
DItem.java199 case ClassWriter.UTF8: in set()
235 case ClassWriter.UTF8: in isEqualTo()
/external/vogar/src/vogar/monitor/
DHostMonitor.java39 private static final Charset UTF8 = Charset.forName("UTF-8"); field in HostMonitor
96 return followProcess(new InterleavedReader(marker, new InputStreamReader(in, UTF8))); in followStream()
/external/apache-http/src/org/apache/commons/codec/net/
DStringEncodings.java56 String UTF8 = "UTF-8"; field
/external/clang/lib/Lex/
DLiteralSupport.cpp423 typedef uint8_t UTF8; in EncodeUCNEscape() typedef
440 static const UTF8 firstByteMark[5] = { in EncodeUCNEscape()
446 case 4: *--ResultBuf = (UTF8)((UcnVal | byteMark) & byteMask); UcnVal >>= 6; in EncodeUCNEscape()
447 case 3: *--ResultBuf = (UTF8)((UcnVal | byteMark) & byteMask); UcnVal >>= 6; in EncodeUCNEscape()
448 case 2: *--ResultBuf = (UTF8)((UcnVal | byteMark) & byteMask); UcnVal >>= 6; in EncodeUCNEscape()
449 case 1: *--ResultBuf = (UTF8) (UcnVal | firstByteMark[bytesToWrite]); in EncodeUCNEscape()
1097 ConvertUTF8toUTF32(reinterpret_cast<UTF8 const **>(&start), in CharLiteralParser()
1098 reinterpret_cast<UTF8 const *>(begin), in CharLiteralParser()
1551 const UTF8 *ErrorPtrTmp; in CopyStringFragment()

123456