Searched refs:utf8 (Results 1 - 25 of 109) sorted by relevance

12345

/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/
H A DUtf8.java48 public static int utf8StringLengthInBytes(String utf8) { argument
50 if (utf8 != null) {
51 return utf8.getBytes("UTF-8").length;
/external/skia/src/core/
H A DSkUtils.cpp179 int SkUTF8_CountUnichars(const char utf8[]) { argument
180 SkASSERT(utf8);
185 int c = *(const uint8_t*)utf8;
189 utf8 += SkUTF8_LeadByteToCount(c);
195 int SkUTF8_CountUnichars(const char utf8[], size_t byteLength) { argument
196 SkASSERT(utf8 || 0 == byteLength);
199 const char* stop = utf8 + byteLength;
201 while (utf8 < stop) {
202 utf8 += SkUTF8_LeadByteToCount(*(const uint8_t*)utf8);
208 SkUTF8_ToUnichar(const char utf8[]) argument
266 SkUTF8_FromUnichar(SkUnichar uni, char utf8[]) argument
[all...]
/external/flac/libFLAC/
H A Dformat.c308 static unsigned utf8len_(const FLAC__byte *utf8) argument
310 FLAC__ASSERT(0 != utf8);
311 if ((utf8[0] & 0x80) == 0) {
314 else if ((utf8[0] & 0xE0) == 0xC0 && (utf8[1] & 0xC0) == 0x80) {
315 if ((utf8[0] & 0xFE) == 0xC0) /* overlong sequence check */
319 else if ((utf8[0] & 0xF0) == 0xE0 && (utf8[1] & 0xC0) == 0x80 && (utf8[2] & 0xC0) == 0x80) {
320 if (utf8[
[all...]
/external/harfbuzz_ng/util/
H A Dhelper-cairo.hh52 char *utf8; member in struct:helper_cairo_line_t
63 if (utf8)
64 g_free (utf8);
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/
H A DLatin1Converter.java107 byte[] utf8 = convertToUTF8((byte) b);
108 out.append(utf8);
131 byte[] utf8 = convertToUTF8(readAheadBuffer[0]);
132 out.append(utf8);
150 byte[] utf8 = convertToUTF8(b);
151 out.append(utf8);
/external/skia/include/core/
H A DSkUtils.h83 inline int SkUTF8_CountUTF8Bytes(const char utf8[]) { argument
84 SkASSERT(utf8);
85 return SkUTF8_LeadByteToCount(*(const uint8_t*)utf8);
88 int SkUTF8_CountUnichars(const char utf8[]);
89 int SkUTF8_CountUnichars(const char utf8[], size_t byteLength);
90 SkUnichar SkUTF8_ToUnichar(const char utf8[]);
95 into a utf8 sequence. Will be 1..kMaxBytesInUTF8Sequence,
98 size_t SkUTF8_FromUnichar(SkUnichar uni, char utf8[] = NULL);
114 char utf8[] = NULL);
/external/svox/pico/lib/
H A Dpicobase.c932 * @param utf8str: utf8 string
933 * @param pos: position from where the utf8 character is copied
934 * (also output set as position of the next utf8 character in the utf8 string)
935 * @param utf8char: zero terminated utf8 character containing 1 to 4 bytes (output)
937 static void picobase_get_utf8char (picoos_uint8 utf8[], picoos_int32 * pos, picobase_utf8char utf8char) argument
944 l = picobase_det_utf8_length(utf8[*pos]);
946 while ((((i < l) && (i < PICOBASE_UTF8_MAXLEN)) && (utf8[*pos] != 0))) {
947 utf8char[i] = utf8[*pos];
1068 * Converts utf8 inpu
1073 picobase_utf8_to_utf32(picoos_uint8 utf8[], picoos_uint8 * done) argument
1092 picobase_utf32_to_utf8(picobase_utf32 utf32, picobase_utf8 utf8[], picoos_int32 utf8MaxLen, picoos_uint8 * done) argument
[all...]
/external/libexif/test/nls/
H A Dtest-codeset.c43 char *utf8; member in struct:__anon8013
83 const char *utf8 = testcases[i].utf8; local
119 utf8
123 return (my_streq(transl, utf8));
/external/okhttp/okio/okio/src/test/java/okio/
H A DByteStringTest.java38 assertEquals("llo, Worl", byteString.utf8());
68 @Test public void utf8() throws Exception { method in class:ByteStringTest
72 assertEquals(byteString.utf8(), bronzeHorseman);
193 assertEquals("", ByteString.decodeBase64("====").utf8());
194 assertEquals("\u0000\u0000\u0000", ByteString.decodeBase64("AAAA====").utf8());
198 assertEquals("", ByteString.decodeBase64("").utf8());
210 + "N1cCBpbiB0aGUgcG93ZXIuLi4=").utf8());
216 assertEquals("\u0000\u0000\u0000", ByteString.decodeBase64(" AA AA ").utf8());
217 assertEquals("\u0000\u0000\u0000", ByteString.decodeBase64(" AA A\r\nA ").utf8());
218 assertEquals("\u0000\u0000\u0000", ByteString.decodeBase64("AA AA").utf8());
[all...]
/external/harfbuzz_ng/src/
H A Dhb-glib.cc253 gchar utf8[12];
258 len = g_unichar_to_utf8 (a, utf8);
259 len += g_unichar_to_utf8 (b, utf8 + len);
260 normalized = g_utf8_normalize (utf8, len, G_NORMALIZE_NFC);
290 gchar utf8[6];
295 len = g_unichar_to_utf8 (ab, utf8);
296 normalized = g_utf8_normalize (utf8, len, G_NORMALIZE_NFD);
348 gchar utf8[6];
353 utf8_len = g_unichar_to_utf8 (u, utf8);
354 utf8_decomposed = g_utf8_normalize (utf8, utf8_le
[all...]
/external/gptfdisk/
H A Dgptpart.cc81 // convert name to utf32 then to utf8
82 string utf8 ; local
112 // then to utf8
114 utf8 += (char) uni ;
117 utf8 += (char) ( 0xc0 | ( uni >> 6 ) ) ;
118 utf8 += (char) ( 0x80 | ( uni & 0x3f ) ) ;
121 utf8 += (char) ( 0xe0 | ( uni >> 12 ) ) ;
122 utf8 += (char) ( 0x80 | ( ( uni >> 6 ) & 0x3f ) ) ;
123 utf8 += (char) ( 0x80 | ( uni & 0x3f ) ) ;
126 utf8
[all...]
/external/icu/icu4c/source/test/perf/utrie2perf/
H A Dutrie2perf.sh5 # export LD_LIBRARY_PATH=/home/mscherer/svn.icu/utf8-dev/lib:/home/mscherer/svn.icu/utf8-dev/tools/ctestfw
10 PERF=~/svn.icu/utf8-dev/test/perf/utrie2perf/utrie2perf
H A Dutrie2perf.bat4 set PERF=c:\svn\icuproj\icu\utf8\source\test\perf\utrie2perf\x86\Release\utrie2perf
H A Dutrie2perf.cpp25 // Left over from when icu/branches/markus/utf8 could use both old UTrie
47 utf8(NULL), utf8Length(0), countInputCodePoints(0) {
58 // Preflight the UTF-8 length and allocate utf8.
61 utf8=(char *)malloc(utf8Length);
62 if(utf8!=NULL) {
64 u_strToUTF8(utf8, utf8Length, NULL, buffer, bufferLen, &status);
85 char *utf8; member in class:UTrie2PerfTest
162 UBool isFCD=unorm_checkFCDUTF8((const uint8_t *)testcase.utf8, testcase.utf8Length, NULL);
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/spdy/
H A DHeader.java54 return String.format("%s: %s", name.utf8(), value.utf8());
/external/icu/icu4c/source/test/perf/unisetperf/
H A Dunisetperf.cpp49 utf8(NULL), utf8Length(0), countInputCodePoints(0), spanCount(0) {
65 // Preflight the UTF-8 length and allocate utf8.
68 utf8=(char *)malloc(utf8Length);
69 if(utf8!=NULL) {
71 u_strToUTF8(utf8, utf8Length, NULL, buffer, bufferLen, &status);
120 char *utf8; member in class:UnicodeSetPerformanceTest
315 char utf8[4]; local
324 U8_APPEND_UNSAFE(utf8, length, c);
325 if(testcase.set.spanUTF8(utf8, length, USET_SPAN_CONTAINED)>0) {
339 const char *s=testcase.utf8;
361 char utf8[4]; local
[all...]
/external/llvm/lib/Support/Windows/
H A DPath.inc796 std::error_code UTF8ToUTF16(llvm::StringRef utf8,
798 if (!utf8.empty()) {
799 int len = ::MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, utf8.begin(),
800 utf8.size(), utf16.begin(), 0);
808 len = ::MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, utf8.begin(),
809 utf8.size(), utf16.begin(), utf16.size());
825 llvm::SmallVectorImpl<char> &utf8) {
828 int len = ::WideCharToMultiByte(codepage, 0, utf16, utf16_len, utf8.begin(),
834 utf8.reserve(len);
835 utf8
[all...]
H A DWindowsSupport.h175 std::error_code UTF8ToUTF16(StringRef utf8, SmallVectorImpl<wchar_t> &utf16);
177 SmallVectorImpl<char> &utf8);
180 SmallVectorImpl<char> &utf8);
/external/icu/icu4c/source/common/
H A Ducnv_u8.c27 #include "unicode/utf8.h"
764 UConverter *utf8; local
776 utf8=pToUArgs->converter;
783 c=(UChar32)utf8->toUnicodeStatus;
785 toULength=oldToULength=utf8->toULength;
786 toULimit=(int8_t)utf8->mode;
843 utf8->toUnicodeStatus=0;
844 utf8->toULength=0;
916 utf8->toUBytes[oldToULength++]=*source++;
918 utf8
[all...]
/external/pcre/dist/
H A Dpcredemo.c62 int utf8; local
267 utf8 = option_bits & PCRE_UTF8;
345 else if (utf8) /* Otherwise, ensure we */
/external/skia/samplecode/
H A DSampleRectanizer.cpp61 char utf8[kMaxBytesInUTF8Sequence]; variable
62 size_t size = SkUTF8_FromUnichar(uni, utf8);
65 switch (utf8[0]) {
H A DSampleUnpremul.cpp59 char utf8[kMaxBytesInUTF8Sequence]; variable
60 size_t size = SkUTF8_FromUnichar(uni, utf8);
63 switch (utf8[0]) {
/external/skia/tools/
H A Dsk_tool_utils_font.cpp162 SkAutoSTMalloc<10, char> utf8(byteCount);
163 SkUTF16_ToUTF8(&uni, 1, utf8);
165 char unibyte = utf8[byteIndex];
/external/vboot_reference/cgpt/
H A Dcgpt_common.c440 uint8_t *utf8, unsigned int maxoutput)
447 if (!utf16 || !maxinput || !utf8 || !maxoutput)
484 utf8[s8idx++] = code_point & 0x7F;
487 utf8[s8idx++] = 0xC0 | (code_point >> 6);
488 utf8[s8idx++] = 0x80 | (code_point & 0x3F);
491 utf8[s8idx++] = 0xE0 | (code_point >> 12);
492 utf8[s8idx++] = 0x80 | ((code_point >> 6) & 0x3F);
493 utf8[s8idx++] = 0x80 | (code_point & 0x3F);
496 utf8[s8idx++] = 0xF0 | (code_point >> 18);
497 utf8[s8id
439 UTF16ToUTF8(const uint16_t *utf16, unsigned int maxinput, uint8_t *utf8, unsigned int maxoutput) argument
528 UTF8ToUTF16(const uint8_t *utf8, uint16_t *utf16, unsigned int maxoutput) argument
[all...]
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.apache.ant_1.7.1.v20090120-1145/lib/
H A Dant-netrexx.jar ... boolean symbols private boolean time private String trace private boolean utf8 private String verbose private boolean suppressMethodArgumentNotUsed private boolean suppressPrivatePropertyNotUsed private ...

Completed in 903 milliseconds

12345