Lines Matching defs:first
87 FilteredNormalizer2::normalizeSecondAndAppend(UnicodeString &first,
90 return normalizeSecondAndAppend(first, second, TRUE, errorCode);
94 FilteredNormalizer2::append(UnicodeString &first,
97 return normalizeSecondAndAppend(first, second, FALSE, errorCode);
101 FilteredNormalizer2::normalizeSecondAndAppend(UnicodeString &first,
105 uprv_checkCanGetBuffer(first, errorCode);
108 return first;
110 if(&first==&second) {
112 return first;
114 if(first.isEmpty()) {
116 return normalize(second, first, errorCode);
118 return first=second;
121 // merge the in-filter suffix of the first string with the in-filter prefix of the second
125 int32_t suffixStart=set.spanBack(first, INT32_MAX, USET_SPAN_SIMPLE);
128 norm2.normalizeSecondAndAppend(first, prefix, errorCode);
130 norm2.append(first, prefix, errorCode);
133 UnicodeString middle(first, suffixStart, INT32_MAX);
139 first.replace(suffixStart, INT32_MAX, middle);
145 normalize(rest, first, USET_SPAN_NOT_CONTAINED, errorCode);
147 first.append(rest);
150 return first;