Home | History | Annotate | Download | only in Support

Lines Matching full:current

268     if (Current >= End)
269 Current = End - 1;
274 printError(SMLoc::getFromPointer(Current), SourceMgr::DK_Error, Message);
279 setError(Message, Current);
289 return StringRef(Current, End - Current);
394 /// Invalid simple keys are not on the current line or are further than 1024
468 /// @brief The current position of the scanner.
469 StringRef::iterator Current;
474 /// @brief Current YAML indentation level in spaces.
477 /// @brief Current column number in Unicode code points.
480 /// @brief Current line number.
707 Current = InputBuffer->getBufferStart();
714 , Current(InputBuffer->getBufferStart())
727 // If the current token is a possible simple key, keep parsing until we
848 StringRef::iterator Start = Current;
850 if (Current == End)
852 if (( *Current == '%'
853 && Current + 2 < End
854 && is_ns_hex_digit(*(Current + 1))
855 && is_ns_hex_digit(*(Current + 2)))
856 || is_ns_word_char(*Current)
857 || StringRef(Current, 1).find_first_of("#;/?:@&=+$,_.!~*'()[]")
859 ++Current;
864 return StringRef(Start, Current - Start);
868 StringRef::iterator start = Current;
870 ++Current;
872 if (Current == End) {
874 } else if (*Current == ':') {
876 if (Current + 1 == End)
878 StringRef::iterator i = skip_ns_char(Current + 1);
879 if (Current + 1 != i) {
880 Current = i;
884 } else if (*Current == '#') {
887 if (*(Current - 1) & 0x80 || skip_ns_char(Current - 1) == Current) {
888 ++Current;
893 StringRef::iterator i = skip_nb_char(Current);
894 if (i == Current)
896 Current = i;
900 return StringRef(start, Current - start);
906 if (Current == End)
908 if (uint8_t(*Current) >= 0x80)
910 if (uint8_t(*Current) == Expected) {
911 ++Current;
919 Current += Distance;
921 assert(Current <= End && "Skipped past the end");
973 T.Range = StringRef(Current, 1);
992 T.Range = StringRef(Current, 0);
1000 while (*Current == ' ' || *Current == '\t') {
1005 if (*Current == '#') {
1009 StringRef::iterator i = skip_nb_char(Current);
1010 if (i == Current)
1012 Current = i;
1018 StringRef::iterator i = skip_b_break(Current);
1019 if (i == Current)
1021 Current = i;
1037 T.Range = StringRef(Current, EI.second);
1039 Current += EI.second;
1056 T.Range = StringRef(Current, 0);
1067 StringRef::iterator Start = Current;
1069 StringRef::iterator NameStart = Current;
1070 Current = skip_while(&Scanner::skip_ns_char, Current);
1071 StringRef Name(NameStart, Current - NameStart);
1072 Current = skip_while(&Scanner::skip_s_white, Current);
1075 Current = skip_while(&Scanner::skip_ns_char, Current);
1078 T.Range = StringRef(Start, Current - Start);
1092 T.Range = StringRef(Current, 3);
1102 T.Range = StringRef(Current, 1);
1121 T.Range = StringRef(Current, 1);
1134 T.Range = StringRef(Current, 1);
1146 T.Range = StringRef(Current, 1);
1161 T.Range = StringRef(Current, 1);
1195 T.Range = StringRef(Current, 1);
1212 // We calculate the number of consecutive '\'s before the current position
1215 // (Position - 1 - I) now contains the number of '\'s before the current
1221 StringRef::iterator Start = Current;
1225 ++Current;
1226 while (Current != End && *Current != '"')
1227 ++Current;
1230 } while ( Current != End
1231 && *(Current - 1) == '\\'
1232 && wasEscaped(Start + 1, Current));
1237 if (Current + 1 < End && *Current == '\'' && *(Current + 1) == '\'') {
1240 } else if (*Current == '\'')
1242 StringRef::iterator i = skip_nb_char(Current);
1243 if (i == Current) {
1244 i = skip_b_break(Current);
1245 if (i == Current)
1247 Current = i;
1253 Current = i;
1259 if (Current == End) {
1260 setError("Expected quote at end of scalar", Current);
1267 T.Range = StringRef(Start, Current - Start);
1278 StringRef::iterator Start = Current;
1284 if (*Current == '#')
1287 while (!isBlankOrBreak(Current)) {
1288 if ( FlowLevel && *Current == ':'
1289 && !(isBlankOrBreak(Current + 1) || *(Current + 1) == ',')) {
1290 setError("Found unexpected ':' while scanning a plain scalar", Current);
1295 if ( (*Current == ':' && isBlankOrBreak(Current + 1))
1297 && (StringRef(Current, 1).find_first_of(",:?[]{}")
1301 StringRef::iterator i = skip_nb_char(Current);
1302 if (i == Current)
1304 Current = i;
1309 if (!isBlankOrBreak(Current))
1313 StringRef::iterator Tmp = Current;
1336 Current = Tmp;
1338 if (Start == Current) {
1344 T.Range = StringRef(Start, Current - Start);
1356 StringRef::iterator Start = Current;
1360 if ( *Current == '[' || *Current == ']'
1361 || *Current == '{' || *Current == '}'
1362 || *Current == ','
1363 || *Current == ':')
1365 StringRef::iterator i = skip_ns_char(Current);
1366 if (i == Current)
1368 Current = i;
1372 if (Start == Current) {
1379 T.Range = StringRef(Start, Current - Start);
1391 StringRef::iterator Start = Current;
1394 StringRef::iterator i = skip_nb_char(Current);
1395 if (i == Current) {
1398 i = skip_b_break(Current);
1399 if (i != Current) {
1403 Current = i;
1410 Current = i;
1414 if (Start == Current) {
1421 T.Range = StringRef(Start, Current - Start);
1427 StringRef::iterator Start = Current;
1430 if (Current == End || isBlankOrBreak(Current)); // An empty tag.
1431 else if (*Current == '<') {
1438 Current = skip_while(&Scanner::skip_ns_char, Current);
1443 T.Range = StringRef(Start, Current - Start);
1460 if (Current == End)
1467 if (Column == 0 && *Current == '%')
1470 if (Column == 0 && Current + 4 <= End
1471 && *Current == '-'
1472 && *(Current + 1) == '-'
1473 && *(Current + 2) == '-'
1474 && (Current + 3 == End || isBlankOrBreak(Current + 3)))
1477 if (Column == 0 && Current + 4 <= End
1478 && *Current == '.'
1479 && *(Current + 1) == '.'
1480 && *(Current + 2) == '.'
1481 && (Current + 3 == End || isBlankOrBreak(Current + 3)))
1484 if (*Current == '[')
1487 if (*Current == '{')
1490 if (*Current == ']')
1493 if (*Current == '}')
1496 if (*Current == ',')
1499 if (*Current == '-' && isBlankOrBreak(Current + 1))
1502 if (*Current == '?' && (FlowLevel || isBlankOrBreak(Current + 1)))
1505 if (*Current == ':' && (FlowLevel || isBlankOrBreak(Current + 1)))
1508 if (*Current == '*')
1511 if (*Current == '&')
1514 if (*Current == '!')
1517 if (*Current == '|' && !FlowLevel)
1520 if (*Current == '>' && !FlowLevel)
1523 if (*Current == '\'')
1526 if (*Current == '"')
1530 StringRef FirstChar(Current, 1);
1531 if (!(isBlankOrBreak(Current)
1533 || (*Current == '-' && !isBlankOrBreak(Current + 1))
1534 || (!FlowLevel && (*Current == '?' || *Current == ':')
1535 && isBlankOrBreak(Current + 1))
1536 || (!FlowLevel && *Current == ':'
1537 && Current + 2 < End
1538 && *(Current + 1) == ':'
1539 && !isBlankOrBreak(Current + 2)))