Home
last modified time | relevance | path

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

12345678910

/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/
DConvertUTF.h111 typedef unsigned char UTF8; /* typically 8 bits */ typedef
139 const UTF8** sourceStart, const UTF8* sourceEnd,
147 const UTF8** sourceStart, const UTF8* sourceEnd,
155 const UTF8** sourceStart, const UTF8* sourceEnd,
160 UTF8** targetStart, UTF8* targetEnd, ConversionFlags flags);
164 UTF8** targetStart, UTF8* targetEnd, ConversionFlags flags);
174 Boolean isLegalUTF8Sequence(const UTF8 *source, const UTF8 *sourceEnd);
176 Boolean isLegalUTF8String(const UTF8 **source, const UTF8 *sourceEnd);
178 unsigned getNumBytesForUTF8(UTF8 firstByte);
197 char *&ResultPtr, const UTF8 *&ErrorPtr);
[all …]
/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);
201 char *&ResultPtr, const UTF8 *&ErrorPtr);
[all …]
/external/llvm/lib/Support/
DConvertUTFWrapper.cpp21 char *&ResultPtr, const UTF8 *&ErrorPtr) { in ConvertUTF8toWide()
26 const UTF8 *Pos = reinterpret_cast<const UTF8*>(Source.begin()); in ConvertUTF8toWide()
27 if (!isLegalUTF8String(&Pos, reinterpret_cast<const UTF8*>(Source.end()))) { in ConvertUTF8toWide()
35 const UTF8 *sourceStart = (const UTF8*)Source.data(); in ConvertUTF8toWide()
48 const UTF8 *sourceStart = (const UTF8*)Source.data(); in ConvertUTF8toWide()
69 UTF8 *TargetStart = reinterpret_cast<UTF8 *>(ResultPtr); in ConvertCodePointToUTF8()
70 UTF8 *TargetEnd = TargetStart + 4; in ConvertCodePointToUTF8()
118 UTF8 *Dst = reinterpret_cast<UTF8 *>(&Out[0]); in convertUTF16ToUTF8String()
119 UTF8 *DstEnd = Dst + Out.size(); in convertUTF16ToUTF8String()
154 const UTF8 *Src = reinterpret_cast<const UTF8 *>(SrcUTF8.begin()); in convertUTF8ToUTF16String()
[all …]
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 …]
/external/swiftshader/third_party/llvm-subzero/lib/Support/
DConvertUTFWrapper.cpp21 char *&ResultPtr, const UTF8 *&ErrorPtr) { in ConvertUTF8toWide()
26 const UTF8 *Pos = reinterpret_cast<const UTF8*>(Source.begin()); in ConvertUTF8toWide()
27 if (!isLegalUTF8String(&Pos, reinterpret_cast<const UTF8*>(Source.end()))) { in ConvertUTF8toWide()
35 const UTF8 *sourceStart = (const UTF8*)Source.data(); in ConvertUTF8toWide()
48 const UTF8 *sourceStart = (const UTF8*)Source.data(); in ConvertUTF8toWide()
69 UTF8 *TargetStart = reinterpret_cast<UTF8 *>(ResultPtr); in ConvertCodePointToUTF8()
70 UTF8 *TargetEnd = TargetStart + 4; in ConvertCodePointToUTF8()
118 UTF8 *Dst = reinterpret_cast<UTF8 *>(&Out[0]); in convertUTF16ToUTF8String()
119 UTF8 *DstEnd = Dst + Out.size(); in convertUTF16ToUTF8String()
154 const UTF8 *Src = reinterpret_cast<const UTF8 *>(SrcUTF8.begin()); in convertUTF8ToUTF16String()
[all …]
DConvertUTF.cpp103 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 …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/
DConvertUTFWrapper.cpp21 char *&ResultPtr, const UTF8 *&ErrorPtr) { in ConvertUTF8toWide()
26 const UTF8 *Pos = reinterpret_cast<const UTF8*>(Source.begin()); in ConvertUTF8toWide()
27 if (!isLegalUTF8String(&Pos, reinterpret_cast<const UTF8*>(Source.end()))) { in ConvertUTF8toWide()
35 const UTF8 *sourceStart = (const UTF8*)Source.data(); in ConvertUTF8toWide()
48 const UTF8 *sourceStart = (const UTF8*)Source.data(); in ConvertUTF8toWide()
69 UTF8 *TargetStart = reinterpret_cast<UTF8 *>(ResultPtr); in ConvertCodePointToUTF8()
70 UTF8 *TargetEnd = TargetStart + 4; in ConvertCodePointToUTF8()
118 UTF8 *Dst = reinterpret_cast<UTF8 *>(&Out[0]); in convertUTF16ToUTF8String()
119 UTF8 *DstEnd = Dst + Out.size(); in convertUTF16ToUTF8String()
154 const UTF8 *Src = reinterpret_cast<const UTF8 *>(SrcUTF8.begin()); in convertUTF8ToUTF16String()
[all …]
DConvertUTF.cpp130 static const UTF8 firstByteMark[7] = { 0x00, 0x00, 0xC0, 0xE0, 0xF0, 0xF8, 0xFC };
250 UTF8** targetStart, UTF8* targetEnd, ConversionFlags flags) { in ConvertUTF16toUTF8()
253 UTF8* target = *targetStart; in ConvertUTF16toUTF8()
304 case 4: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6; in ConvertUTF16toUTF8()
305 case 3: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6; in ConvertUTF16toUTF8()
306 case 2: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6; in ConvertUTF16toUTF8()
307 case 1: *--target = (UTF8)(ch | firstByteMark[bytesToWrite]); in ConvertUTF16toUTF8()
320 UTF8** targetStart, UTF8* targetEnd, ConversionFlags flags) { in ConvertUTF32toUTF8()
323 UTF8* target = *targetStart; in ConvertUTF32toUTF8()
357 case 4: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6; in ConvertUTF32toUTF8()
[all …]
DDJB.cpp24 const UTF8 *const Begin8Const = in chopOneUTF32()
25 reinterpret_cast<const UTF8 *>(Buffer.begin()); in chopOneUTF32()
26 const UTF8 *Begin8 = Begin8Const; in chopOneUTF32()
32 ConvertUTF8toUTF32(&Begin8, reinterpret_cast<const UTF8 *>(Buffer.end()), in chopOneUTF32()
38 static StringRef toUTF8(UTF32 C, MutableArrayRef<UTF8> Storage) { in toUTF8()
40 UTF8 *Begin8 = Storage.begin(); in toUTF8()
66 std::array<UTF8, UNI_MAX_UTF8_BYTES_PER_CODE_POINT> Storage; in caseFoldingDjbHashCharSlow()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/
DConvertUTF.h112 typedef unsigned char UTF8; /* typically 8 bits */ typedef
140 const UTF8** sourceStart, const UTF8* sourceEnd,
148 const UTF8** sourceStart, const UTF8* sourceEnd,
156 const UTF8** sourceStart, const UTF8* sourceEnd,
161 UTF8** targetStart, UTF8* targetEnd, ConversionFlags flags);
165 UTF8** targetStart, UTF8* targetEnd, ConversionFlags flags);
175 Boolean isLegalUTF8Sequence(const UTF8 *source, const UTF8 *sourceEnd);
177 Boolean isLegalUTF8String(const UTF8 **source, const UTF8 *sourceEnd);
179 unsigned getNumBytesForUTF8(UTF8 firstByte);
198 char *&ResultPtr, const UTF8 *&ErrorPtr);
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/test/tools/llvm-rc/
Dcodepage.test2 ; RUN: llvm-readobj %t.utf8.res | FileCheck %s --check-prefix=UTF8
4 ; UTF8: Resource type (int): 6
5 ; UTF8-NEXT: Resource name (int): 1
6 ; UTF8-NEXT: Data version: 0
7 ; UTF8-NEXT: Memory flags: 0x1030
8 ; UTF8-NEXT: Language ID: 1033
9 ; UTF8-NEXT: Version (major): 0
10 ; UTF8-NEXT: Version (minor): 0
11 ; UTF8-NEXT: Characteristics: 0
12 ; UTF8-NEXT: Data size: 68
[all …]
/external/unicode/
DConvertUTF.h92 typedef unsigned char UTF8; /* typically 8 bits */ typedef
120 const UTF8** sourceStart, const UTF8* sourceEnd,
125 UTF8** targetStart, UTF8* targetEnd, ConversionFlags flags);
128 const UTF8** sourceStart, const UTF8* sourceEnd,
133 UTF8** targetStart, UTF8* targetEnd, ConversionFlags flags);
143 Boolean isLegalUTF8Sequence(const UTF8 *source, const UTF8 *sourceEnd);
DConvertUTF.c200 static const UTF8 firstByteMark[7] = { 0x00, 0x00, 0xC0, 0xE0, 0xF0, 0xF8, 0xFC };
216 UTF8** targetStart, UTF8* targetEnd, ConversionFlags flags) { in ConvertUTF16toUTF8()
219 UTF8* target = *targetStart; in ConvertUTF16toUTF8()
280 case 4: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6; in ConvertUTF16toUTF8()
281 case 3: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6; in ConvertUTF16toUTF8()
282 case 2: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6; in ConvertUTF16toUTF8()
283 case 1: *--target = (UTF8)(ch | firstByteMark[bytesToWrite]); in ConvertUTF16toUTF8()
305 inline Boolean isLegalUTF8(const UTF8 *source, int length) { in isLegalUTF8()
306 UTF8 a; in isLegalUTF8()
307 const UTF8 *srcptr = source+length; in isLegalUTF8()
[all …]
Dharness.c153 UTF8 utf8_buf[8]; in test02()
156 UTF8 *utf8SourceStart, *utf8TargetStart; in test02()
246 …result = ConvertUTF8toUTF16((const UTF8 **) &utf8SourceStart, &(utf8_buf[trailingBytesForUTF8[utf8… in test02()
314 UTF8 utf8_buf[8]; in test03()
316 UTF8 *utf8SourceStart, *utf8TargetStart; in test03()
369 …result = ConvertUTF8toUTF32((const UTF8 **) &utf8SourceStart, &(utf8_buf[trailingBytesForUTF8[utf8… in test03()
404 UTF8 utf8_buf[8]; in test04()
406 UTF8 *utf8SourceStart, *utf8TargetStart; in test04()
/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/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/runtime/C/include/
Dantlr3convertutf.h108 typedef ANTLR3_UINT8 UTF8; /* typically 8 bits */ typedef
143 const UTF8** sourceStart, const UTF8* sourceEnd,
148 UTF8** targetStart, UTF8* targetEnd, ConversionFlags flags);
151 const UTF8** sourceStart, const UTF8* sourceEnd,
156 UTF8** targetStart, UTF8* targetEnd, ConversionFlags flags);
166 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/robolectric-shadows/resources/src/main/java/org/robolectric/res/android/
DResourceString.java34 UTF8(UTF_8), enumConstant
73 if (type == Type.UTF8) { in decodeString()
99 if (type == Type.UTF8) { // Only UTF-8 strings have the encoding length. in encodeString()
104 if (type == Type.UTF8) { in encodeString()
130 if (type == Type.UTF8) { in encodeLength()
149 return (type == Type.UTF8 ? 1 : 2) * (length >= (type == Type.UTF8 ? 0x80 : 0x8000) ? 2 : 1); in computeLengthOffset()
153 return type == Type.UTF8 ? decodeLengthUTF8(buffer, offset) : decodeLengthUTF16(buffer, offset); in decodeLength()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/dsymutil/
DCFBundle.cpp47 const char *UTF8(std::string &Str) const { in UTF8() function in llvm::dsymutil::CFString
48 return CFString::UTF8(get(), Str); in UTF8()
57 static const char *UTF8(CFStringRef CFStr, std::string &Str);
66 const char *CFString::UTF8(CFStringRef CFStr, std::string &Str) { in UTF8() function in llvm::dsymutil::CFString
157 << "a " << TypeIDCFStr.UTF8(TypeIDStr) in getBundleInfo()
163 CFString::UTF8(BundleID, BundleInfo.IDStr); in getBundleInfo()
168 CFString::UTF8((CFStringRef)TypeRef, BundleInfo.VersionStr); in getBundleInfo()
176 CFString::UTF8((CFStringRef)TypeRef, BundleInfo.ShortVersionStr); in getBundleInfo()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/
DProviders.java36 public static final Charset UTF8 = Charset.forName("utf-8"); field in Providers
58 return provider(input, UTF8); in provider()
66 return provider(assertNotNull(file), UTF8); in provider()
74 return provider(assertNotNull(path), UTF8); in provider()
108 return resourceProvider(pathToResource, UTF8); in resourceProvider()
/external/icu/icu4c/source/common/
Dunisetspan.h43 UTF8 = 4, enumerator
51 FWD_UTF8_CONTAINED = FWD | UTF8 | CONTAINED,
52 FWD_UTF8_NOT_CONTAINED = FWD | UTF8 | NOT_CONTAINED,
55 BACK_UTF8_CONTAINED = BACK | UTF8 | CONTAINED,
56 BACK_UTF8_NOT_CONTAINED = BACK | UTF8 | NOT_CONTAINED
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-core/com/github/javaparser/
DProviders.java16 public static final Charset UTF8 = Charset.forName("utf-8"); field in Providers
38 return provider(input, UTF8); in provider()
46 return provider(assertNotNull(file), UTF8); in provider()
54 return provider(assertNotNull(path), UTF8); in provider()

12345678910