Home
last modified time | relevance | path

Searched refs:newRules (Results 1 – 7 of 7) sorted by relevance

/external/icu4c/test/intltest/
Dg7coll.cpp169 UnicodeString newRules(" & Z < p, P"); in TestDemo1() local
170 newRules.insert(0, baseRules); in TestDemo1()
171 RuleBasedCollator *myCollation = new RuleBasedCollator(newRules, status); in TestDemo1()
203 UnicodeString newRules("& C < ch , cH, Ch, CH"); in TestDemo2() local
204 newRules.insert(0, baseRules); in TestDemo2()
205 RuleBasedCollator *myCollation = new RuleBasedCollator(newRules, status); in TestDemo2()
237 UnicodeString newRules = "& Question'-'mark ; '?' & Hash'-'mark ; '#' & Ampersand ; '&'"; in TestDemo3() local
238 newRules.insert(0, baseRules); in TestDemo3()
239 RuleBasedCollator *myCollation = new RuleBasedCollator(newRules, status); in TestDemo3()
272 UnicodeString newRules = " & aa ; a'-' & ee ; e'-' & ii ; i'-' & oo ; o'-' & uu ; u'-' "; in TestDemo4() local
[all …]
Dplurults.cpp148 PluralRules *newRules = test->createRules(pluralTestData[i], status); in testAPI() local
150 if ( !checkEqual(newRules, result, max) ) { in testAPI()
155 if (newRules!=NULL) { in testAPI()
156 delete newRules; in testAPI()
182 PluralRules *newRules = test->createRules(complexRule, status); in testAPI() local
183 if ( !checkEqual(newRules, cRuleResult, 12) ) { in testAPI()
188 if (newRules!=NULL) { in testAPI()
189 delete newRules; in testAPI()
190 newRules=NULL; in testAPI()
192 newRules = test->createRules(complexRule2, status); in testAPI()
[all …]
Dmnkytst.cpp222 UnicodeString newRules(" & z < "); in TestRules() local
223 newRules.append((UChar)0x00e4); in TestRules()
224 newRules.insert(0, baseRules); in TestRules()
225 RuleBasedCollator *myCollation = new RuleBasedCollator(newRules, status); in TestRules()
236 newRules.remove(); in TestRules()
237 newRules.append(" & z < a"); in TestRules()
238 newRules.append((UChar)0x0308); in TestRules()
239 newRules.insert(0, baseRules); in TestRules()
240 myCollation = new RuleBasedCollator(newRules, status); in TestRules()
/external/antlr/antlr-3.4/gunit/src/main/java/org/antlr/gunit/swingui/model/
DTestSuite.java71 public void setRules(List<Rule> newRules) { in setRules() argument
73 rules.addAll(newRules); in setRules()
/external/icu4c/i18n/
Dplurrule.cpp126 PluralRules *newRules = new PluralRules(status); in createRules() local
127 if ( (newRules != NULL)&& U_SUCCESS(status) ) { in createRules()
128 newRules->parseDescription((UnicodeString &)description, rules, status); in createRules()
130 newRules->addRules(rules); in createRules()
134 delete newRules; in createRules()
138 return newRules; in createRules()
Ducol_res.cpp485 UChar *newRules; in ucol_openRulesForImport() local
488 newRules = (UChar *)uprv_malloc((rulesLength+1)*U_SIZEOF_UCHAR); in ucol_openRulesForImport()
490 if (newRules == NULL) { in ucol_openRulesForImport()
494 uprv_memcpy(newRules, rules, rulesLength*U_SIZEOF_UCHAR); in ucol_openRulesForImport()
495 newRules[rulesLength]=0; in ucol_openRulesForImport()
496 result->rules = newRules; in ucol_openRulesForImport()
Ducol_tok.cpp2275 UChar* newRules = (UChar*)uprv_malloc(newRulesLength*sizeof(UChar)); in ucol_tok_initTokenList() local
2285 uprv_memcpy(newRules, rules, i*sizeof(UChar)); in ucol_tok_initTokenList()
2287 uprv_memcpy(newRules+i, importRules, importRulesLength*sizeof(UChar)); in ucol_tok_initTokenList()
2289 uprv_memcpy(newRules+i+importRulesLength, in ucol_tok_initTokenList()
2295 UnicodeString(newRules).toUTF8String(s2); in ucol_tok_initTokenList()
2304 rules = newRules; in ucol_tok_initTokenList()