/external/e2fsprogs/intl/ |
plural-exp.c | 1 /* Expression parsing for plural form selection. 28 #include "plural-exp.h" 33 /* These structs are the constant expression for the germanic plural 104 const char *plural; local 107 plural = strstr (nullentry, "plural="); 109 if (plural == NULL || nplurals == NULL) 137 plural += 7; 138 args.cp = plural; 147 for `one', the plural form otherwise. Yes, this is also wha [all...] |
gettextP.h | 125 struct expression *plural; member in struct:loaded_domain
|
/toolchain/binutils/binutils-2.27/intl/ |
plural-exp.c | 1 /* Expression parsing for plural form selection. 28 #include "plural-exp.h" 33 /* These structs are the constant expression for the germanic plural 106 const char *plural; local 109 plural = strstr (nullentry, "plural="); 111 if (plural == NULL || nplurals == NULL) 139 plural += 7; 140 args.cp = plural; 149 for `one', the plural form otherwise. Yes, this is also wha [all...] |
gettextP.h | 133 struct expression *plural; member in struct:loaded_domain
|
/external/icu/icu4c/source/i18n/ |
number_longnames.cpp | 44 StandardPlural::Form plural = StandardPlural::fromString(key, status); variable 46 if (!outArray[plural].isBogus()) { 49 outArray[plural] = value.getUnicodeString(status); 147 // There should always be data in the "other" plural variant.
|
number_patternmodifier.h | 130 * @param plural 131 * The plural form of the number, required only if the pattern contains the triple currency sign, "¤¤¤" 134 void setNumberProperties(bool isNegative, StandardPlural::Form plural); 137 * Returns true if the pattern represented by this MurkyModifier requires a plural keyword in order to localize. 215 StandardPlural::Form plural; member in class:number::impl::MutablePatternModifier
|
number_patternmodifier.cpp | 41 void MutablePatternModifier::setNumberProperties(bool isNegative, StandardPlural::Form plural) { 43 this->plural = plural; 75 // Slower path when we require the plural keyword. 76 for (StandardPlural::Form plural : STANDARD_PLURAL_VALUES) { 77 setNumberProperties(false, plural); 78 pm->adoptSignPluralModifier(false, plural, createConstantModifier(status)); 79 setNumberProperties(true, plural); 80 pm->adoptSignPluralModifier(true, plural, createConstantModifier(status)); 88 // Faster path when plural keyword is not needed 131 StandardPlural::Form plural = copy.getStandardPlural(rules); local [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/ |
CompactData.java | 92 StandardPlural plural = StandardPlural.fromString(pluralEntry.getKey().toString()); local 94 patterns[getIndex(magnitude, plural)] = patternString; 119 public String getPattern(int magnitude, StandardPlural plural) { 126 String patternString = patterns[getIndex(magnitude, plural)]; 127 if (patternString == null && plural != StandardPlural.OTHER) { 128 // Fall back to "other" plural variant 167 // Iterate over the plural variants ("one", "other", etc) 171 // Skip this magnitude/plural if we already have it from a child locale. 173 StandardPlural plural = StandardPlural.fromString(key.toString()); 174 if (data.patterns[getIndex(magnitude, plural)] != null) [all...] |
LongNameHandler.java | 48 StandardPlural plural = StandardPlural.fromString(key); local 49 if (output.containsKey(plural)) { 53 output.put(plural, formatString); 83 StandardPlural plural = StandardPlural.fromString(e.getKey()); local 91 output.put(plural, simpleFormat); 136 for (StandardPlural plural : StandardPlural.VALUES) { 137 String simpleFormat = simpleFormats.get(plural); 142 // There should always be data in the "other" plural variant. 143 throw new ICUException("Could not find data in 'other' plural variant with field " + field); 146 output.put(plural, new SimpleModifier(compiled, null, false)) [all...] |
MutablePatternModifier.java | 52 StandardPlural plural; field in class:MutablePatternModifier 122 * @param plural 123 * The plural form of the number, required only if the pattern contains the triple currency sign, "¤¤¤" 126 public void setNumberProperties(boolean isNegative, StandardPlural plural) { 127 assert (plural != null) == needsPlurals(); 129 this.plural = plural; 133 * Returns true if the pattern represented by this MurkyModifier requires a plural keyword in order to localize. 167 // Slower path when we require the plural keyword. 169 for (StandardPlural plural : StandardPlural.VALUES) 234 StandardPlural plural = copy.getStandardPlural(rules); local [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/number/ |
CompactNotation.java | 122 StandardPlural plural = quantity.getStandardPlural(rules); local 123 String patternString = data.getPattern(magnitude, plural);
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/ |
CompactData.java | 88 StandardPlural plural = StandardPlural.fromString(pluralEntry.getKey().toString()); local 90 patterns[getIndex(magnitude, plural)] = patternString; 115 public String getPattern(int magnitude, StandardPlural plural) { 122 String patternString = patterns[getIndex(magnitude, plural)]; 123 if (patternString == null && plural != StandardPlural.OTHER) { 124 // Fall back to "other" plural variant 163 // Iterate over the plural variants ("one", "other", etc) 167 // Skip this magnitude/plural if we already have it from a child locale. 169 StandardPlural plural = StandardPlural.fromString(key.toString()); 170 if (data.patterns[getIndex(magnitude, plural)] != null) [all...] |
LongNameHandler.java | 44 StandardPlural plural = StandardPlural.fromString(key); local 45 if (output.containsKey(plural)) { 49 output.put(plural, formatString); 79 StandardPlural plural = StandardPlural.fromString(e.getKey()); local 87 output.put(plural, simpleFormat); 132 for (StandardPlural plural : StandardPlural.VALUES) { 133 String simpleFormat = simpleFormats.get(plural); 138 // There should always be data in the "other" plural variant. 139 throw new ICUException("Could not find data in 'other' plural variant with field " + field); 142 output.put(plural, new SimpleModifier(compiled, null, false)) [all...] |
MutablePatternModifier.java | 50 StandardPlural plural; field in class:MutablePatternModifier 120 * @param plural 121 * The plural form of the number, required only if the pattern contains the triple currency sign, "¤¤¤" 124 public void setNumberProperties(boolean isNegative, StandardPlural plural) { 125 assert (plural != null) == needsPlurals(); 127 this.plural = plural; 131 * Returns true if the pattern represented by this MurkyModifier requires a plural keyword in order to localize. 165 // Slower path when we require the plural keyword. 167 for (StandardPlural plural : StandardPlural.VALUES) 232 StandardPlural plural = copy.getStandardPlural(rules); local [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/number/ |
CompactNotation.java | 121 StandardPlural plural = quantity.getStandardPlural(rules); local 122 String patternString = data.getPattern(magnitude, plural);
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
ShadowResourcesImpl.java | 32 import org.robolectric.res.Plural; 89 Plural plural = pluralRules.find(quantity); local 91 if (plural == null) { 96 new TypedResource<>(plural.getString(), ResType.CHAR_SEQUENCE, pluralRules.getXmlContext()), shadowAssetManager.config, resId);
|
ShadowResources.java | 39 import org.robolectric.res.Plural; 116 Plural plural = pluralRules.find(quantity); local 118 if (plural == null) { 123 new TypedResource<>(plural.getString(), ResType.CHAR_SEQUENCE, pluralRules.getXmlContext()),
|
/frameworks/base/tools/aapt2/format/proto/ |
ProtoSerialize_test.cpp | 60 // Make a plural. 61 std::unique_ptr<Plural> plural = util::make_unique<Plural>(); local 62 plural->values[Plural::One] = util::make_unique<String>(table->string_pool.MakeRef("one")); 64 {}, std::move(plural), context->GetDiagnostics()));
|
ProtoDeserialize.cpp | 608 return Plural::Zero; 610 return Plural::One; 612 return Plural::Two; 614 return Plural::Few; 616 return Plural::Many; 620 return Plural::Other; 719 const pb::Plural& pb_plural = pb_compound_value.plural(); 720 std::unique_ptr<Plural> plural = util::make_unique<Plural>() local [all...] |
/frameworks/base/tools/aapt2/format/binary/ |
BinaryResourceParser.cpp | 554 std::unique_ptr<Plural> BinaryResourceParser::ParsePlural(const ResourceNameRef& name, 557 std::unique_ptr<Plural> plural = util::make_unique<Plural>(); local 566 plural->values[Plural::Zero] = std::move(item); 569 plural->values[Plural::One] = std::move(item); 572 plural->values[Plural::Two] = std::move(item) [all...] |
/system/core/libmemunreachable/ |
MemUnreachable.cpp | 268 static inline const char* plural(T val) { function in namespace:android 414 info.leak_bytes, info.num_leaks, plural(info.num_leaks), info.allocation_bytes, 415 info.num_allocations, plural(info.num_allocations)); 429 oss << " in " << referenced_count << " allocation" << plural(referenced_count); 435 oss << " in " << similar_count << " allocation" << plural(similar_count); 439 oss << " in " << similar_referenced_count << " allocation" << plural(similar_referenced_count); 485 oss << num_leaks << " unreachable allocation" << plural(num_leaks);
|
/external/python/cpython3/Lib/test/ |
test_regrtest.py | 383 def plural(count): function in function:BaseTestCase.check_executed_tests 389 regex = line_format % (count, plural(count)) 407 regex = r'%s test%s OK\.$' % (good, plural(good))
|
/cts/tools/dasm/src/java_cup/ |
Main.java | 597 /** Helper routine to optionally return a plural or non-plural ending. 600 protected static String plural(int val) method in class:Main 627 plural(lexer.error_count) + " and " + lexer.warning_count + 628 " warning" + plural(lexer.warning_count)); 632 plural(terminal.number()) + ", "); 634 plural(non_terminal.number()) + ", and "); 636 plural(production.number()) + " declared, "); 642 plural(emit.unused_term) + " declared but not used."); 644 plural(emit.unused_term) + " declared but not used.") [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
ICUCurrencyDisplayInfoProvider.java | 92 * array[1+p] is the plural name where p=standardPlural.ordinal(). 186 StandardPlural plural = StandardPlural.orNullFromString(pluralKey); local 191 if (plural != null) { 192 result = pluralsData[1 + plural.ordinal()]; 195 // First fall back to the "other" plural variant 196 // Note: If plural is already "other", this fallback is benign 523 StandardPlural plural = StandardPlural.orNullFromString(key.toString()); local 524 if (plural == null) { 537 StandardPlural plural = StandardPlural.orNullFromString(key.toString()); local 538 if (plural == null) [all...] |
/external/icu/icu4j/main/classes/currdata/src/com/ibm/icu/impl/ |
ICUCurrencyDisplayInfoProvider.java | 88 * array[1+p] is the plural name where p=standardPlural.ordinal(). 182 StandardPlural plural = StandardPlural.orNullFromString(pluralKey); local 187 if (plural != null) { 188 result = pluralsData[1 + plural.ordinal()]; 191 // First fall back to the "other" plural variant 192 // Note: If plural is already "other", this fallback is benign 519 StandardPlural plural = StandardPlural.orNullFromString(key.toString()); local 520 if (plural == null) { 533 StandardPlural plural = StandardPlural.orNullFromString(key.toString()); local 534 if (plural == null) [all...] |