Lines Matching defs:length
38 * Helper method to return the length of the given AffixPatternMatcher. Returns 0 for null.
40 static int32_t length(const AffixPatternMatcher* matcher) {
41 return matcher == nullptr ? 0 : matcher->getPattern().length();
445 if (length(lhs.fPrefix) != length(rhs.fPrefix)) {
446 return length(lhs.fPrefix) > length(rhs.fPrefix) ? -1 : 1;
447 } else if (length(lhs.fSuffix) != length(rhs.fSuffix)) {
448 return length(lhs.fSuffix) > length(rhs.fSuffix) ? -1 : 1;