• Home
  • Raw
  • Download

Lines Matching refs:errorCode

60               UErrorCode &errorCode) const {  in normalize()
61 if(U_SUCCESS(errorCode)) { in normalize()
65 errorCode=U_ILLEGAL_ARGUMENT_ERROR; in normalize()
73 UErrorCode &errorCode) const { in normalizeSecondAndAppend()
74 if(U_SUCCESS(errorCode)) { in normalizeSecondAndAppend()
78 errorCode=U_ILLEGAL_ARGUMENT_ERROR; in normalizeSecondAndAppend()
86 UErrorCode &errorCode) const { in append()
87 if(U_SUCCESS(errorCode)) { in append()
91 errorCode=U_ILLEGAL_ARGUMENT_ERROR; in append()
131 UErrorCode &errorCode) const { in normalize()
132 if(U_FAILURE(errorCode)) { in normalize()
138 errorCode=U_ILLEGAL_ARGUMENT_ERROR; in normalize()
144 if(buffer.init(src.length(), errorCode)) { in normalize()
145 normalize(sArray, sArray+src.length(), buffer, errorCode); in normalize()
151 ReorderingBuffer &buffer, UErrorCode &errorCode) const = 0;
157 UErrorCode &errorCode) const { in normalizeSecondAndAppend()
158 return normalizeSecondAndAppend(first, second, TRUE, errorCode); in normalizeSecondAndAppend()
163 UErrorCode &errorCode) const { in append()
164 return normalizeSecondAndAppend(first, second, FALSE, errorCode); in append()
170 UErrorCode &errorCode) const { in normalizeSecondAndAppend()
171 uprv_checkCanGetBuffer(first, errorCode); in normalizeSecondAndAppend()
172 if(U_FAILURE(errorCode)) { in normalizeSecondAndAppend()
177 errorCode=U_ILLEGAL_ARGUMENT_ERROR; in normalizeSecondAndAppend()
184 if(buffer.init(firstLength+second.length(), errorCode)) { in normalizeSecondAndAppend()
186 safeMiddle, buffer, errorCode); in normalizeSecondAndAppend()
189 if(U_FAILURE(errorCode)) { in normalizeSecondAndAppend()
198 ReorderingBuffer &buffer, UErrorCode &errorCode) const = 0;
241 isNormalized(const UnicodeString &s, UErrorCode &errorCode) const { in isNormalized()
242 if(U_FAILURE(errorCode)) { in isNormalized()
247 errorCode=U_ILLEGAL_ARGUMENT_ERROR; in isNormalized()
251 return sLimit==spanQuickCheckYes(sArray, sLimit, errorCode); in isNormalized()
254 quickCheck(const UnicodeString &s, UErrorCode &errorCode) const { in quickCheck()
255 return Normalizer2WithImpl::isNormalized(s, errorCode) ? UNORM_YES : UNORM_NO; in quickCheck()
258 spanQuickCheckYes(const UnicodeString &s, UErrorCode &errorCode) const { in spanQuickCheckYes()
259 if(U_FAILURE(errorCode)) { in spanQuickCheckYes()
264 errorCode=U_ILLEGAL_ARGUMENT_ERROR; in spanQuickCheckYes()
267 return (int32_t)(spanQuickCheckYes(sArray, sArray+s.length(), errorCode)-sArray); in spanQuickCheckYes()
270 spanQuickCheckYes(const UChar *src, const UChar *limit, UErrorCode &errorCode) const = 0;
289 ReorderingBuffer &buffer, UErrorCode &errorCode) const { in normalize()
290 impl.decompose(src, limit, &buffer, errorCode); in normalize()
296 ReorderingBuffer &buffer, UErrorCode &errorCode) const { in normalizeAndAppend()
297 impl.decomposeAndAppend(src, limit, doNormalize, safeMiddle, buffer, errorCode); in normalizeAndAppend()
300 spanQuickCheckYes(const UChar *src, const UChar *limit, UErrorCode &errorCode) const { in spanQuickCheckYes()
301 return impl.decompose(src, limit, NULL, errorCode); in spanQuickCheckYes()
323 ReorderingBuffer &buffer, UErrorCode &errorCode) const { in normalize()
324 impl.compose(src, limit, onlyContiguous, TRUE, buffer, errorCode); in normalize()
330 ReorderingBuffer &buffer, UErrorCode &errorCode) const { in normalizeAndAppend()
331 … impl.composeAndAppend(src, limit, doNormalize, onlyContiguous, safeMiddle, buffer, errorCode); in normalizeAndAppend()
335 isNormalized(const UnicodeString &s, UErrorCode &errorCode) const { in isNormalized()
336 if(U_FAILURE(errorCode)) { in isNormalized()
341 errorCode=U_ILLEGAL_ARGUMENT_ERROR; in isNormalized()
346 if(!buffer.init(5, errorCode)) { // small destCapacity for substring normalization in isNormalized()
349 return impl.compose(sArray, sArray+s.length(), onlyContiguous, FALSE, buffer, errorCode); in isNormalized()
352 quickCheck(const UnicodeString &s, UErrorCode &errorCode) const { in quickCheck()
353 if(U_FAILURE(errorCode)) { in quickCheck()
358 errorCode=U_ILLEGAL_ARGUMENT_ERROR; in quickCheck()
396 ReorderingBuffer &buffer, UErrorCode &errorCode) const { in normalize()
397 impl.makeFCD(src, limit, &buffer, errorCode); in normalize()
403 ReorderingBuffer &buffer, UErrorCode &errorCode) const { in normalizeAndAppend()
404 impl.makeFCDAndAppend(src, limit, doNormalize, safeMiddle, buffer, errorCode); in normalizeAndAppend()
407 spanQuickCheckYes(const UChar *src, const UChar *limit, UErrorCode &errorCode) const { in spanQuickCheckYes()
408 return impl.makeFCD(src, limit, NULL, errorCode); in spanQuickCheckYes()
423 UErrorCode &errorCode);
436 UErrorCode &errorCode) { in createInstance() argument
437 if(U_FAILURE(errorCode)) { in createInstance()
442 errorCode=U_MEMORY_ALLOCATION_ERROR; in createInstance()
445 allModes->impl.load(packageName, name, errorCode); in createInstance()
446 return U_SUCCESS(errorCode) ? allModes.orphan() : NULL; in createInstance()
457 Norm2AllModes *getInstance(UErrorCode &errorCode) { in getInstance() argument
458 … return TriStateSingletonWrapper<Norm2AllModes>::getInstance(createInstance, name, errorCode); in getInstance()
461 static void *createInstance(const void *context, UErrorCode &errorCode) { in createInstance() argument
463 return Norm2AllModes::createInstance(NULL, (const char *)context, errorCode); in createInstance()
476 Normalizer2 *getInstance(UErrorCode &errorCode) { in getInstance() argument
477 return SimpleSingletonWrapper<Normalizer2>::getInstance(createInstance, NULL, errorCode); in getInstance()
480 static void *createInstance(const void *, UErrorCode &errorCode) { in createInstance() argument
483 errorCode=U_MEMORY_ALLOCATION_ERROR; in createInstance()
512 const Normalizer2 *Normalizer2Factory::getNFCInstance(UErrorCode &errorCode) { in getNFCInstance() argument
513 Norm2AllModes *allModes=Norm2AllModesSingleton(nfcSingleton, "nfc").getInstance(errorCode); in getNFCInstance()
517 const Normalizer2 *Normalizer2Factory::getNFDInstance(UErrorCode &errorCode) { in getNFDInstance() argument
518 Norm2AllModes *allModes=Norm2AllModesSingleton(nfcSingleton, "nfc").getInstance(errorCode); in getNFDInstance()
522 const Normalizer2 *Normalizer2Factory::getFCDInstance(UErrorCode &errorCode) { in getFCDInstance() argument
523 Norm2AllModes *allModes=Norm2AllModesSingleton(nfcSingleton, "nfc").getInstance(errorCode); in getFCDInstance()
527 const Normalizer2 *Normalizer2Factory::getFCCInstance(UErrorCode &errorCode) { in getFCCInstance() argument
528 Norm2AllModes *allModes=Norm2AllModesSingleton(nfcSingleton, "nfc").getInstance(errorCode); in getFCCInstance()
532 const Normalizer2 *Normalizer2Factory::getNFKCInstance(UErrorCode &errorCode) { in getNFKCInstance() argument
534 Norm2AllModesSingleton(nfkcSingleton, "nfkc").getInstance(errorCode); in getNFKCInstance()
538 const Normalizer2 *Normalizer2Factory::getNFKDInstance(UErrorCode &errorCode) { in getNFKDInstance() argument
540 Norm2AllModesSingleton(nfkcSingleton, "nfkc").getInstance(errorCode); in getNFKDInstance()
544 const Normalizer2 *Normalizer2Factory::getNFKC_CFInstance(UErrorCode &errorCode) { in getNFKC_CFInstance() argument
546 Norm2AllModesSingleton(nfkc_cfSingleton, "nfkc_cf").getInstance(errorCode); in getNFKC_CFInstance()
550 const Normalizer2 *Normalizer2Factory::getNoopInstance(UErrorCode &errorCode) { in getNoopInstance() argument
551 return Norm2Singleton(noopSingleton).getInstance(errorCode); in getNoopInstance()
555 Normalizer2Factory::getInstance(UNormalizationMode mode, UErrorCode &errorCode) { in getInstance() argument
556 if(U_FAILURE(errorCode)) { in getInstance()
561 return getNFDInstance(errorCode); in getInstance()
563 return getNFKDInstance(errorCode); in getInstance()
565 return getNFCInstance(errorCode); in getInstance()
567 return getNFKCInstance(errorCode); in getInstance()
569 return getFCDInstance(errorCode); in getInstance()
571 return getNoopInstance(errorCode); in getInstance()
576 Normalizer2Factory::getNFCImpl(UErrorCode &errorCode) { in getNFCImpl() argument
578 Norm2AllModesSingleton(nfcSingleton, "nfc").getInstance(errorCode); in getNFCImpl()
583 Normalizer2Factory::getNFKCImpl(UErrorCode &errorCode) { in getNFKCImpl() argument
585 Norm2AllModesSingleton(nfkcSingleton, "nfkc").getInstance(errorCode); in getNFKCImpl()
590 Normalizer2Factory::getNFKC_CFImpl(UErrorCode &errorCode) { in getNFKC_CFImpl() argument
592 Norm2AllModesSingleton(nfkc_cfSingleton, "nfkc_cf").getInstance(errorCode); in getNFKC_CFImpl()
602 Normalizer2::getNFCInstance(UErrorCode &errorCode) { in getNFCInstance() argument
603 return Normalizer2Factory::getNFCInstance(errorCode); in getNFCInstance()
607 Normalizer2::getNFDInstance(UErrorCode &errorCode) { in getNFDInstance() argument
608 return Normalizer2Factory::getNFDInstance(errorCode); in getNFDInstance()
612 Normalizer2::getNFKCInstance(UErrorCode &errorCode) { in getNFKCInstance() argument
613 return Normalizer2Factory::getNFKCInstance(errorCode); in getNFKCInstance()
617 Normalizer2::getNFKDInstance(UErrorCode &errorCode) { in getNFKDInstance() argument
618 return Normalizer2Factory::getNFKDInstance(errorCode); in getNFKDInstance()
622 Normalizer2::getNFKCCasefoldInstance(UErrorCode &errorCode) { in getNFKCCasefoldInstance() argument
623 return Normalizer2Factory::getNFKC_CFInstance(errorCode); in getNFKCCasefoldInstance()
630 UErrorCode &errorCode) { in getInstance() argument
631 if(U_FAILURE(errorCode)) { in getInstance()
635 errorCode=U_ILLEGAL_ARGUMENT_ERROR; in getInstance()
641 allModes=Norm2AllModesSingleton(nfcSingleton, "nfc").getInstance(errorCode); in getInstance()
643 allModes=Norm2AllModesSingleton(nfkcSingleton, "nfkc").getInstance(errorCode); in getInstance()
645 allModes=Norm2AllModesSingleton(nfkc_cfSingleton, "nfkc_cf").getInstance(errorCode); in getInstance()
648 if(allModes==NULL && U_SUCCESS(errorCode)) { in getInstance()
657 Norm2AllModes::createInstance(packageName, name, errorCode)); in getInstance()
658 if(U_SUCCESS(errorCode)) { in getInstance()
661 cache=uhash_open(uhash_hashChars, uhash_compareChars, NULL, &errorCode); in getInstance()
662 if(U_FAILURE(errorCode)) { in getInstance()
673 errorCode=U_MEMORY_ALLOCATION_ERROR; in getInstance()
677 uhash_put(cache, nameCopy, allModes=localAllModes.orphan(), &errorCode); in getInstance()
685 if(allModes!=NULL && U_SUCCESS(errorCode)) { in getInstance()
970 UErrorCode errorCode=U_ZERO_ERROR; in u_getCombiningClass() local
971 const Normalizer2 *nfd=Normalizer2Factory::getNFDInstance(errorCode); in u_getCombiningClass()
972 if(U_SUCCESS(errorCode)) { in u_getCombiningClass()
984 UErrorCode errorCode=U_ZERO_ERROR; in unorm_getQuickCheck() local
985 const Normalizer2 *norm2=Normalizer2Factory::getInstance(mode, errorCode); in unorm_getQuickCheck()
986 if(U_SUCCESS(errorCode)) { in unorm_getQuickCheck()
995 UErrorCode errorCode=U_ZERO_ERROR; in unorm_getFCD16() local
996 const Normalizer2Impl *impl=Normalizer2Factory::getNFCImpl(errorCode); in unorm_getFCD16()
997 if(U_SUCCESS(errorCode)) { in unorm_getFCD16()