Lines Matching refs:cursor
3192 const char *cursor = strchr(startBuf, '{');
3193 assert((cursor && endBuf)
3210 if (BufferContainsPPDirectives(startBuf, cursor)) {
3218 while (endHeader < cursor && *endHeader != '>') endHeader++;
3225 ReplaceText(LocStart, cursor-startBuf, Result);
3236 LocStart.getLocWithOffset(cursor-startBuf+1);
3239 cursor++; // past '{'
3242 while (cursor < endBuf) {
3243 if (*cursor == '@') {
3244 SourceLocation atLoc = LocStart.getLocWithOffset(cursor-startBuf);
3246 for (++cursor; cursor[0] == ' ' || cursor[0] == '\t'; ++cursor)
3251 if (!strncmp(cursor, "public", strlen("public")) ||
3252 !strncmp(cursor, "private", strlen("private")) ||
3253 !strncmp(cursor, "package", strlen("package")) ||
3254 !strncmp(cursor, "protected", strlen("protected")))
3260 else if (*cursor == '<') {
3261 SourceLocation atLoc = LocStart.getLocWithOffset(cursor-startBuf);
3263 cursor = strchr(cursor, '>');
3264 cursor++;
3265 atLoc = LocStart.getLocWithOffset(cursor-startBuf);
3267 } else if (*cursor == '^') { // rewrite block specifier.
3268 SourceLocation caretLoc = LocStart.getLocWithOffset(cursor-startBuf);
3271 cursor++;