Lines Matching full: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; }
145 errorCode = U_INTERNAL_PROGRAM_ERROR;
159 errorCode = U_INTERNAL_PROGRAM_ERROR;
169 // This does not warrant an errorCode, but we do not build a fast Latin table.
221 CollationFastLatinBuilder::getCEs(const CollationData &data, UErrorCode &errorCode) {
222 if(U_FAILURE(errorCode)) { return; }
238 if(getCEsFromCE32(*d, c, ce32, errorCode)) {
241 addUniqueCE(ce0, errorCode);
242 addUniqueCE(ce1, errorCode);
252 addContractionEntry(CollationFastLatin::CONTR_CHAR_MASK, ce0, ce1, errorCode);
258 contractionCEs.addElement(CollationFastLatin::CONTR_CHAR_MASK, errorCode);
263 UErrorCode &errorCode) {
264 if(U_FAILURE(errorCode)) { return FALSE; }
308 return getCEsFromContractionCE32(data, ce32, errorCode);
359 UErrorCode &errorCode) {
360 if(U_FAILURE(errorCode)) { return FALSE; }
367 if(getCEsFromCE32(data, U_SENTINEL, ce32, errorCode)) {
368 addContractionEntry(CollationFastLatin::CONTR_CHAR_MASK, ce0, ce1, errorCode);
371 addContractionEntry(CollationFastLatin::CONTR_CHAR_MASK, Collation::NO_CE, 0, errorCode);
377 UCharsTrie::Iterator suffixes(p + 2, 0, errorCode);
378 while(suffixes.next(errorCode)) {
385 addContractionEntry(x, Collation::NO_CE, 0, errorCode);
391 addContractionEntry(prevX, ce0, ce1, errorCode);
394 if(suffix.length() == 1 && getCEsFromCE32(data, U_SENTINEL, ce32, errorCode)) {
397 addContractionEntry(x, Collation::NO_CE, 0, errorCode);
403 addContractionEntry(prevX, ce0, ce1, errorCode);
405 if(U_FAILURE(errorCode)) { return FALSE; }
418 UErrorCode &errorCode) {
419 contractionCEs.addElement(x, errorCode);
420 contractionCEs.addElement(cce0, errorCode);
421 contractionCEs.addElement(cce1, errorCode);
422 addUniqueCE(cce0, errorCode);
423 addUniqueCE(cce1, errorCode);
427 CollationFastLatinBuilder::addUniqueCE(int64_t ce, UErrorCode &errorCode) {
428 if(U_FAILURE(errorCode)) { return; }
433 errorCode);
446 CollationFastLatinBuilder::encodeUniqueCEs(UErrorCode &errorCode) {
447 if(U_FAILURE(errorCode)) { return FALSE; }
451 errorCode = U_MEMORY_ALLOCATION_ERROR;
578 return U_SUCCESS(errorCode);
582 CollationFastLatinBuilder::encodeCharCEs(UErrorCode &errorCode) {
583 if(U_FAILURE(errorCode)) { return FALSE; }
607 return U_SUCCESS(errorCode);
611 CollationFastLatinBuilder::encodeContractions(UErrorCode &errorCode) {
614 if(U_FAILURE(errorCode)) { return FALSE; }
654 errorCode = U_MEMORY_ALLOCATION_ERROR;