Lines Matching refs:pErrorCode
116 utrie2_open(uint32_t initialValue, uint32_t errorValue, UErrorCode *pErrorCode) { in utrie2_open() argument
122 if(U_FAILURE(*pErrorCode)) { in utrie2_open()
133 *pErrorCode=U_MEMORY_ALLOCATION_ERROR; in utrie2_open()
148 newTrie->t3=umutablecptrie_open(initialValue, errorValue, pErrorCode); in utrie2_open()
242 utrie2_set32(trie, i, initialValue, pErrorCode); in utrie2_open()
299 utrie2_clone(const UTrie2 *other, UErrorCode *pErrorCode) { in utrie2_clone() argument
302 if(U_FAILURE(*pErrorCode)) { in utrie2_clone()
306 *pErrorCode=U_ILLEGAL_ARGUMENT_ERROR; in utrie2_clone()
312 *pErrorCode=U_MEMORY_ALLOCATION_ERROR; in utrie2_clone()
337 *pErrorCode=U_MEMORY_ALLOCATION_ERROR; in utrie2_clone()
405 utrie2_cloneAsThawed(const UTrie2 *other, UErrorCode *pErrorCode) { in utrie2_cloneAsThawed() argument
409 if(U_FAILURE(*pErrorCode)) { in utrie2_cloneAsThawed()
413 *pErrorCode=U_ILLEGAL_ARGUMENT_ERROR; in utrie2_cloneAsThawed()
417 return utrie2_clone(other, pErrorCode); /* clone an unfrozen trie */ in utrie2_cloneAsThawed()
421 context.trie=utrie2_open(other->initialValue, other->errorValue, pErrorCode); in utrie2_cloneAsThawed()
422 if(U_FAILURE(*pErrorCode)) { in utrie2_cloneAsThawed()
426 context.errorCode=*pErrorCode; in utrie2_cloneAsThawed()
428 *pErrorCode=context.errorCode; in utrie2_cloneAsThawed()
437 utrie2_set32ForLeadSurrogateCodeUnit(context.trie, lead, value, pErrorCode); in utrie2_cloneAsThawed()
440 if(U_FAILURE(*pErrorCode)) { in utrie2_cloneAsThawed()
449 utrie2_fromUTrie(const UTrie *trie1, uint32_t errorValue, UErrorCode *pErrorCode) { in utrie2_fromUTrie() argument
453 if(U_FAILURE(*pErrorCode)) { in utrie2_fromUTrie()
457 *pErrorCode=U_ILLEGAL_ARGUMENT_ERROR; in utrie2_fromUTrie()
460 context.trie=utrie2_open(trie1->initialValue, errorValue, pErrorCode); in utrie2_fromUTrie()
461 if(U_FAILURE(*pErrorCode)) { in utrie2_fromUTrie()
465 context.errorCode=*pErrorCode; in utrie2_fromUTrie()
467 *pErrorCode=context.errorCode; in utrie2_fromUTrie()
476 utrie2_set32ForLeadSurrogateCodeUnit(context.trie, lead, value, pErrorCode); in utrie2_fromUTrie()
479 if(U_SUCCESS(*pErrorCode)) { in utrie2_fromUTrie()
482 pErrorCode); in utrie2_fromUTrie()
485 if(U_SUCCESS(*pErrorCode)) { in utrie2_fromUTrie()
490 if(U_FAILURE(*pErrorCode)) { in utrie2_fromUTrie()
657 UErrorCode *pErrorCode) { in set32() argument
661 *pErrorCode=U_NO_WRITE_PERMISSION; in set32()
665 umutablecptrie_set(trie->t3, c, value, pErrorCode); in set32()
670 *pErrorCode=U_MEMORY_ALLOCATION_ERROR; in set32()
678 utrie2_set32(UTrie2 *trie, UChar32 c, uint32_t value, UErrorCode *pErrorCode) { in utrie2_set32() argument
679 if(U_FAILURE(*pErrorCode)) { in utrie2_set32()
683 *pErrorCode=U_ILLEGAL_ARGUMENT_ERROR; in utrie2_set32()
686 set32(trie->newTrie, c, TRUE, value, pErrorCode); in utrie2_set32()
692 UErrorCode *pErrorCode) { in utrie2_set32ForLeadSurrogateCodeUnit() argument
693 if(U_FAILURE(*pErrorCode)) { in utrie2_set32ForLeadSurrogateCodeUnit()
697 *pErrorCode=U_ILLEGAL_ARGUMENT_ERROR; in utrie2_set32ForLeadSurrogateCodeUnit()
700 set32(trie->newTrie, c, FALSE, value, pErrorCode); in utrie2_set32ForLeadSurrogateCodeUnit()
740 UErrorCode *pErrorCode) { in utrie2_setRange32() argument
750 if(U_FAILURE(*pErrorCode)) { in utrie2_setRange32()
754 *pErrorCode=U_ILLEGAL_ARGUMENT_ERROR; in utrie2_setRange32()
759 *pErrorCode=U_NO_WRITE_PERMISSION; in utrie2_setRange32()
763 umutablecptrie_setRange(newTrie->t3, start, end, value, pErrorCode); in utrie2_setRange32()
776 *pErrorCode=U_MEMORY_ALLOCATION_ERROR; in utrie2_setRange32()
817 *pErrorCode=U_INTERNAL_PROGRAM_ERROR; in utrie2_setRange32()
863 *pErrorCode=U_MEMORY_ALLOCATION_ERROR; in utrie2_setRange32()
877 *pErrorCode=U_MEMORY_ALLOCATION_ERROR; in utrie2_setRange32()
1229 compactTrie(UTrie2 *trie, UErrorCode *pErrorCode) { in compactTrie() argument
1258 utrie2_setRange32(trie, suppHighStart, 0x10ffff, trie->initialValue, TRUE, pErrorCode); in compactTrie()
1259 if(U_FAILURE(*pErrorCode)) { in compactTrie()
1306 utrie2_freeze(UTrie2 *trie, UTrie2ValueBits valueBits, UErrorCode *pErrorCode) { in utrie2_freeze() argument
1317 if(U_FAILURE(*pErrorCode)) { in utrie2_freeze()
1323 *pErrorCode=U_ILLEGAL_ARGUMENT_ERROR; in utrie2_freeze()
1332 *pErrorCode=U_ILLEGAL_ARGUMENT_ERROR; in utrie2_freeze()
1339 compactTrie(trie, pErrorCode); in utrie2_freeze()
1340 if(U_FAILURE(*pErrorCode)) { in utrie2_freeze()
1367 *pErrorCode=U_INDEX_OUTOFBOUNDS_ERROR; in utrie2_freeze()
1381 *pErrorCode=U_MEMORY_ALLOCATION_ERROR; in utrie2_freeze()
1465 *pErrorCode=U_ILLEGAL_ARGUMENT_ERROR; in utrie2_freeze()
1477 newTrie->t3, UCPTRIE_TYPE_FAST, (UCPTrieValueWidth)valueBits, pErrorCode)); in utrie2_freeze()