Lines Matching refs:patternString
41 int32_t countZeros(const UChar *patternString, int32_t patternLength) { in countZeros() argument
46 if (patternString[i] == u'0') { in countZeros()
117 const UChar *patternString = nullptr; in getPattern() local
121 patternString = patterns[getIndex(magnitude, StandardPlural::Form::EQ_0)]; in getPattern()
123 patternString = patterns[getIndex(magnitude, StandardPlural::Form::EQ_1)]; in getPattern()
125 if (patternString != nullptr) { in getPattern()
126 return patternString; in getPattern()
130 patternString = patterns[getIndex(magnitude, plural)]; in getPattern()
131 if (patternString == nullptr && plural != StandardPlural::OTHER) { in getPattern()
133 patternString = patterns[getIndex(magnitude, StandardPlural::OTHER)]; in getPattern()
135 if (patternString == USE_FALLBACK) { // == is intended in getPattern()
137 patternString = nullptr; in getPattern()
139 return patternString; in getPattern()
196 const UChar *patternString = value.getString(patternLength, status); in put() local
198 if (u_strcmp(patternString, u"0") == 0) { in put()
199 patternString = USE_FALLBACK; in put()
204 data.patterns[getIndex(magnitude, plural)] = patternString; in put()
209 int32_t numZeros = countZeros(patternString, patternLength); in put()
278 auto patternString = static_cast<const UChar *>(allPatterns[i]); in precomputeAllModifiers() local
279 UnicodeString hello(patternString); in precomputeAllModifiers()
282 PatternParser::parseToPatternInfo(UnicodeString(patternString), patternInfo, status); in precomputeAllModifiers()
287 info.patternString = patternString; in precomputeAllModifiers()
309 const UChar *patternString = data.getPattern(magnitude, rules, quantity); in processQuantity() local
310 if (patternString == nullptr) { in processQuantity()
320 if (u_strcmp(patternString, info.patternString) == 0) { in processQuantity()
332 PatternParser::parseToPatternInfo(UnicodeString(patternString), patternInfo, status); in processQuantity()