/external/icu/android_icu4j/src/main/java/android/icu/impl/number/ |
ParameterizedModifier.java | 23 * If this constructor is used, a plural form CANNOT be passed to {@link #getModifier}. 34 * multiple plural forms. 37 * If this constructor is used, a plural form MUST be passed to {@link #getModifier}. 46 public void setModifier(boolean isNegative, StandardPlural plural, Modifier mod) { 48 mods[getModIndex(isNegative, plural)] = mod; 61 public Modifier getModifier(boolean isNegative, StandardPlural plural) { 64 return mods[getModIndex(isNegative, plural)]; 67 private static int getModIndex(boolean isNegative, StandardPlural plural) { 68 return plural.ordinal() * 2 + (isNegative ? 1 : 0);
|
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...] |
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...] |
/external/e2fsprogs/lib/support/ |
nls-enable.h | 10 #define P_(singular, plural, n) (ngettext (singular, plural, n)) 20 #define P_(singular, plural, n) ((n) == 1 ? (singular) : (plural))
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/ |
ParameterizedModifier.java | 21 * If this constructor is used, a plural form CANNOT be passed to {@link #getModifier}. 32 * multiple plural forms. 35 * If this constructor is used, a plural form MUST be passed to {@link #getModifier}. 44 public void setModifier(boolean isNegative, StandardPlural plural, Modifier mod) { 46 mods[getModIndex(isNegative, plural)] = mod; 59 public Modifier getModifier(boolean isNegative, StandardPlural plural) { 62 return mods[getModIndex(isNegative, plural)]; 65 private static int getModIndex(boolean isNegative, StandardPlural plural) { 66 return plural.ordinal() * 2 + (isNegative ? 1 : 0);
|
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...] |
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...] |
/prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/lib/gcc/x86_64-w64-mingw32/4.8.3/plugin/include/ |
intl.h | 41 # define ngettext(singular,plural,n) fake_ngettext(singular,plural,n) 45 extern const char *fake_ngettext(const char *singular,const char *plural,
|
/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...] |
log.c | 54 const char *msgid1, const char *msgid2, int plural) 89 if (plural)
|
/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...] |
log.c | 55 _nl_log_untranslated (logfilename, domainname, msgid1, msgid2, plural) 60 int plural; 95 if (plural)
|
/external/icu/icu4c/source/i18n/ |
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...] |
number_compact.cpp | 36 int32_t getIndex(int32_t magnitude, StandardPlural::Form plural) { 37 return magnitude * StandardPlural::COUNT + plural; 106 const UChar *CompactData::getPattern(int32_t magnitude, StandardPlural::Form plural) const { 113 const UChar *patternString = patterns[getIndex(magnitude, plural)]; 114 if (patternString == nullptr && plural != StandardPlural::OTHER) { 115 // Fall back to "other" plural variant 164 // Iterate over the plural variants ("one", "other", etc) 169 // Skip this magnitude/plural if we already have it from a child locale. 171 StandardPlural::Form plural = StandardPlural::fromString(key, status); 173 if (data.patterns[getIndex(magnitude, plural)] != nullptr) [all...] |
number_modifiers.h | 225 void adoptSignPluralModifier(bool isNegative, StandardPlural::Form plural, const Modifier *mod) { 226 mods[getModIndex(isNegative, plural)] = mod; 235 const Modifier *getModifier(bool isNegative, StandardPlural::Form plural) const { 236 return mods[getModIndex(isNegative, plural)]; 242 inline static int32_t getModIndex(bool isNegative, StandardPlural::Form plural) { 243 return static_cast<int32_t>(plural) * 2 + (isNegative ? 1 : 0);
|
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
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/ |
gettext.py | 35 # J. David Ibanez implemented plural forms. Bruno Haible fixed some bugs.
69 Required to correctly interpret plural forms.
77 def c2py(plural):
78 """Gets a C expression as used in PO files for plural forms and returns a
87 tokens = tokenize.generate_tokens(StringIO(plural).readline)
92 'plural forms expression error, maybe unbalanced parenthesis'
95 raise ValueError, 'plural forms expression could be dangerous'
98 plural = plural.replace('&&', ' and ')
99 plural = plural.replace('||', ' or ') [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/ |
gettext.py | 35 # J. David Ibanez implemented plural forms. Bruno Haible fixed some bugs.
67 Required to correctly interpret plural forms.
75 def c2py(plural):
76 """Gets a C expression as used in PO files for plural forms and returns a
85 tokens = tokenize.generate_tokens(StringIO(plural).readline)
90 'plural forms expression error, maybe unbalanced parenthesis'
93 raise ValueError, 'plural forms expression could be dangerous'
96 plural = plural.replace('&&', ' and ')
97 plural = plural.replace('||', ' or ') [all...] |
/prebuilts/gdb/darwin-x86/lib/python2.7/ |
gettext.py | 35 # J. David Ibanez implemented plural forms. Bruno Haible fixed some bugs. 67 Required to correctly interpret plural forms. 75 def c2py(plural): 76 """Gets a C expression as used in PO files for plural forms and returns a 85 tokens = tokenize.generate_tokens(StringIO(plural).readline) 90 'plural forms expression error, maybe unbalanced parenthesis' 93 raise ValueError, 'plural forms expression could be dangerous' 96 plural = plural.replace('&&', ' and ') 97 plural = plural.replace('||', ' or ' [all...] |
/prebuilts/gdb/linux-x86/lib/python2.7/ |
gettext.py | 35 # J. David Ibanez implemented plural forms. Bruno Haible fixed some bugs. 67 Required to correctly interpret plural forms. 75 def c2py(plural): 76 """Gets a C expression as used in PO files for plural forms and returns a 85 tokens = tokenize.generate_tokens(StringIO(plural).readline) 90 'plural forms expression error, maybe unbalanced parenthesis' 93 raise ValueError, 'plural forms expression could be dangerous' 96 plural = plural.replace('&&', ' and ') 97 plural = plural.replace('||', ' or ' [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ |
gettext.py | 35 # J. David Ibanez implemented plural forms. Bruno Haible fixed some bugs. 67 Required to correctly interpret plural forms. 75 def c2py(plural): 76 """Gets a C expression as used in PO files for plural forms and returns a 85 tokens = tokenize.generate_tokens(StringIO(plural).readline) 90 'plural forms expression error, maybe unbalanced parenthesis' 93 raise ValueError, 'plural forms expression could be dangerous' 96 plural = plural.replace('&&', ' and ') 97 plural = plural.replace('||', ' or ' [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ |
gettext.py | 35 # J. David Ibanez implemented plural forms. Bruno Haible fixed some bugs. 67 Required to correctly interpret plural forms. 75 def c2py(plural): 76 """Gets a C expression as used in PO files for plural forms and returns a 85 tokens = tokenize.generate_tokens(StringIO(plural).readline) 90 'plural forms expression error, maybe unbalanced parenthesis' 93 raise ValueError, 'plural forms expression could be dangerous' 96 plural = plural.replace('&&', ' and ') 97 plural = plural.replace('||', ' or ' [all...] |
/external/python/cpython2/Lib/ |
gettext.py | 35 # J. David Ibanez implemented plural forms. Bruno Haible fixed some bugs. 62 # Expression parsing for plural form selection. 68 # https://www.gnu.org/software/gettext/manual/gettext.html#Plural-forms 69 # http://git.savannah.gnu.org/cgit/gettext.git/tree/gettext-runtime/intl/plural.y 84 def _tokenize(plural): 85 for mo in re.finditer(_token_pattern, plural): 91 raise ValueError('invalid token in plural form: %s' % value) 97 return ValueError('unexpected token in plural form: %s' % value) 99 return ValueError('unexpected end of plural form') 123 raise ValueError('unbalanced parenthesis in plural form' [all...] |