Home | History | Annotate | Download | only in cintltst

Lines Matching defs:string

16 *   Tests of ustring.h Unicode string API functions.
23 #include <string.h>
64 /* First String */
66 /* Second String */
69 /* Concatenated string */
274 log_err("u_strchr can't find '_' in the string\n");
279 log_err("u_strchr32 can't find '_' in the string\n");
284 log_err("u_strchr can't find NULL in the string\n");
289 log_err("u_strchr32 can't find NULL in the string\n");
294 log_err("u_memchr can't find NULL in the string\n");
299 log_err("u_memchr32 can't find NULL in the string\n");
306 log_err("u_memchr can't find '_' in the string\n");
311 log_err("u_memchr32 can't find '_' in the string\n");
376 log_err("Didn't get NULL for empty string\n");
379 log_err("State should be NULL for empty string\n");
384 log_err("Didn't get NULL for a string of delimiters\n");
387 log_err("State should be NULL for a string of delimiters\n");
393 log_err("Got NULL for a string that does not begin with delimiters\n");
396 log_err("Didn't get NULL for a string that ends in delimiters\n");
399 log_err("State should be NULL for empty string\n");
408 log_err("Should have recieved the same string when there are no delimiters\n");
411 log_err("Should not have found another token in a one token string\n");
436 log_err("error: u_strcmpCodePointOrder() fails for string %d and the following one\n", i);
439 log_err("error: u_strncmpCodePointOrder() fails for string %d and the following one\n", i);
442 /* There are at least 2 UChars in each string - verify that strncmp()==memcmp(). */
444 log_err("error: u_strncmpCodePointOrder(2)!=u_memcmpCodePointOrder(2) for string %d and the following one\n", i);
455 log_err("error: u_strCompare(code point order) fails for string
462 log_err("error: u_strCompare(code unit order)!=u_strcmp() for string %d and the following one\n", i);
469 log_err("error: u_strCompareIter(code point order) fails for string %d and the following one\n", i);
473 log_err("error: u_strCompareIter(code unit order)!=u_strcmp() for string %d and the following one\n", i);
565 log_err("u_strpbrk should have returned NULL for empty string.\n");
628 log_err("u_strcspn should have returned strlen for empty string.\n");
650 log_err("u_strspn couldn't skip over the whole string.\n");
653 log_err("u_strspn should have returned 0 for empty string.\n");
673 log_err("u_strspn couldn't skip whole string.\n");
682 log_err("u_strspn should have returned 0 for empty string.\n");
687 * All binary Unicode string searches should behave the same for equivalent input.
720 /* search for NUL code point: find end of string */
736 /* search for empty substring: find beginning of string */
1043 result=u_strstr(temp, subString+2); /* subString+2 is an empty string */
1107 log_err("failure in u_unescape(): length %d!=%d and/or incorrect result string\n", length,
1140 static const UChar string[]={
1151 length=LENGTHOF(string);
1155 _testStrHasMoreChar32Than(string+i, i, length-i, number);
1162 length=LENGTHOF(string);
1163 u_memcpy(buffer, string, length);
1168 _testStrHasMoreChar32Than(string+i, i, -1, number);
1174 /* test u_strHasMoreChar32Than() with NULL string (bad input) */
1355 * iter1 and iter2 must be set up for the same iterator type and the same string
1371 /* get four UChars from the middle of the string */
1467 /* compare the same string between UTF-16 and UTF-8 UCharIterators ------ */
1489 /* compare the same string between UTF-16 and UTF-16BE UCharIterators --- */
1769 /* test again, this time with an insane string to cause internal buffer overflows */
1778 /* append another copy of this string for more overflows */