Lines Matching refs:errorCode
87 CollationFastLatinBuilder::CollationFastLatinBuilder(UErrorCode &errorCode)
89 contractionCEs(errorCode), uniqueCEs(errorCode),
101 CollationFastLatinBuilder::forData(const CollationData &data, UErrorCode &errorCode) {
102 if(U_FAILURE(errorCode)) { return FALSE; }
104 errorCode = U_INVALID_STATE_ERROR;
107 if(!loadGroups(data, errorCode)) { return FALSE; }
111 getCEs(data, errorCode);
112 if(!encodeUniqueCEs(errorCode)) { return FALSE; }
118 getCEs(data, errorCode);
119 if(!encodeUniqueCEs(errorCode)) { return FALSE; }
130 encodeCharCEs(errorCode) && encodeContractions(errorCode);
137 CollationFastLatinBuilder::loadGroups(const CollationData &data, UErrorCode &errorCode) {
138 if(U_FAILURE(errorCode)) { return FALSE; }
203 CollationFastLatinBuilder::getCEs(const CollationData &data, UErrorCode &errorCode) {
204 if(U_FAILURE(errorCode)) { return; }
220 if(getCEsFromCE32(*d, c, ce32, errorCode)) {
223 addUniqueCE(ce0, errorCode);
224 addUniqueCE(ce1, errorCode);
234 addContractionEntry(CollationFastLatin::CONTR_CHAR_MASK, ce0, ce1, errorCode);
240 contractionCEs.addElement(CollationFastLatin::CONTR_CHAR_MASK, errorCode);
245 UErrorCode &errorCode) {
246 if(U_FAILURE(errorCode)) { return FALSE; }
290 return getCEsFromContractionCE32(data, ce32, errorCode);
341 UErrorCode &errorCode) {
342 if(U_FAILURE(errorCode)) { return FALSE; }
349 if(getCEsFromCE32(data, U_SENTINEL, ce32, errorCode)) {
350 addContractionEntry(CollationFastLatin::CONTR_CHAR_MASK, ce0, ce1, errorCode);
353 addContractionEntry(CollationFastLatin::CONTR_CHAR_MASK, Collation::NO_CE, 0, errorCode);
359 UCharsTrie::Iterator suffixes(p + 2, 0, errorCode);
360 while(suffixes.next(errorCode)) {
367 addContractionEntry(x, Collation::NO_CE, 0, errorCode);
373 addContractionEntry(prevX, ce0, ce1, errorCode);
376 if(suffix.length() == 1 && getCEsFromCE32(data, U_SENTINEL, ce32, errorCode)) {
379 addContractionEntry(x, Collation::NO_CE, 0, errorCode);
385 addContractionEntry(prevX, ce0, ce1, errorCode);
387 if(U_FAILURE(errorCode)) { return FALSE; }
400 UErrorCode &errorCode) {
401 contractionCEs.addElement(x, errorCode);
402 contractionCEs.addElement(cce0, errorCode);
403 contractionCEs.addElement(cce1, errorCode);
404 addUniqueCE(cce0, errorCode);
405 addUniqueCE(cce1, errorCode);
409 CollationFastLatinBuilder::addUniqueCE(int64_t ce, UErrorCode &errorCode) {
410 if(U_FAILURE(errorCode)) { return; }
415 uniqueCEs.insertElementAt(ce, ~i, errorCode);
428 CollationFastLatinBuilder::encodeUniqueCEs(UErrorCode &errorCode) {
429 if(U_FAILURE(errorCode)) { return FALSE; }
433 errorCode = U_MEMORY_ALLOCATION_ERROR;
559 return U_SUCCESS(errorCode);
563 CollationFastLatinBuilder::encodeCharCEs(UErrorCode &errorCode) {
564 if(U_FAILURE(errorCode)) { return FALSE; }
588 return U_SUCCESS(errorCode);
592 CollationFastLatinBuilder::encodeContractions(UErrorCode &errorCode) {
595 if(U_FAILURE(errorCode)) { return FALSE; }
635 errorCode = U_MEMORY_ALLOCATION_ERROR;