Lines Matching refs:uStringBuf
28 UChar uStringBuf[512];
36 u_memset(uStringBuf, 0x0a, sizeof(uStringBuf) / sizeof(*uStringBuf));
55 u_sprintf(uStringBuf, "Signed decimal integer d: %d", *n);
57 u_sscanf(uStringBuf, "Signed decimal integer d: %d", newValuePtr);
62 u_sprintf(uStringBuf, "Signed decimal integer i: %i", *n);
64 u_sscanf(uStringBuf, "Signed decimal integer i: %i", newValuePtr);
69 u_sprintf(uStringBuf, "Unsigned octal integer o: %o", *n);
71 u_sscanf(uStringBuf, "Unsigned octal integer o: %o", newValuePtr);
76 u_sprintf(uStringBuf, "Unsigned decimal integer %%u: %u", *n);
78 u_sscanf(uStringBuf, "Unsigned decimal integer %%u: %u", newValuePtr);
83 u_sprintf(uStringBuf, "Lowercase unsigned hexadecimal integer x: %x", *n);
85 u_sscanf(uStringBuf, "Lowercase unsigned hexadecimal integer x: %x", newValuePtr);
90 u_sprintf(uStringBuf, "Uppercase unsigned hexadecimal integer X: %X", *n);
92 u_sscanf(uStringBuf, "Uppercase unsigned hexadecimal integer X: %X", newValuePtr);
97 u_sprintf(uStringBuf, "Float f: %f", myFloat);
99 u_sscanf(uStringBuf, "Float f: %lf", newDoubleValuePtr);
104 u_sprintf(uStringBuf, "Lowercase float e: %e", myFloat);
106 u_sscanf(uStringBuf, "Lowercase float e: %le", newDoubleValuePtr);
111 u_sprintf(uStringBuf, "Uppercase float E: %E", myFloat);
113 u_sscanf(uStringBuf, "Uppercase float E: %lE", newDoubleValuePtr);
118 u_sprintf(uStringBuf, "Lowercase float g: %g", myFloat);
120 u_sscanf(uStringBuf, "Lowercase float g: %lg", newDoubleValuePtr);
125 u_sprintf(uStringBuf, "Uppercase float G: %G", myFloat);
127 u_sscanf(uStringBuf, "Uppercase float G: %lG", newDoubleValuePtr);
133 u_sprintf(uStringBuf, "Pointer %%p: %p\n", origPtr);
134 u_sscanf(uStringBuf, "Pointer %%p: %p\n", &ptr);
135 if (ptr != origPtr || u_strlen(uStringBuf) != 13+(sizeof(void*)*2)) {
139 u_sprintf(uStringBuf, "Char c: %c", 'A');
140 u_sscanf(uStringBuf, "Char c: %c", myString);
145 u_sprintf(uStringBuf, "UChar %%C: %C", (UChar)0x0041); /*'A'*/
146 u_sscanf(uStringBuf, "UChar %%C: %C", myUString);
151 u_sprintf(uStringBuf, "String %%s: %s", "My-String");
152 u_sscanf(uStringBuf, "String %%s: %s", myString);
156 if (uStringBuf[20] != 0) {
157 log_err("String not terminated. Got %c\n", uStringBuf[20] );
159 u_sprintf(uStringBuf, "NULL String %%s: %s", NULL);
160 u_sscanf(uStringBuf, "NULL String %%s: %s", myString);
165 u_sprintf(uStringBuf, "Unicode String %%S: %S", myStringOrig);
166 u_sscanf(uStringBuf, "Unicode String %%S: %S", myUString);
172 u_sprintf(uStringBuf, "NULL Unicode String %%S: %S", NULL);
173 u_sscanf(uStringBuf, "NULL Unicode String %%S: %S", myUString);
179 u_sprintf(uStringBuf, "Percent %%P (non-ANSI): %P", myFloat);
181 u_sscanf(uStringBuf, "Percent %%P (non-ANSI): %P", newDoubleValuePtr);
186 u_sprintf(uStringBuf, "Spell Out %%V (non-ANSI): %V", myFloat);
188 u_sscanf(uStringBuf, "Spell Out %%V (non-ANSI): %V", newDoubleValuePtr);
194 u_sprintf(uStringBuf, "\t\nPointer to integer (Count) %%n: n=%d %n n=%d\n", *newValuePtr, newValuePtr, *newValuePtr);
199 /* u_sscanf(uStringBuf, "Pointer %%p: %p\n", myFile);*/
204 retVal = u_sprintf(uStringBuf, longStr);
205 u_austrncpy(myString, uStringBuf, sizeof(uStringBuf)/sizeof(*uStringBuf));
213 retVal = u_sprintf(uStringBuf, "%s", longStr);
214 u_austrncpy(myString, uStringBuf, sizeof(uStringBuf)/sizeof(*uStringBuf));
223 u_sprintf_u(uStringBuf, myUString);
224 if (u_strcmp(myUString, uStringBuf)) {
229 retVal = u_sprintf_u(uStringBuf, myUString+10);
230 if (u_strcmp(myUString+10, uStringBuf)) {
237 u_memset(uStringBuf, 1, sizeof(longStr)/sizeof(*longStr));
239 retVal = u_snprintf_u(uStringBuf, 10, myUString);
240 if (u_strncmp(myUString, uStringBuf, 10) || uStringBuf[10] != 1 || retVal != 10) {
509 UChar uStringBuf[256];
515 u_memset(uStringBuf, 0x0a, sizeof(uStringBuf) / sizeof(*uStringBuf));
520 u_sprintf(uStringBuf, "%x", num);
521 u_austrncpy(myString, uStringBuf, sizeof(myString)/sizeof(myString[0]));
527 u_sprintf(uStringBuf, "%X", num);
528 u_austrncpy(myString, uStringBuf, sizeof(myString)/sizeof(myString[0]));
534 u_sprintf(uStringBuf, "%o", num);
535 u_austrncpy(myString, uStringBuf, sizeof(myString)/sizeof(myString[0]));
542 u_sprintf(uStringBuf, "%d", num);
543 u_austrncpy(myString, uStringBuf, sizeof(myString)/sizeof(myString[0]));
549 u_sprintf(uStringBuf, "%i", num);
550 u_austrncpy(myString, uStringBuf, sizeof(myString)/sizeof(myString[0]));
556 u_sprintf(uStringBuf, "%f", (double)num);
557 u_austrncpy(myString, uStringBuf, sizeof(myString)/sizeof(myString[0]));
563 u_sprintf(uStringBuf, "%e", (double)num);
564 u_austrncpy(myString, uStringBuf, sizeof(myString)/sizeof(myString[0]));
570 u_sprintf(uStringBuf, "%E", (double)num);
571 u_austrncpy(myString, uStringBuf, sizeof(myString)/sizeof(myString[0]));
577 u_sprintf(uStringBuf, "%g", (double)num);
578 u_austrncpy(myString, uStringBuf, sizeof(myString)/sizeof(myString[0]));
584 u_sprintf(uStringBuf, "%G", (double)num);
585 u_austrncpy(myString, uStringBuf, sizeof(myString)/sizeof(myString[0]));
593 uStringBuf[0] = (UChar)0xfffe;
595 u_sprintf(uStringBuf, "%c", num);
596 u_austrncpy(myString, uStringBuf, sizeof(myString)/sizeof(myString[0]));