Lines Matching defs:prefix
315 AffixPatternMatcher* prefix = hasPrefix ? &fAffixPatternMatchers[numAffixPatternMatchers++]
329 posPrefix = prefix;
331 } else if (equals(prefix, posPrefix) && equals(suffix, posSuffix)) {
341 fAffixMatchers[numAffixMatchers++] = {prefix, suffix, flags};
342 if (includeUnpaired && prefix != nullptr && suffix != nullptr) {
344 if (type == PATTERN_SIGN_TYPE_POS || !equals(prefix, posPrefix)) {
345 fAffixMatchers[numAffixMatchers++] = {prefix, nullptr, flags};
376 AffixMatcher::AffixMatcher(AffixPatternMatcher* prefix, AffixPatternMatcher* suffix, result_flags_t flags)
377 : fPrefix(prefix), fSuffix(suffix), fFlags(flags) {}
383 // 1. We have already seen a prefix (result.prefix != null)
384 // 2. The prefix in this AffixMatcher is empty (prefix == null)
385 if (!result.prefix.isBogus() || fPrefix == nullptr) {
389 // Attempt to match the prefix.
393 result.prefix = fPrefix->getPattern();
402 // 3. The matched prefix does not equal this AffixMatcher's prefix
403 if (!result.suffix.isBogus() || fSuffix == nullptr || !matched(fPrefix, result.prefix)) {
424 if (matched(fPrefix, result.prefix) && matched(fSuffix, result.suffix)) {
425 // Fill in the result prefix and suffix with non-null values (empty string).
427 if (result.prefix.isBogus()) {
428 result.prefix = UnicodeString();