Lines Matching refs:errorCode
37 UErrorCode &errorCode) const {
38 if(U_FAILURE(errorCode)) {
44 errorCode=U_ILLEGAL_ARGUMENT_ERROR;
50 if(buffer.init(src.length(), errorCode)) {
51 normalize(sArray, sArray+src.length(), buffer, errorCode);
57 ReorderingBuffer &buffer, UErrorCode &errorCode) const = 0;
63 UErrorCode &errorCode) const {
64 return normalizeSecondAndAppend(first, second, TRUE, errorCode);
69 UErrorCode &errorCode) const {
70 return normalizeSecondAndAppend(first, second, FALSE, errorCode);
76 UErrorCode &errorCode) const {
77 uprv_checkCanGetBuffer(first, errorCode);
78 if(U_FAILURE(errorCode)) {
83 errorCode=U_ILLEGAL_ARGUMENT_ERROR;
90 if(buffer.init(firstLength+second.length(), errorCode)) {
92 safeMiddle, buffer, errorCode);
95 if(U_FAILURE(errorCode)) {
104 ReorderingBuffer &buffer, UErrorCode &errorCode) const = 0;
147 isNormalized(const UnicodeString &s, UErrorCode &errorCode) const {
148 if(U_FAILURE(errorCode)) {
153 errorCode=U_ILLEGAL_ARGUMENT_ERROR;
157 return sLimit==spanQuickCheckYes(sArray, sLimit, errorCode);
160 quickCheck(const UnicodeString &s, UErrorCode &errorCode) const {
161 return Normalizer2WithImpl::isNormalized(s, errorCode) ? UNORM_YES : UNORM_NO;
164 spanQuickCheckYes(const UnicodeString &s, UErrorCode &errorCode) const {
165 if(U_FAILURE(errorCode)) {
170 errorCode=U_ILLEGAL_ARGUMENT_ERROR;
173 return (int32_t)(spanQuickCheckYes(sArray, sArray+s.length(), errorCode)-sArray);
176 spanQuickCheckYes(const UChar *src, const UChar *limit, UErrorCode &errorCode) const = 0;
193 ReorderingBuffer &buffer, UErrorCode &errorCode) const {
194 impl.decompose(src, limit, &buffer, errorCode);
200 ReorderingBuffer &buffer, UErrorCode &errorCode) const {
201 impl.decomposeAndAppend(src, limit, doNormalize, safeMiddle, buffer, errorCode);
204 spanQuickCheckYes(const UChar *src, const UChar *limit, UErrorCode &errorCode) const {
205 return impl.decompose(src, limit, NULL, errorCode);
225 ReorderingBuffer &buffer, UErrorCode &errorCode) const {
226 impl.compose(src, limit, onlyContiguous, TRUE, buffer, errorCode);
232 ReorderingBuffer &buffer, UErrorCode &errorCode) const {
233 impl.composeAndAppend(src, limit, doNormalize, onlyContiguous, safeMiddle, buffer, errorCode);
237 isNormalized(const UnicodeString &s, UErrorCode &errorCode) const {
238 if(U_FAILURE(errorCode)) {
243 errorCode=U_ILLEGAL_ARGUMENT_ERROR;
248 if(!buffer.init(5, errorCode)) { // small destCapacity for substring normalization
251 return impl.compose(sArray, sArray+s.length(), onlyContiguous, FALSE, buffer, errorCode);
254 quickCheck(const UnicodeString &s, UErrorCode &errorCode) const {
255 if(U_FAILURE(errorCode)) {
260 errorCode=U_ILLEGAL_ARGUMENT_ERROR;
296 ReorderingBuffer &buffer, UErrorCode &errorCode) const {
297 impl.makeFCD(src, limit, &buffer, errorCode);
303 ReorderingBuffer &buffer, UErrorCode &errorCode) const {
304 impl.makeFCDAndAppend(src, limit, doNormalize, safeMiddle, buffer, errorCode);
307 spanQuickCheckYes(const UChar *src, const UChar *limit, UErrorCode &errorCode) const {
308 return impl.makeFCD(src, limit, NULL, errorCode);
321 static Norm2AllModes *createInstance(Normalizer2Impl *impl, UErrorCode &errorCode);
322 static Norm2AllModes *createNFCInstance(UErrorCode &errorCode);
325 UErrorCode &errorCode);
327 static const Norm2AllModes *getNFCInstance(UErrorCode &errorCode);
328 static const Norm2AllModes *getNFKCInstance(UErrorCode &errorCode);
329 static const Norm2AllModes *getNFKC_CFInstance(UErrorCode &errorCode);