Home | History | Annotate | Download | only in common

Lines Matching refs:matchSet

458  * Match each code point in a string against each code point in the matchSet.
460 * is (polarity==TRUE) or is not (FALSE) contained in the matchSet.
464 _matchFromSet(const UChar *string, const UChar *matchSet, UBool polarity) {
469 /* first part of matchSet contains only BMP code points */
471 while((c = matchSet[matchBMPLen]) != 0 && U16_IS_SINGLE(c)) {
475 /* second part of matchSet contains BMP and supplementary code points */
477 while(matchSet[matchLen] != 0) {
486 if(c == matchSet[matchItr]) {
492 if(c == matchSet[matchItr]) {
512 U16_NEXT(matchSet, matchItr, matchLen, matchCh);
519 U16_NEXT(matchSet, matchItr, matchLen, matchCh);
535 /* Search for a codepoint in a string that matches one of the matchSet codepoints. */
537 u_strpbrk(const UChar *string, const UChar *matchSet)
539 int32_t idx = _matchFromSet(string, matchSet, TRUE);
547 /* Search for a codepoint in a string that matches one of the matchSet codepoints. */
549 u_strcspn(const UChar *string, const UChar *matchSet)
551 int32_t idx = _matchFromSet(string, matchSet, TRUE);
559 /* Search for a codepoint in a string that does not match one of the matchSet codepoints. */
561 u_strspn(const UChar *string, const UChar *matchSet)
563 int32_t idx = _matchFromSet(string, matchSet, FALSE);