Lines Matching defs:text
30 * text and sets the cursor to the given position.
31 * @param theOutput text that will replace input text when the
51 * text and does not modify the cursor.
52 * @param theOutput text that will replace input text when the
104 int32_t StringReplacer::replace(Replaceable& text,
117 text.handleReplaceBetween(start, limit, output);
130 * generating the output text.
145 int32_t tempStart = text.length(); // start of temp buffer
146 int32_t destStart = tempStart; // copy new text to here
148 int32_t len = U16_LENGTH(text.char32At(start-1));
149 text.copy(start-len, start, tempStart);
153 text.handleReplaceBetween(tempStart, tempStart, str);
166 // Accumulate straight (non-segment) text.
171 // Insert any accumulated straight text.
173 text.handleReplaceBetween(destLimit, destLimit, buf);
179 int32_t len = r->replace(text, destLimit, destLimit, cursor);
184 // Insert any accumulated straight text.
186 text.handleReplaceBetween(destLimit, destLimit, buf);
196 // Copy new text to start, and delete it
197 text.copy(destStart, destLimit, start);
198 text.handleReplaceBetween(tempStart + outLen, destLimit + outLen, UnicodeString());
200 // Delete the old text (the key)
201 text.handleReplaceBetween(start + outLen, limit + outLen, UnicodeString());
214 newStart -= U16_LENGTH(text.char32At(newStart-1));
222 while (n > 0 && newStart < text.length()) {
223 newStart += U16_LENGTH(text.char32At(newStart));