Home | History | Annotate | Download | only in cintltst

Lines Matching refs:u_strpbrk

505     log_verbose("Testing u_strpbrk()");
507 if (u_strpbrk(testString, a) != &testString[0]) {
508 log_err("u_strpbrk couldn't find first letter a.\n");
510 if (u_strpbrk(testString, dc) != &testString[2]) {
511 log_err("u_strpbrk couldn't find d or c.\n");
513 if (u_strpbrk(testString, cd) != &testString[2]) {
514 log_err("u_strpbrk couldn't find c or d.\n");
516 if (u_strpbrk(testString, cdh) != &testString[2]) {
517 log_err("u_strpbrk couldn't find c, d or h.\n");
519 if (u_strpbrk(testString, f) != NULL) {
520 log_err("u_strpbrk didn't return NULL for \"f\".\n");
522 if (u_strpbrk(testString, fg) != NULL) {
523 log_err("u_strpbrk didn't return NULL for \"fg\".\n");
525 if (u_strpbrk(testString, gf) != NULL) {
526 log_err("u_strpbrk didn't return NULL for \"gf\".\n");
528 if (u_strpbrk(testString, empty) != NULL) {
529 log_err("u_strpbrk didn't return NULL for \"\".\n");
532 log_verbose("Testing u_strpbrk() with surrogates");
534 if (u_strpbrk(testSurrogateString, a) != &testSurrogateString[1]) {
535 log_err("u_strpbrk couldn't find first letter a.\n");
537 if (u_strpbrk(testSurrogateString, dc) != &testSurrogateString[5]) {
538 log_err("u_strpbrk couldn't find d or c.\n");
540 if (u_strpbrk(testSurrogateString, cd) != &testSurrogateString[5]) {
541 log_err("u_strpbrk couldn't find c or d.\n");
543 if (u_strpbrk(testSurrogateString, cdh) != &testSurrogateString[5]) {
544 log_err("u_strpbrk couldn't find c, d or h.\n");
546 if (u_strpbrk(testSurrogateString, f) != NULL) {
547 log_err("u_strpbrk didn't return NULL for \"f\".\n");
549 if (u_strpbrk(testSurrogateString, fg) != NULL) {
550 log_err("u_strpbrk didn't return NULL for \"fg\".\n");
552 if (u_strpbrk(testSurrogateString, gf) != NULL) {
553 log_err("u_strpbrk didn't return NULL for \"gf\".\n");
555 if (u_strpbrk(testSurrogateString, surrMatchSet1) != &testSurrogateString[3]) {
556 log_err("u_strpbrk couldn't find \"0xdbff, 0xdfff\".\n");
558 if (u_strpbrk(testSurrogateString, surrMatchSet2) != &testSurrogateString[1]) {
559 log_err("u_strpbrk couldn't find \"0xdbff, a, b, 0xdbff, 0xdfff\".\n");
561 if (u_strpbrk(testSurrogateString, surrMatchSet3) != &testSurrogateString[3]) {
562 log_err("u_strpbrk couldn't find \"0xdb00, 0xdf00, 0xdbff, 0xdfff\".\n");
564 if (u_strpbrk(testSurrogateString, surrMatchSet4) != NULL) {
565 log_err("u_strpbrk should have returned NULL for empty string.\n");
567 if (u_strpbrk(testSurrogateString, surrMatchSetBad) != &testSurrogateString[0]) {
568 log_err("u_strpbrk should have found bad surrogate.\n");