• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/ICU-531.30/icuSources/test/cintltst/

Lines Matching refs:u_strpbrk

501     log_verbose("Testing u_strpbrk()");
503 if (u_strpbrk(testString, a) != &testString[0]) {
504 log_err("u_strpbrk couldn't find first letter a.\n");
506 if (u_strpbrk(testString, dc) != &testString[2]) {
507 log_err("u_strpbrk couldn't find d or c.\n");
509 if (u_strpbrk(testString, cd) != &testString[2]) {
510 log_err("u_strpbrk couldn't find c or d.\n");
512 if (u_strpbrk(testString, cdh) != &testString[2]) {
513 log_err("u_strpbrk couldn't find c, d or h.\n");
515 if (u_strpbrk(testString, f) != NULL) {
516 log_err("u_strpbrk didn't return NULL for \"f\".\n");
518 if (u_strpbrk(testString, fg) != NULL) {
519 log_err("u_strpbrk didn't return NULL for \"fg\".\n");
521 if (u_strpbrk(testString, gf) != NULL) {
522 log_err("u_strpbrk didn't return NULL for \"gf\".\n");
524 if (u_strpbrk(testString, empty) != NULL) {
525 log_err("u_strpbrk didn't return NULL for \"\".\n");
528 log_verbose("Testing u_strpbrk() with surrogates");
530 if (u_strpbrk(testSurrogateString, a) != &testSurrogateString[1]) {
531 log_err("u_strpbrk couldn't find first letter a.\n");
533 if (u_strpbrk(testSurrogateString, dc) != &testSurrogateString[5]) {
534 log_err("u_strpbrk couldn't find d or c.\n");
536 if (u_strpbrk(testSurrogateString, cd) != &testSurrogateString[5]) {
537 log_err("u_strpbrk couldn't find c or d.\n");
539 if (u_strpbrk(testSurrogateString, cdh) != &testSurrogateString[5]) {
540 log_err("u_strpbrk couldn't find c, d or h.\n");
542 if (u_strpbrk(testSurrogateString, f) != NULL) {
543 log_err("u_strpbrk didn't return NULL for \"f\".\n");
545 if (u_strpbrk(testSurrogateString, fg) != NULL) {
546 log_err("u_strpbrk didn't return NULL for \"fg\".\n");
548 if (u_strpbrk(testSurrogateString, gf) != NULL) {
549 log_err("u_strpbrk didn't return NULL for \"gf\".\n");
551 if (u_strpbrk(testSurrogateString, surrMatchSet1) != &testSurrogateString[3]) {
552 log_err("u_strpbrk couldn't find \"0xdbff, 0xdfff\".\n");
554 if (u_strpbrk(testSurrogateString, surrMatchSet2) != &testSurrogateString[1]) {
555 log_err("u_strpbrk couldn't find \"0xdbff, a, b, 0xdbff, 0xdfff\".\n");
557 if (u_strpbrk(testSurrogateString, surrMatchSet3) != &testSurrogateString[3]) {
558 log_err("u_strpbrk couldn't find \"0xdb00, 0xdf00, 0xdbff, 0xdfff\".\n");
560 if (u_strpbrk(testSurrogateString, surrMatchSet4) != NULL) {
561 log_err("u_strpbrk should have returned NULL for empty string.\n");
563 if (u_strpbrk(testSurrogateString, surrMatchSetBad) != &testSurrogateString[0]) {
564 log_err("u_strpbrk should have found bad surrogate.\n");