Searched defs:utf8 (Results 76 - 100 of 137) sorted by last modified time

123456

/external/chromium_org/third_party/libphonenumber/src/phonenumbers/utf/
H A Dunicodetext.cc45 static int CodepointCount(const char* utf8, int len) { argument
46 return CodepointDistance(utf8, utf8 + len);
311 UnicodeText& UnicodeText::UnsafeAppendUTF8(const char* utf8, int len) { argument
312 repr_.append(utf8, len);
/external/chromium_org/third_party/icu/source/tools/dumpce/
H A Ddumpce.cpp842 char utf8[64]; local
849 u_strToUTF8(utf8, 64, &length, nfc, length, &error);
851 fprintf(stdout, "Error converting UChar to utf8\n");
855 fprintf(OUTPUT_, "%s<br>", utf8);
/external/chromium_org/third_party/icu/source/test/cintltst/
H A Dccapitst.c485 someConverters[2] = ucnv_open("utf8", &err);
1153 { "UTF-8", "utf-8", "utf8", "ibm-1208",
2241 utf8[]={ local
2283 (const char *)utf8, sizeof(utf8), (const char *)shiftJIS, sizeof(shiftJIS),
2287 (const char *)shiftJIS, sizeof(shiftJIS), (const char *)utf8, sizeof(utf8),
2299 memcpy(srcBuffer, utf8, sizeof(utf8));
2300 srcBuffer[sizeof(utf8)]
2494 char utf8[16]; local
2560 char utf8[600], expect[600]; local
2738 utf8[]={ local
[all...]
H A Dcstrcase.c972 char utf8BeforeTitle[64], utf8TitleSentNoLower[64], utf8[64]; local
979 length=ucasemap_utf8ToTitle(csm, utf8, (int32_t)sizeof(utf8), utf8BeforeTitle, utf8BeforeTitleLength, &errorCode);
982 0!=uprv_memcmp(utf8, utf8TitleSentNoLower, length) ||
983 utf8[length]!=0
H A Dncnvtst.c686 /*Regression test for utf8 converter*/
692 uint8_t *utf8 = (uint8_t*)malloc(MAX_LENGTH); local
705 UTF8_APPEND_CHAR_SAFE(utf8, offset8, MAX_LENGTH, currCh);
709 utf8, offset8, "UTF8", 0, TRUE, U_ZERO_ERROR )) {
712 if(!convertToU(utf8, offset8,
719 free(utf8);
964 expected1, sizeof(expected1)/sizeof(expected1[0]),"utf8", UCNV_TO_U_CALLBACK_SUBSTITUTE, offsets1,FALSE))
965 log_err("utf8->u with substitute did not match.\n");;
H A Dnucnvtst.c906 sampleText, sizeof(sampleText)/sizeof(sampleText[0]), "utf8", fmUTF8Offs,FALSE);
1106 static const uint8_t utf8[]={ local
1137 testConvertToU(utf8, sizeof(utf8),
5387 utf8cnv = ucnv_open ("utf8", &status);
H A Dreapits.c93 static UBool equals_utf8_utext(const char *utf8, UText *utext) { argument
100 U8_NEXT_UNSAFE(utf8, u8i, u8c);
H A Ducnvseltst.c273 const char *utf8, int32_t length,
304 * (UBool)(uset_spanUTF8(set, utf8, length, USET_SPAN_SIMPLE) == length);
306 * or if the utf8 string contains an illegal sequence.
314 U8_NEXT(utf8, offset, length, cp);
272 getResultsManually(const char** encodings, int32_t num_encodings, const char *utf8, int32_t length, const USet* excludedCodePoints, const UConverterUnicodeSet whichSet) argument
/external/chromium_org/third_party/icu/source/test/intltest/
H A Dconvtest.cpp1170 source=cc.utf8;
1403 // convert unicode to utf8
1404 char utf8[256]; local
1405 cc.utf8=utf8;
1406 u_strToUTF8(utf8, LENGTHOF(utf8), &cc.utf8Length,
1425 { 0, "bulk", "utf8" }, // must be first for offsets to be checked
1426 { 1, "step=1", "utf8 step=1" },
1427 { 3, "step=3", "utf8 ste
[all...]
H A Dconvtest.h45 const char *utf8; member in struct:ConversionCase
H A Dintltest.cpp1178 UBool utf8 = FALSE; local
1212 utf8 = TRUE;
1328 fprintf(stdout, " utf-8 (u) : %s\n", (utf8? "On" : "Off"));
1342 if(utf8) {
1363 if(utf8) {
H A Dusettest.cpp2323 char *s8=utf8;
2333 s8, (int32_t)(sizeof(utf8)-utf8Count));
2365 char utf8[1024]; member in class:UnicodeSetWithStrings
2390 const char *s8=fSet.utf8+nextUTF8Start;
H A Dustrtest.cpp242 static const uint8_t utf8[]={ 0x61, 0xC3, 0xA4, 0xC3, 0x9F, 0xE4, 0xB8, 0x80, 0 }; local
244 UnicodeString from8a = UnicodeString((const char *)utf8);
245 UnicodeString from8b = UnicodeString((const char *)utf8, (int32_t)sizeof(utf8)-1);
252 if(length8!=((int32_t)sizeof(utf8)-1) || 0!=uprv_memcmp(buffer, utf8, sizeof(utf8))) {
256 if(length8!=4 || buffer[length8]!=0 || 0!=uprv_memcmp(buffer, utf8+1, length8)) {
1867 static const uint8_t utf8[] = { local
1890 UnicodeString from8 = UnicodeString::fromUTF8(StringPiece((const char *)utf8, (int32_
[all...]
/external/chromium_org/third_party/icu/source/test/letest/
H A Dgendata.cpp282 char *utf8 = NULL; local
287 utf8 = getUTF8String(&text);
288 fprintf(outputFile, " <test-text>%s</test-text>\n\n", utf8);
290 freeCString(utf8);
/external/chromium_org/third_party/icu/source/test/perf/unisetperf/
H A Dunisetperf.cpp50 utf8(NULL), utf8Length(0), countInputCodePoints(0), spanCount(0) {
66 // Preflight the UTF-8 length and allocate utf8.
69 utf8=(char *)malloc(utf8Length);
70 if(utf8!=NULL) {
72 u_strToUTF8(utf8, utf8Length, NULL, buffer, bufferLen, &status);
121 char *utf8; member in class:UnicodeSetPerformanceTest
316 char utf8[4]; local
325 U8_APPEND_UNSAFE(utf8, length, c);
326 if(testcase.set.spanUTF8(utf8, length, USET_SPAN_CONTAINED)>0) {
340 const char *s=testcase.utf8;
362 char utf8[4]; local
[all...]
/external/chromium_org/third_party/icu/source/test/perf/utfperf/
H A Dutfperf.cpp33 static char utf8[INPUT_CAPACITY]; variable
89 u_strToUTF8(utf8, (int32_t)sizeof(utf8), &utf8Length, buffer, bufferLen, &status);
268 input8(utf8), input8Length(utf8Length) {
/external/chromium_org/third_party/icu/source/test/perf/utrie2perf/
H A Dutrie2perf.cpp27 // Left over from when icu/branches/markus/utf8 could use both old UTrie
49 utf8(NULL), utf8Length(0), countInputCodePoints(0) {
60 // Preflight the UTF-8 length and allocate utf8.
63 utf8=(char *)malloc(utf8Length);
64 if(utf8!=NULL) {
66 u_strToUTF8(utf8, utf8Length, NULL, buffer, bufferLen, &status);
87 char *utf8; member in class:UTrie2PerfTest
164 UBool isFCD=unorm_checkFCDUTF8((const uint8_t *)testcase.utf8, testcase.utf8Length, NULL);
/external/chromium_org/third_party/icu/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...]
H A Ducnvlat1.c21 #include "unicode/utf8.h"
323 UConverter *utf8; local
332 utf8=pToUArgs->converter;
339 c=(UChar32)utf8->toUnicodeStatus;
349 utf8->toUnicodeStatus=0;
350 utf8->toULength=0;
407 utf8->toUnicodeStatus=utf8->toUBytes[0]=b=*source++;
408 utf8->toULength=1;
409 utf8
[all...]
H A Ducnvmbcs.c51 #include "unicode/utf8.h"
4865 UConverter *utf8, *cnv; local
4883 utf8=pToUArgs->converter;
4909 c=(UChar32)utf8->toUnicodeStatus;
4911 toULength=oldToULength=utf8->toULength;
4912 toULimit=(int8_t)utf8->mode;
4944 utf8->toUnicodeStatus=0;
4945 utf8->toULength=0;
4955 * (utf8, source, target, limits but not cnv, table, minValue, etc.).
5051 utf8
5171 UConverter *utf8, *cnv; local
[all...]
H A Dunisetspan.h122 uint8_t *utf8; member in class:UnicodeSetStringSpan
H A Dunistr.cpp407 UnicodeString UnicodeString::fromUTF8(const StringPiece &utf8) { argument
409 result.setToUTF8(utf8);
885 char *utf8 = sink.GetAppendBuffer(length16 < capacity ? length16 : capacity, local
891 u_strToUTF8WithSub(utf8, capacity, &length8,
897 utf8 = (char *)uprv_malloc(length8);
898 if(utf8 != NULL) {
901 u_strToUTF8WithSub(utf8, length8, &length8,
911 sink.Append(utf8, length8);
915 uprv_free(utf8);
1240 UnicodeString &UnicodeString::setToUTF8(const StringPiece &utf8) { argument
[all...]
/external/chromium_org/third_party/WebKit/Source/modules/websockets/
H A DDOMWebSocket.cpp282 WTF_LOG(Network, "WebSocket %p connect() url='%s'", this, url.utf8().data());
378 WTF_LOG(Network, "WebSocket %p send() Sending String '%s'", this, message.utf8().data());
385 updateBufferedAmountAfterClose(message.utf8().length());
390 m_bufferedAmount += message.utf8().length();
433 WTF_LOG(Network, "WebSocket %p send() Sending Blob '%s'", this, binaryData->uuid().utf8().data());
469 WTF_LOG(Network, "WebSocket %p close() code=%d reason='%s'", this, code, reason.utf8().data());
474 CString utf8 = reason.utf8(StrictUTF8ConversionReplacingUnpairedSurrogatesWithFFFD); local
475 if (utf8.length() > maxReasonSizeInBytes) {
603 WTF_LOG(Network, "WebSocket %p didReceiveMessage() Text message '%s'", this, msg.utf8()
[all...]
H A DMainThreadWebSocketChannel.cpp128 WTF_LOG(Network, "MainThreadWebSocketChannel %p send() Sending String '%s'", this, message.utf8().data());
129 CString utf8 = message.utf8(StrictUTF8ConversionReplacingUnpairedSurrogatesWithFFFD); local
130 enqueueTextFrame(utf8);
143 WTF_LOG(Network, "MainThreadWebSocketChannel %p send() Sending Blob '%s'", this, binaryData->uuid().utf8().data());
157 WTF_LOG(Network, "MainThreadWebSocketChannel %p close() code=%d reason='%s'", this, code, reason.utf8().data());
191 WTF_LOG(Network, "MainThreadWebSocketChannel %p fail() reason='%s'", this, reason.utf8().data());
364 WTF_LOG(Network, "Error Message: '%s', FailURL: '%s'", message.utf8().data(), failingURL.utf8().data());
508 buf.append(reason.utf8()
[all...]
/external/chromium_org/third_party/WebKit/Source/platform/exported/
H A DWebString.cpp83 std::string WebString::utf8() const function in class:blink::WebString
85 StringUTF8Adaptor utf8(m_private.get());
86 return std::string(utf8.data(), utf8.length());

Completed in 356 milliseconds

123456