Home | History | Annotate | Download | only in cintltst

Lines Matching full:u_strpbrk

500     log_verbose("Testing u_strpbrk()");
502 if (u_strpbrk(testString, a) != &testString[0]) {
503 log_err("u_strpbrk couldn't find first letter a.\n");
505 if (u_strpbrk(testString, dc) != &testString[2]) {
506 log_err("u_strpbrk couldn't find d or c.\n");
508 if (u_strpbrk(testString, cd) != &testString[2]) {
509 log_err("u_strpbrk couldn't find c or d.\n");
511 if (u_strpbrk(testString, cdh) != &testString[2]) {
512 log_err("u_strpbrk couldn't find c, d or h.\n");
514 if (u_strpbrk(testString, f) != NULL) {
515 log_err("u_strpbrk didn't return NULL for \"f\".\n");
517 if (u_strpbrk(testString, fg) != NULL) {
518 log_err("u_strpbrk didn't return NULL for \"fg\".\n");
520 if (u_strpbrk(testString, gf) != NULL) {
521 log_err("u_strpbrk didn't return NULL for \"gf\".\n");
523 if (u_strpbrk(testString, empty) != NULL) {
524 log_err("u_strpbrk didn't return NULL for \"\".\n");
527 log_verbose("Testing u_strpbrk() with surrogates");
529 if (u_strpbrk(testSurrogateString, a) != &testSurrogateString[1]) {
530 log_err("u_strpbrk couldn't find first letter a.\n");
532 if (u_strpbrk(testSurrogateString, dc) != &testSurrogateString[5]) {
533 log_err("u_strpbrk couldn't find d or c.\n");
535 if (u_strpbrk(testSurrogateString, cd) != &testSurrogateString[5]) {
536 log_err("u_strpbrk couldn't find c or d.\n");
538 if (u_strpbrk(testSurrogateString, cdh) != &testSurrogateString[5]) {
539 log_err("u_strpbrk couldn't find c, d or h.\n");
541 if (u_strpbrk(testSurrogateString, f) != NULL) {
542 log_err("u_strpbrk didn't return NULL for \"f\".\n");
544 if (u_strpbrk(testSurrogateString, fg) != NULL) {
545 log_err("u_strpbrk didn't return NULL for \"fg\".\n");
547 if (u_strpbrk(testSurrogateString, gf) != NULL) {
548 log_err("u_strpbrk didn't return NULL for \"gf\".\n");
550 if (u_strpbrk(testSurrogateString, surrMatchSet1) != &testSurrogateString[3]) {
551 log_err("u_strpbrk couldn't find \"0xdbff, 0xdfff\".\n");
553 if (u_strpbrk(testSurrogateString, surrMatchSet2) != &testSurrogateString[1]) {
554 log_err("u_strpbrk couldn't find \"0xdbff, a, b, 0xdbff, 0xdfff\".\n");
556 if (u_strpbrk(testSurrogateString, surrMatchSet3) != &testSurrogateString[3]) {
557 log_err("u_strpbrk couldn't find \"0xdb00, 0xdf00, 0xdbff, 0xdfff\".\n");
559 if (u_strpbrk(testSurrogateString, surrMatchSet4) != NULL) {
560 log_err("u_strpbrk should have returned NULL for empty string.\n");
562 if (u_strpbrk(testSurrogateString, surrMatchSetBad) != &testSurrogateString[0]) {
563 log_err("u_strpbrk should have found bad surrogate.\n");