Lines Matching refs:buffer
144 ReorderingBuffer buffer(impl, dest);
145 if(buffer.init(src.length(), errorCode)) {
146 normalize(sArray, sArray+src.length(), buffer, errorCode);
152 ReorderingBuffer &buffer, UErrorCode &errorCode) const = 0;
184 ReorderingBuffer buffer(impl, first);
185 if(buffer.init(firstLength+second.length(), errorCode)) {
187 safeMiddle, buffer, errorCode);
199 ReorderingBuffer &buffer, UErrorCode &errorCode) const = 0;
202 UChar buffer[4];
204 const UChar *d=impl.getDecomposition(c, buffer, length);
208 if(d==buffer) {
209 decomposition.setTo(buffer, length); // copy the string (Jamos from Hangul syllable c)
217 UChar buffer[30];
219 const UChar *d=impl.getRawDecomposition(c, buffer, length);
223 if(d==buffer) {
224 decomposition.setTo(buffer, length); // copy the string (algorithmic decomposition)
290 ReorderingBuffer &buffer, UErrorCode &errorCode) const {
291 impl.decompose(src, limit, &buffer, errorCode);
297 ReorderingBuffer &buffer, UErrorCode &errorCode) const {
298 impl.decomposeAndAppend(src, limit, doNormalize, safeMiddle, buffer, errorCode);
324 ReorderingBuffer &buffer, UErrorCode &errorCode) const {
325 impl.compose(src, limit, onlyContiguous, TRUE, buffer, errorCode);
331 ReorderingBuffer &buffer, UErrorCode &errorCode) const {
332 impl.composeAndAppend(src, limit, doNormalize, onlyContiguous, safeMiddle, buffer, errorCode);
346 ReorderingBuffer buffer(impl, temp);
347 if(!buffer.init(5, errorCode)) { // small destCapacity for substring normalization
350 return impl.compose(sArray, sArray+s.length(), onlyContiguous, FALSE, buffer, errorCode);
397 ReorderingBuffer &buffer, UErrorCode &errorCode) const {
398 impl.makeFCD(src, limit, &buffer, errorCode);
404 ReorderingBuffer &buffer, UErrorCode &errorCode) const {
405 impl.makeFCDAndAppend(src, limit, doNormalize, safeMiddle, buffer, errorCode);
756 // length==0: Nothing to do, and n2wi->normalize(NULL, NULL, buffer, ...) would crash.
762 ReorderingBuffer buffer(n2wi->impl, destString);
763 if(buffer.init(length, *pErrorCode)) {
764 n2wi->normalize(src, length>=0 ? src+length : NULL, buffer, *pErrorCode);
793 // secondLength==0: Nothing to do, and n2wi->normalizeAndAppend(NULL, NULL, buffer, ...) would crash.
801 ReorderingBuffer buffer(n2wi->impl, firstString);
802 if(buffer.init(firstLength+secondLength+1, *pErrorCode)) { // destCapacity>=-1
804 doNormalize, safeMiddle, buffer, *pErrorCode);