Home
last modified time | relevance | path

Searched refs:ustr (Results 1 – 25 of 46) sorted by relevance

12

/external/libchrome/base/i18n/
Dnumber_formatting.cc61 icu::UnicodeString ustr; in FormatNumber() local
62 number_format->format(number, ustr); in FormatNumber()
64 return i18n::UnicodeStringToString16(ustr); in FormatNumber()
77 icu::UnicodeString ustr; in FormatDouble() local
78 number_format->format(number, ustr); in FormatDouble()
80 return i18n::UnicodeStringToString16(ustr); in FormatDouble()
/external/icu/icu4c/source/test/cintltst/
Dusettest.c258 UChar ustr[4096]; in expectContainment() local
264 length = uset_toPattern(set, ustr, sizeof(ustr), TRUE, &ec); in expectContainment()
269 pat=aescstrdup(ustr, length); in expectContainment()
283 u_charsToUChars(stringStart, ustr, stringLength); in expectContainment()
285 if (uset_containsString(set, ustr, stringLength) == isIn) { in expectContainment()
299 u_charsToUChars(p, ustr, 1); in expectContainment()
300 c = ustr[0]; in expectContainment()
359 UChar ustr[4096], itemStr[4096]; in expectItems() local
370 length = uset_toPattern(set, ustr, sizeof(ustr), TRUE, &ec); in expectItems()
375 pat=aescstrdup(ustr, length); in expectItems()
[all …]
Dcposxtst.c80 const UChar* ustr; in TestMessageCatalog() local
85 ustr = u_catgets(catd, set_num, msg_num, FAIL, &len, &ec); in TestMessageCatalog()
86 u_austrcpy(str, ustr); in TestMessageCatalog()
92 if (u_strcmp(ustr, exp) != 0) { in TestMessageCatalog()
Duenumtst.c369 const UChar *ustr = uenum_unext(u,&len, &status); in verifyEnumeration() local
374 if(ustr==NULL) { in verifyEnumeration()
380 if(u_strncmp(ustr,buf,len)) { in verifyEnumeration()
382 … FAIL: ustring #%d expected '%s' got '%s'\n", __FILE__, line, i, compareToChar[i], austrdup(ustr)); in verifyEnumeration()
383 for(j=0;ustr[j]&&buf[j];j++) { in verifyEnumeration()
384 log_verbose(" @ %d\t<U+%04X> vs <U+%04X>\n", j, ustr[j],buf[j]); in verifyEnumeration()
398 if(u_strcmp(ustr,compareToUChar[i])) { in verifyEnumeration()
400 …ing #%d expected '%s' got '%s'\n", __FILE__, line, i, austrdup(compareToUChar[i]), austrdup(ustr)); in verifyEnumeration()
401 for(j=0;ustr[j]&&compareToUChar[j];j++) { in verifyEnumeration()
402 log_verbose(" @ %d\t<U+%04X> vs <U+%04X>\n", j, ustr[j],compareToUChar[j]); in verifyEnumeration()
/external/mesa3d/src/glx/
Drender2.c174 __indirect_glMap2d(GLenum target, GLdouble u1, GLdouble u2, GLint ustr, in __indirect_glMap2d() argument
187 else if (vstr < k || ustr < k || vord <= 0 || uord <= 0) { in __indirect_glMap2d()
211 __glFillMap2d(k, uord, vord, ustr, vstr, pnts, (GLdouble *) (pc + 48)); in __indirect_glMap2d()
229 if ((vstr != k) || (ustr != k * vord)) { in __indirect_glMap2d()
240 __glFillMap2d(k, uord, vord, ustr, vstr, pnts, buf); in __indirect_glMap2d()
252 __indirect_glMap2f(GLenum target, GLfloat u1, GLfloat u2, GLint ustr, in __indirect_glMap2f() argument
265 else if (vstr < k || ustr < k || vord <= 0 || uord <= 0) { in __indirect_glMap2f()
291 __glFillMap2f(k, uord, vord, ustr, vstr, pnts, (GLfloat *) (pc + 32)); in __indirect_glMap2f()
305 if ((vstr != k) || (ustr != k * vord)) { in __indirect_glMap2f()
316 __glFillMap2f(k, uord, vord, ustr, vstr, pnts, buf); in __indirect_glMap2f()
/external/python/cpython3/Lib/test/test_email/
Dtest_asian_codecs.py66 ustr = msg.get_payload(decode=True).decode(msg.get_content_charset())
67 self.assertEqual(jhello, ustr)
75 ustr = msg.get_payload(decode=True).decode(msg.get_content_charset())
76 self.assertEqual(jhello, ustr)
/external/icu/icu4c/source/common/
Duenum.cpp93 UChar *ustr = NULL; in uenum_unextDefault() local
98 ustr = (UChar*) _getBuffer(en, (len+1) * sizeof(UChar)); in uenum_unextDefault()
99 if (ustr == NULL) { in uenum_unextDefault()
102 u_charsToUChars(cstr, ustr, len+1); in uenum_unextDefault()
111 return ustr; in uenum_unextDefault()
/external/python/cpython3/Lib/test/
Dtest_weakset.py4 from collections import UserString as ustr unknown
22 self.items = [ustr(c) for c in ('a', 'b', 'c')]
23 self.items2 = [ustr(c) for c in ('x', 'y', 'z')]
24 self.ab_items = [ustr(c) for c in 'ab']
25 self.abcde_items = [ustr(c) for c in 'abcde']
26 self.def_items = [ustr(c) for c in 'def']
30 self.letters = [ustr(c) for c in string.ascii_letters]
33 self.obj = ustr('F')
60 self.assertNotIn(ustr('F'), self.fs)
210 x = ustr('Q')
[all …]
/external/python/cpython2/Lib/email/
Dcharset.py299 def from_splittable(self, ustr, to_output=True): argument
316 if not isinstance(ustr, unicode) or codec is None:
317 return ustr
319 return ustr.encode(codec, 'replace')
322 return ustr
/external/libaom/libaom/av1/decoder/
Daccounting.c22 const unsigned char *ustr; in accounting_hash() local
24 ustr = (const unsigned char *)str; in accounting_hash()
27 while (*ustr) val += *ustr++; in accounting_hash()
/external/clang/test/SemaCXX/
Dcxx0x-type-convert-construct.cpp6 char16_t *ustr; in f() local
7ustr = u"a UTF-16 string"; // expected-error {{assigning to 'char16_t *' from incompatible type 'c… in f()
/external/llvm-project/clang/test/SemaCXX/
Dcxx0x-type-convert-construct.cpp6 char16_t *ustr; in f() local
7ustr = u"a UTF-16 string"; // expected-error {{assigning to 'char16_t *' from incompatible type 'c… in f()
/external/python/cpython2/Lib/email/test/
Dtest_email_codecs.py60 ustr = unicode(msg.get_payload(), msg.get_content_charset())
61 self.assertEqual(jhello, ustr.encode(jcode))
Dtest_email_codecs_renamed.py60 ustr = unicode(msg.get_payload(), msg.get_content_charset())
61 self.assertEqual(jhello, ustr.encode(jcode))
/external/strace/tests-mx32/
Dpread64-pwrite64.c58 const unsigned char *ustr = (const unsigned char *) str; in print_hex() local
62 unsigned int c = ustr[i]; in print_hex()
76 tprintf("\\%o", ustr[i]); in print_hex()
Dread-write.c67 const unsigned char *ustr = (const unsigned char *) str; in print_hex() local
73 unsigned int c = ustr[i]; in print_hex()
92 tprintf("\\%o", ustr[i]); in print_hex()
/external/strace/tests-m32/
Dpread64-pwrite64.c58 const unsigned char *ustr = (const unsigned char *) str; in print_hex() local
62 unsigned int c = ustr[i]; in print_hex()
76 tprintf("\\%o", ustr[i]); in print_hex()
Dread-write.c67 const unsigned char *ustr = (const unsigned char *) str; in print_hex() local
73 unsigned int c = ustr[i]; in print_hex()
92 tprintf("\\%o", ustr[i]); in print_hex()
/external/strace/tests/
Dpread64-pwrite64.c58 const unsigned char *ustr = (const unsigned char *) str; in print_hex() local
62 unsigned int c = ustr[i]; in print_hex()
76 tprintf("\\%o", ustr[i]); in print_hex()
Dread-write.c67 const unsigned char *ustr = (const unsigned char *) str; in print_hex() local
73 unsigned int c = ustr[i]; in print_hex()
92 tprintf("\\%o", ustr[i]); in print_hex()
/external/python/cpython3/Modules/clinic/
Darraymodule.c.h383 array_array_fromunicode_impl(arrayobject *self, PyObject *ustr);
389 PyObject *ustr; in array_array_fromunicode() local
398 ustr = arg; in array_array_fromunicode()
399 return_value = array_array_fromunicode_impl(self, ustr); in array_array_fromunicode()
/external/strace/
Dutil.c509 const unsigned char *ustr = (const unsigned char *) instr; in string_quote() local
527 c = ustr[i]; in string_quote()
555 c = ustr[i]; in string_quote()
569 c = ustr[i]; in string_quote()
613 && ustr[i + 1] >= '0' in string_quote()
614 && ustr[i + 1] <= '7' in string_quote()
640 if (style & QUOTE_0_TERMINATED && ustr[i] == '\0') { in string_quote()
/external/tcpdump/missing/
Dsnprintf.c607 unsigned char *ustr = (unsigned char *)str; in vsnprintf() local
611 state.str = ustr; in vsnprintf()
612 state.s = ustr; in vsnprintf()
613 state.theend = ustr + sz - 1; in vsnprintf()
/external/icu/icu4c/source/tools/genrb/
Dsources.txt10 ustr.c
/external/icu/icu4c/source/test/iotest/
Dstream.cpp134 UnicodeString ustr("string"); in TestStream() local
136 outFormatStream << "1234567890" << setw(10) << left << ustr << " " << "0123456789"; in TestStream()

12