Lines Matching refs:pErrorCode
28 UErrorCode *pErrorCode) { in utrie_swap() argument
34 if(pErrorCode==NULL || U_FAILURE(*pErrorCode)) { in utrie_swap()
38 *pErrorCode=U_ILLEGAL_ARGUMENT_ERROR; in utrie_swap()
44 *pErrorCode=U_INDEX_OUTOFBOUNDS_ERROR; in utrie_swap()
63 *pErrorCode=U_INVALID_FORMAT_ERROR; /* not a UTrie */ in utrie_swap()
74 *pErrorCode=U_INDEX_OUTOFBOUNDS_ERROR; in utrie_swap()
81 ds->swapArray32(ds, inTrie, sizeof(UTrieHeader), outTrie, pErrorCode); in utrie_swap()
85 ds->swapArray16(ds, inTrie+1, trie.indexLength*2, outTrie+1, pErrorCode); in utrie_swap()
87 (uint16_t *)(outTrie+1)+trie.indexLength, pErrorCode); in utrie_swap()
89 … ds->swapArray16(ds, inTrie+1, (trie.indexLength+trie.dataLength)*2, outTrie+1, pErrorCode); in utrie_swap()
99 UErrorCode *pErrorCode) { in utrie2_swap() argument
105 if(U_FAILURE(*pErrorCode)) { in utrie2_swap()
109 *pErrorCode=U_ILLEGAL_ARGUMENT_ERROR; in utrie2_swap()
115 *pErrorCode=U_INDEX_OUTOFBOUNDS_ERROR; in utrie2_swap()
133 *pErrorCode=U_INVALID_FORMAT_ERROR; /* not a UTrie */ in utrie2_swap()
146 *pErrorCode=U_INVALID_FORMAT_ERROR; in utrie2_swap()
154 *pErrorCode=U_INDEX_OUTOFBOUNDS_ERROR; in utrie2_swap()
161 ds->swapArray32(ds, &inTrie->signature, 4, &outTrie->signature, pErrorCode); in utrie2_swap()
162 ds->swapArray16(ds, &inTrie->options, 12, &outTrie->options, pErrorCode); in utrie2_swap()
167 ds->swapArray16(ds, inTrie+1, (trie.indexLength+dataLength)*2, outTrie+1, pErrorCode); in utrie2_swap()
170 ds->swapArray16(ds, inTrie+1, trie.indexLength*2, outTrie+1, pErrorCode); in utrie2_swap()
172 (uint16_t *)(outTrie+1)+trie.indexLength, pErrorCode); in utrie2_swap()
175 *pErrorCode=U_INVALID_FORMAT_ERROR; in utrie2_swap()
186 UErrorCode *pErrorCode) { in ucptrie_swap() argument
192 if(U_FAILURE(*pErrorCode)) { in ucptrie_swap()
196 *pErrorCode=U_ILLEGAL_ARGUMENT_ERROR; in ucptrie_swap()
202 *pErrorCode=U_INDEX_OUTOFBOUNDS_ERROR; in ucptrie_swap()
225 *pErrorCode=U_INVALID_FORMAT_ERROR; /* not a UCPTrie */ in ucptrie_swap()
241 *pErrorCode=U_INVALID_FORMAT_ERROR; in ucptrie_swap()
249 *pErrorCode=U_INDEX_OUTOFBOUNDS_ERROR; in ucptrie_swap()
256 ds->swapArray32(ds, &inTrie->signature, 4, &outTrie->signature, pErrorCode); in ucptrie_swap()
257 ds->swapArray16(ds, &inTrie->options, 12, &outTrie->options, pErrorCode); in ucptrie_swap()
262 ds->swapArray16(ds, inIndex, trie.indexLength*2, outIndex, pErrorCode); in ucptrie_swap()
269 ds->swapArray16(ds, inData, dataLength*2, outData, pErrorCode); in ucptrie_swap()
272 ds->swapArray32(ds, inData, dataLength*4, outData, pErrorCode); in ucptrie_swap()
280 *pErrorCode=U_INVALID_FORMAT_ERROR; in ucptrie_swap()
335 UErrorCode *pErrorCode) { in utrie_swapAnyVersion() argument
336 if(U_FAILURE(*pErrorCode)) { return 0; } in utrie_swapAnyVersion()
339 return utrie_swap(ds, inData, length, outData, pErrorCode); in utrie_swapAnyVersion()
341 return utrie2_swap(ds, inData, length, outData, pErrorCode); in utrie_swapAnyVersion()
343 return ucptrie_swap(ds, inData, length, outData, pErrorCode); in utrie_swapAnyVersion()
345 *pErrorCode=U_INVALID_FORMAT_ERROR; in utrie_swapAnyVersion()