Lines Matching defs:cursor
30 * text and sets the cursor to the given position.
34 * @param theCursorPos cursor position that will be returned by
51 * text and does not modify the cursor.
107 int32_t& cursor) {
120 // Setup default cursor position (for cursorPos within output)
160 // Record the position of the cursor
179 int32_t len = r->replace(text, destLimit, destLimit, cursor);
190 // Record the position of the cursor
205 // Adjust the cursor for positions outside the key. These
228 // Cursor is within output string. It has been set up above
233 cursor = newStart;
247 int32_t cursor = cursorPos;
249 // Handle a cursor preceding the output
250 if (hasCursor && cursor < 0) {
251 while (cursor++ < 0) {
258 if (hasCursor && i == cursor) {
276 // Handle a cursor after the output. Use > rather than >= because
277 // if cursor == output.length() it is at the end of the output,
279 if (hasCursor && cursor > output.length()) {
280 cursor -= output.length();
281 while (cursor-- > 0) {