Lines Matching refs:errorCode
39 UErrorCode &errorCode) const {
40 if(U_FAILURE(errorCode)) {
46 errorCode=U_ILLEGAL_ARGUMENT_ERROR;
52 if(buffer.init(src.length(), errorCode)) {
53 normalize(sArray, sArray+src.length(), buffer, errorCode);
59 ReorderingBuffer &buffer, UErrorCode &errorCode) const = 0;
65 UErrorCode &errorCode) const {
66 return normalizeSecondAndAppend(first, second, TRUE, errorCode);
71 UErrorCode &errorCode) const {
72 return normalizeSecondAndAppend(first, second, FALSE, errorCode);
78 UErrorCode &errorCode) const {
79 uprv_checkCanGetBuffer(first, errorCode);
80 if(U_FAILURE(errorCode)) {
85 errorCode=U_ILLEGAL_ARGUMENT_ERROR;
92 if(buffer.init(firstLength+second.length(), errorCode)) {
94 safeMiddle, buffer, errorCode);
97 if(U_FAILURE(errorCode)) {
106 ReorderingBuffer &buffer, UErrorCode &errorCode) const = 0;
149 isNormalized(const UnicodeString &s, UErrorCode &errorCode) const {
150 if(U_FAILURE(errorCode)) {
155 errorCode=U_ILLEGAL_ARGUMENT_ERROR;
159 return sLimit==spanQuickCheckYes(sArray, sLimit, errorCode);
162 quickCheck(const UnicodeString &s, UErrorCode &errorCode) const {
163 return Normalizer2WithImpl::isNormalized(s, errorCode) ? UNORM_YES : UNORM_NO;
166 spanQuickCheckYes(const UnicodeString &s, UErrorCode &errorCode) const {
167 if(U_FAILURE(errorCode)) {
172 errorCode=U_ILLEGAL_ARGUMENT_ERROR;
175 return (int32_t)(spanQuickCheckYes(sArray, sArray+s.length(), errorCode)-sArray);
178 spanQuickCheckYes(const UChar *src, const UChar *limit, UErrorCode &errorCode) const = 0;
195 ReorderingBuffer &buffer, UErrorCode &errorCode) const {
196 impl.decompose(src, limit, &buffer, errorCode);
202 ReorderingBuffer &buffer, UErrorCode &errorCode) const {
203 impl.decomposeAndAppend(src, limit, doNormalize, safeMiddle, buffer, errorCode);
206 spanQuickCheckYes(const UChar *src, const UChar *limit, UErrorCode &errorCode) const {
207 return impl.decompose(src, limit, NULL, errorCode);
227 ReorderingBuffer &buffer, UErrorCode &errorCode) const {
228 impl.compose(src, limit, onlyContiguous, TRUE, buffer, errorCode);
234 ReorderingBuffer &buffer, UErrorCode &errorCode) const {
235 impl.composeAndAppend(src, limit, doNormalize, onlyContiguous, safeMiddle, buffer, errorCode);
239 isNormalized(const UnicodeString &s, UErrorCode &errorCode) const {
240 if(U_FAILURE(errorCode)) {
245 errorCode=U_ILLEGAL_ARGUMENT_ERROR;
250 if(!buffer.init(5, errorCode)) { // small destCapacity for substring normalization
253 return impl.compose(sArray, sArray+s.length(), onlyContiguous, FALSE, buffer, errorCode);
256 quickCheck(const UnicodeString &s, UErrorCode &errorCode) const {
257 if(U_FAILURE(errorCode)) {
262 errorCode=U_ILLEGAL_ARGUMENT_ERROR;
298 ReorderingBuffer &buffer, UErrorCode &errorCode) const {
299 impl.makeFCD(src, limit, &buffer, errorCode);
305 ReorderingBuffer &buffer, UErrorCode &errorCode) const {
306 impl.makeFCDAndAppend(src, limit, doNormalize, safeMiddle, buffer, errorCode);
309 spanQuickCheckYes(const UChar *src, const UChar *limit, UErrorCode &errorCode) const {
310 return impl.makeFCD(src, limit, NULL, errorCode);
323 static Norm2AllModes *createInstance(Normalizer2Impl *impl, UErrorCode &errorCode);
324 static Norm2AllModes *createNFCInstance(UErrorCode &errorCode);
327 UErrorCode &errorCode);
329 static const Norm2AllModes *getNFCInstance(UErrorCode &errorCode);
330 static const Norm2AllModes *getNFKCInstance(UErrorCode &errorCode);
331 static const Norm2AllModes *getNFKC_CFInstance(UErrorCode &errorCode);