Lines Matching full:matchset
459 * Match each code point in a string against each code point in the matchSet.
461 * is (polarity==TRUE) or is not (FALSE) contained in the matchSet.
465 _matchFromSet(const UChar *string, const UChar *matchSet, UBool polarity) {
470 /* first part of matchSet contains only BMP code points */
472 while((c = matchSet[matchBMPLen]) != 0 && U16_IS_SINGLE(c)) {
476 /* second part of matchSet contains BMP and supplementary code points */
478 while(matchSet[matchLen] != 0) {
487 if(c == matchSet[matchItr]) {
493 if(c == matchSet[matchItr]) {
513 U16_NEXT(matchSet, matchItr, matchLen, matchCh);
520 U16_NEXT(matchSet, matchItr, matchLen, matchCh);
536 /* Search for a codepoint in a string that matches one of the matchSet codepoints. */
538 u_strpbrk(const UChar *string, const UChar *matchSet)
540 int32_t idx = _matchFromSet(string, matchSet, TRUE);
548 /* Search for a codepoint in a string that matches one of the matchSet codepoints. */
550 u_strcspn(const UChar *string, const UChar *matchSet)
552 int32_t idx = _matchFromSet(string, matchSet, TRUE);
560 /* Search for a codepoint in a string that does not match one of the matchSet codepoints. */
562 u_strspn(const UChar *string, const UChar *matchSet)
564 int32_t idx = _matchFromSet(string, matchSet, FALSE);