Lines Matching defs:rbc
2378 RuleBasedCollator *rbc = dynamic_cast<RuleBasedCollator *>(coll.getAlias());
2379 if(rbRoot == NULL || rbc == NULL) {
2383 rbc->setAttribute(UCOL_STRENGTH, UCOL_PRIMARY, errorCode);
2386 assertEquals("rbc/primary: u-umlaut==ue", (int32_t)UCOL_EQUAL, rbc->compare(uUmlaut, ue, errorCode));
2388 int32_t binLength = rbc->cloneBinary(bin, UPRV_LENGTHOF(bin), errorCode);
2389 if(errorCode.errDataIfFailureAndReset("rbc->cloneBinary()")) {
2392 logln("rbc->cloneBinary() -> %d bytes", (int)binLength);
2395 if(errorCode.errDataIfFailureAndReset("RuleBasedCollator(rbc binary)")) {
2400 assertTrue("rbc==rbc2", *rbc == rbc2);
2403 assertEquals("len(rbc binary)==len(rbc2 binary)", binLength, bin2Length);
2404 assertTrue("rbc binary==rbc2 binary", binLength == bin2Length && memcmp(bin, bin2, binLength) == 0);
2407 if(errorCode.errDataIfFailureAndReset("RuleBasedCollator(rbc binary, length<0)")) {
2412 assertTrue("rbc==rbc3", *rbc == rbc3);