Searched refs:newRules (Results 1 – 6 of 6) sorted by relevance
/external/icu4c/test/intltest/ |
D | plurults.cpp | 139 PluralRules *newRules = test->createRules(pluralTestData[i], status); in testAPI() local 141 if ( !checkEqual(newRules, result, max) ) { in testAPI() 146 if (newRules!=NULL) { in testAPI() 147 delete newRules; in testAPI() 173 PluralRules *newRules = test->createRules(complexRule, status); in testAPI() local 174 if ( !checkEqual(newRules, cRuleResult, 12) ) { in testAPI() 179 if (newRules!=NULL) { in testAPI() 180 delete newRules; in testAPI() 181 newRules=NULL; in testAPI() 183 newRules = test->createRules(complexRule2, status); in testAPI() [all …]
|
D | g7coll.cpp | 169 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 …]
|
D | mnkytst.cpp | 222 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/icu4c/i18n/ |
D | plurrule.cpp | 116 PluralRules *newRules = new PluralRules(status); in createRules() local 117 if ( (newRules != NULL)&& U_SUCCESS(status) ) { in createRules() 118 newRules->parseDescription((UnicodeString &)description, rules, status); in createRules() 120 newRules->addRules(rules); in createRules() 124 delete newRules; in createRules() 128 return newRules; in createRules()
|
D | ucol_res.cpp | 471 UChar *newRules; in ucol_openRulesForImport() local 474 newRules = (UChar *)uprv_malloc((rulesLength+1)*U_SIZEOF_UCHAR); in ucol_openRulesForImport() 476 if (newRules == NULL) { in ucol_openRulesForImport() 480 uprv_memcpy(newRules, rules, rulesLength*U_SIZEOF_UCHAR); in ucol_openRulesForImport() 481 newRules[rulesLength]=0; in ucol_openRulesForImport() 482 result->rules = newRules; in ucol_openRulesForImport()
|
D | ucol_tok.cpp | 2275 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()
|