Lines Matching refs:u_countChar32
1346 // note that this also calls and tests u_countChar32(length>=0)
1357 // NUL-terminate the string buffer and test u_countChar32(length=-1)
1360 u_countChar32(buffer, -1)!=4 ||
1361 u_countChar32(buffer+1, -1)!=4 ||
1362 u_countChar32(buffer+2, -1)!=3 ||
1363 u_countChar32(buffer+3, -1)!=3 ||
1364 u_countChar32(buffer+4, -1)!=2 ||
1365 u_countChar32(buffer+5, -1)!=1 ||
1366 u_countChar32(buffer+6, -1)!=0
1368 errln("u_countChar32(length=-1) failed");
1371 // test u_countChar32() with bad input
1372 if(u_countChar32(NULL, 5)!=0 || u_countChar32(buffer, -2)!=0) {
1373 errln("u_countChar32(bad input) failed (returned non-zero counts)");