Home
last modified time | relevance | path

Searched refs:rules (Results 101 - 125 of 612) sorted by relevance

12345678910>>...25

/third_party/node/deps/icu-small/source/i18n/
H A Dquantityformatter.h100 * @param rules computes the plural variant to use.
108 const PluralRules &rules,
114 * Selects the standard plural form for the number/formatter/rules.
120 const PluralRules &rules,
131 * @param rules The rules to use to select the plural form of the
141 const PluralRules& rules,
H A Drbt.cpp32 void RuleBasedTransliterator::_construct(const UnicodeString& rules, in _construct() argument
43 parser.parse(rules, direction, parseError, status); in _construct()
60 * Constructs a new transliterator from the given rules.
62 * @param rules rules, separated by ';'
68 * @exception IllegalArgumentException if rules are malformed
73 const UnicodeString& rules, in RuleBasedTransliterator()
79 _construct(rules, direction,parseError,status); in RuleBasedTransliterator()
83 * Constructs a new transliterator from the given rules.
85 * @param rules rule
71 RuleBasedTransliterator( const UnicodeString& id, const UnicodeString& rules, UTransDirection direction, UnicodeFilter* adoptedFilter, UParseError& parseError, UErrorCode& status) RuleBasedTransliterator() argument
[all...]
H A Dnumber_compact.h33 const PluralRules *rules,
67 const PluralRules *rules,
79 const PluralRules *rules; member in number::impl::CompactHandler
/third_party/skia/third_party/externals/icu/source/i18n/
H A Dquantityformatter.h100 * @param rules computes the plural variant to use.
108 const PluralRules &rules,
114 * Selects the standard plural form for the number/formatter/rules.
120 const PluralRules &rules,
131 * @param rules The rules to use to select the plural form of the
141 const PluralRules& rules,
H A Drbt.cpp32 void RuleBasedTransliterator::_construct(const UnicodeString& rules, in _construct() argument
43 parser.parse(rules, direction, parseError, status); in _construct()
60 * Constructs a new transliterator from the given rules.
62 * @param rules rules, separated by ';'
68 * @exception IllegalArgumentException if rules are malformed
73 const UnicodeString& rules, in RuleBasedTransliterator()
79 _construct(rules, direction,parseError,status); in RuleBasedTransliterator()
83 * Constructs a new transliterator from the given rules.
85 * @param rules rule
71 RuleBasedTransliterator( const UnicodeString& id, const UnicodeString& rules, UTransDirection direction, UnicodeFilter* adoptedFilter, UParseError& parseError, UErrorCode& status) RuleBasedTransliterator() argument
[all...]
H A Dnumber_patternmodifier.cpp39 const PluralRules* rules, in setSymbols()
41 U_ASSERT((rules != nullptr) == needsPlurals()); in setSymbols()
45 fRules = rules; in setSymbols()
123 ImmutablePatternModifier::ImmutablePatternModifier(AdoptingModifierStore* pm, const PluralRules* rules) in ImmutablePatternModifier() argument
124 : pm(pm), rules(rules), parent(nullptr) {} in ImmutablePatternModifier()
138 if (rules == nullptr) { in applyToMicros()
141 StandardPlural::Form pluralForm = utils::getPluralSafe(micros.rounder, rules, quantity, status); in applyToMicros()
147 if (rules == nullptr) { in getModifier()
36 setSymbols(const DecimalFormatSymbols* symbols, const CurrencyUnit& currency, const UNumberUnitWidth unitWidth, const PluralRules* rules, UErrorCode& status) setSymbols() argument
H A Ducol.cpp550 const UnicodeString &rules = rbc->getRules(); in ucol_getRules() local
551 U_ASSERT(rules.getBuffer()[rules.length()] == 0); in ucol_getRules()
552 *length = rules.length(); in ucol_getRules()
553 return rules.getBuffer(); in ucol_getRules()
562 UnicodeString rules; in ucol_getRulesEx() local
565 rbc->getRules(delta, rules); in ucol_getRulesEx()
569 return rules.extract(buffer, bufferLen, errorCode); in ucol_getRulesEx()
571 return rules.length(); in ucol_getRulesEx()
H A Dnumber_compact.h33 const PluralRules *rules,
67 const PluralRules *rules,
79 const PluralRules *rules; member in number::impl::CompactHandler
/third_party/python/Lib/test/test_peg_generator/
H A Dtest_grammar_validator.py22 for rule_name, rule in grammar.rules.items():
35 for rule_name, rule in grammar.rules.items():
50 for rule_name, rule in grammar.rules.items():
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
H A DPluralRules.java43 * Defines rules for mapping non-negative numeric values onto a small set of keywords.
56 * For more information, details, and tips for writing rules, see the <a
68 * This defines two rules, for 'one' and 'few'. The condition for 'one' is "n is 1" which means that the number must be
96 * rules = rule (';' rule)*
186 private final RuleList rules; field in PluralRules
191 * Provides a factory for returning plural rules
211 * ICU defines plural rules for many locales based on CLDR <i>Language Plural Rules</i>. For these predefined
212 * rules, see CLDR page at
219 * @return The predefined <code>PluralRules</code> object for this locale. If there's no predefined rules for
220 * this locale, the rules fo
1927 private final List<Rule> rules = new ArrayList<>(); global() field in PluralRules.RuleList
2168 PluralRules(RuleList rules, StandardPluralRanges standardPluralRanges) PluralRules() argument
[all...]
H A DStringPrepParseException.java95 * @param rules The input rules string
96 * @param pos The position of error in the rules string
99 public StringPrepParseException(String message,int error, String rules, int pos){ in StringPrepParseException() argument
102 setContext(rules,pos); in StringPrepParseException()
110 * @param rules The input rules string
111 * @param pos The position of error in the rules string
119 public StringPrepParseException(String message, int error, String rules, int pos, int lineNumber){ in StringPrepParseException() argument
122 setContext(rules,po in StringPrepParseException()
[all...]
/third_party/python/Tools/peg_generator/pegen/
H A Dgrammar_parser.py59 # grammar: metas rules | rules
64 (rules := self.rules())
66 return Grammar ( rules , metas )
69 (rules := self.rules())
71 return Grammar ( rules , [] )
131 def rules(self) -> Optional[RuleList]: member in GeneratedParser
132 # rules
[all...]
/third_party/eudev/src/udev/
H A Dudevadm-test.c51 _cleanup_udev_rules_unref_ struct udev_rules *rules = NULL; in adm_test() local
109 rules = udev_rules_new(udev, resolve_names); in adm_test()
110 if (rules == NULL) { in adm_test()
111 fprintf(stderr, "error reading rules\n"); in adm_test()
147 rules, in adm_test()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/
H A DStringPrepParseException.java82 * @param rules The input rules string
83 * @param pos The position of error in the rules string
85 public StringPrepParseException(String message,int error, String rules, int pos){ in StringPrepParseException() argument
88 setContext(rules,pos); in StringPrepParseException()
96 * @param rules The input rules string
97 * @param pos The position of error in the rules string
104 public StringPrepParseException(String message, int error, String rules, int pos, int lineNumber){ in StringPrepParseException() argument
107 setContext(rules,po in StringPrepParseException()
[all...]
/third_party/icu/icu4c/source/i18n/
H A Drbt.cpp32 void RuleBasedTransliterator::_construct(const UnicodeString& rules, in _construct() argument
43 parser.parse(rules, direction, parseError, status); in _construct()
60 * Constructs a new transliterator from the given rules.
62 * @param rules rules, separated by ';'
68 * @exception IllegalArgumentException if rules are malformed
73 const UnicodeString& rules, in RuleBasedTransliterator()
79 _construct(rules, direction,parseError,status); in RuleBasedTransliterator()
83 * Constructs a new transliterator from the given rules.
85 * @param rules rule
71 RuleBasedTransliterator( const UnicodeString& id, const UnicodeString& rules, UTransDirection direction, UnicodeFilter* adoptedFilter, UParseError& parseError, UErrorCode& status) RuleBasedTransliterator() argument
[all...]
H A Dnumber_patternmodifier.cpp43 const PluralRules* rules, in setSymbols()
45 U_ASSERT((rules != nullptr) == needsPlurals()); in setSymbols()
49 fRules = rules; in setSymbols()
127 ImmutablePatternModifier::ImmutablePatternModifier(AdoptingModifierStore* pm, const PluralRules* rules) in ImmutablePatternModifier() argument
128 : pm(pm), rules(rules), parent(nullptr) {} in ImmutablePatternModifier()
142 if (rules == nullptr) { in applyToMicros()
145 StandardPlural::Form pluralForm = utils::getPluralSafe(micros.rounder, rules, quantity, status); in applyToMicros()
151 if (rules == nullptr) { in getModifier()
40 setSymbols(const DecimalFormatSymbols* symbols, const CurrencyUnit& currency, const UNumberUnitWidth unitWidth, const PluralRules* rules, UErrorCode& status) setSymbols() argument
H A Dnumber_compact.h33 const PluralRules *rules,
67 const PluralRules *rules,
79 const PluralRules *rules; member in number::impl::CompactHandler
/third_party/skia/buildtools/checkdeps/
H A Dresults.py15 def __init__(self, include_path, violated_rule, rules):
22 # The set of rules containing self.violated_rule.
23 self.rules = rules
43 """Returns True if this dependee is violating one or more rules."""
88 lines.append(' For %s' % violation.rules)
142 DEPS file as a list of temporary-allow rules.
162 statements that are in violation of the dependency rules.
/third_party/icu/tools/cldr/cldr-to-icu/src/main/java/org/unicode/icu/tool/cldrtoicu/localedistance/
H A DLocaleDistanceMapper.java185 // If there are rules that do not fit these constraints, we need to revise the implementation. in LsrSpec()
243 // If there are rules that do not fit these constraints, we need to revise the implementation. in LanguageMatchRule()
340 // Parse the rules from <languageMatch> elements. Note that the <languageMatch> in buildDistanceData()
349 // We could almost process the rules while reading them from the source data, but in buildDistanceData()
350 // rules may contain region codes rather than variables, and we need to create a in buildDistanceData()
352 // before processing the rules (this happens when the LsrSpec is parsed). in buildDistanceData()
353 List<LanguageMatchRule> rules = new ArrayList<>(); in buildDistanceData()
364 rules.add(rule); in buildDistanceData()
367 // Check that the rules are in the expected order. Rule order is important in ensuring in buildDistanceData()
370 for (int n = 0, prevSize = 1; n < rules in buildDistanceData()
[all...]
/foundation/communication/netmanager_base/test/netconnmanager/unittest/net_conn_add_test/
H A Dnetfirewall_rule_native_helper_test.cpp54 std::vector<sptr<NetFirewallBaseRule>> rules; in HWTEST_F() local
73 rules.emplace_back(rule); in HWTEST_F()
76 NetFirewallRuleNativeHelper::GetInstance().SetFirewallRulesInner(NetFirewallRuleType::RULE_IP, rules, true); in HWTEST_F()
/foundation/communication/netmanager_ext/test/netfirewallmanager/unittest/netfirewallmanager_test/
H A Dnetfirewall_rule_native_helper_test.cpp57 std::vector<sptr<NetFirewallBaseRule>> rules; in HWTEST_F() local
76 rules.emplace_back(rule); in HWTEST_F()
79 NetFirewallRuleNativeHelper::GetInstance().SetFirewallRulesInner(NetFirewallRuleType::RULE_IP, rules, true); in HWTEST_F()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
H A DLongNameMultiplexer.java49 PluralRules rules, in forMeasureUnits()
64 .forMeasureUnit(locale, unit, width, unitDisplayCase, rules, null); in forMeasureUnits()
67 LongNameHandler lnh = LongNameHandler.forMeasureUnit(locale, unit, width, unitDisplayCase, rules, null); in forMeasureUnits()
45 forMeasureUnits(ULocale locale, List<MeasureUnit> units, NumberFormatter.UnitWidth width, String unitDisplayCase, PluralRules rules, MicroPropsGenerator parent) forMeasureUnits() argument
/third_party/icu/icu4c/source/test/intltest/
H A Ditrbnfp.cpp60 // these rules make no sense but behave rationally in TestParse()
104 // these rules would throw exceptions when formatting, if we could throw exceptions in TestParse()
113 // none of these rules should crash the formatter in TestParse()
121 const char** rules = allrules[j]; in TestParse() local
122 for (int i = 0; rules[i]; ++i) { in TestParse()
123 const char* rule = rules[i]; in TestParse()
/third_party/node/tools/
H A Dmkssldef.py36 def satisfy(expr, rules):
38 if expr.startswith('!'): return not expr[1:] in rules
39 return expr == '' or expr in rules
/third_party/skia/docs/examples/
H A Dl_system_plant.cpp13 rules_t rules[6] = { in REG_FIDDLE_ANIMATED() local
27 if (rules[i].c == s[0]) { in REG_FIDDLE_ANIMATED()
28 return rules[i].s + E(s.substr(1)); in REG_FIDDLE_ANIMATED()

Completed in 13 milliseconds

12345678910>>...25