Home | History | Annotate | Download | only in common

Lines Matching refs:errorCode

38     void load(const char *packageName, const char *name, UErrorCode &errorCode);
76 LoadedNormalizer2Impl::load(const char *packageName, const char *name, UErrorCode &errorCode) {
77 if(U_FAILURE(errorCode)) {
80 memory=udata_openChoice(packageName, "nrm", name, isAcceptable, this, &errorCode);
81 if(U_FAILURE(errorCode)) {
88 errorCode=U_INVALID_FORMAT_ERROR; // Not enough indexes.
96 &errorCode);
97 if(U_FAILURE(errorCode)) {
117 UErrorCode &errorCode) {
118 if(U_FAILURE(errorCode)) {
123 errorCode=U_MEMORY_ALLOCATION_ERROR;
126 impl->load(packageName, name, errorCode);
127 return createInstance(impl, errorCode);
142 static void U_CALLCONV initSingletons(const char *what, UErrorCode &errorCode) {
144 nfkcSingleton = Norm2AllModes::createInstance(NULL, "nfkc", errorCode);
146 nfkc_cfSingleton = Norm2AllModes::createInstance(NULL, "nfkc_cf", errorCode);
174 Norm2AllModes::getNFKCInstance(UErrorCode &errorCode) {
175 if(U_FAILURE(errorCode)) { return NULL; }
176 umtx_initOnce(nfkcInitOnce, &initSingletons, "nfkc", errorCode);
181 Norm2AllModes::getNFKC_CFInstance(UErrorCode &errorCode) {
182 if(U_FAILURE(errorCode)) { return NULL; }
183 umtx_initOnce(nfkc_cfInitOnce, &initSingletons, "nfkc_cf", errorCode);
188 Normalizer2::getNFKCInstance(UErrorCode &errorCode) {
189 const Norm2AllModes *allModes=Norm2AllModes::getNFKCInstance(errorCode);
194 Normalizer2::getNFKDInstance(UErrorCode &errorCode) {
195 const Norm2AllModes *allModes=Norm2AllModes::getNFKCInstance(errorCode);
200 Normalizer2::getNFKCCasefoldInstance(UErrorCode &errorCode) {
201 const Norm2AllModes *allModes=Norm2AllModes::getNFKC_CFInstance(errorCode);
209 UErrorCode &errorCode) {
210 if(U_FAILURE(errorCode)) {
214 errorCode=U_ILLEGAL_ARGUMENT_ERROR;
220 allModes=Norm2AllModes::getNFCInstance(errorCode);
222 allModes=Norm2AllModes::getNFKCInstance(errorCode);
224 allModes=Norm2AllModes::getNFKC_CFInstance(errorCode);
227 if(allModes==NULL && U_SUCCESS(errorCode)) {
237 Norm2AllModes::createInstance(packageName, name, errorCode));
238 if(U_SUCCESS(errorCode)) {
241 cache=uhash_open(uhash_hashChars, uhash_compareChars, NULL, &errorCode);
242 if(U_FAILURE(errorCode)) {
253 errorCode=U_MEMORY_ALLOCATION_ERROR;
258 uhash_put(cache, nameCopy, localAllModes.orphan(), &errorCode);
266 if(allModes!=NULL && U_SUCCESS(errorCode)) {
284 Normalizer2Factory::getInstance(UNormalizationMode mode, UErrorCode &errorCode) {
285 if(U_FAILURE(errorCode)) {
290 return Normalizer2::getNFDInstance(errorCode);
292 return Normalizer2::getNFKDInstance(errorCode);
294 return Normalizer2::getNFCInstance(errorCode);
296 return Normalizer2::getNFKCInstance(errorCode);
298 return getFCDInstance(errorCode);
300 return getNoopInstance(errorCode);
305 Normalizer2Factory::getNFKCImpl(UErrorCode &errorCode) {
306 const Norm2AllModes *allModes=Norm2AllModes::getNFKCInstance(errorCode);
311 Normalizer2Factory::getNFKC_CFImpl(UErrorCode &errorCode) {
312 const Norm2AllModes *allModes=Norm2AllModes::getNFKC_CFInstance(errorCode);
350 UErrorCode errorCode=U_ZERO_ERROR;
351 const Normalizer2 *norm2=Normalizer2Factory::getInstance(mode, errorCode);
352 if(U_SUCCESS(errorCode)) {