Lines Matching refs:input
38 static bool parseInt(StringRef &input, unsigned &value) {
40 if (input.empty())
43 char next = input[0];
44 input = input.substr(1);
49 while (!input.empty()) {
50 next = input[0];
53 input = input.substr(1);
60 bool VersionTuple::tryParse(StringRef input) {
64 if (parseInt(input, major))
67 if (input.empty()) {
73 if (input[0] != '.')
75 input = input.substr(1);
76 if (parseInt(input, minor))
79 if (input.empty()) {
85 if (input[0] != '.')
87 input = input.substr(1);
88 if (parseInt(input, micro))
91 if (input.empty()) {
97 if (input[0] != '.')
99 input = input.substr(1);
100 if (parseInt(input, build))
104 if (!input.empty())