Lines Matching refs:input
41 static bool parseInt(StringRef &input, unsigned &value) {
43 if (input.empty())
46 char next = input[0];
47 input = input.substr(1);
52 while (!input.empty()) {
53 next = input[0];
56 input = input.substr(1);
63 bool VersionTuple::tryParse(StringRef input) {
67 if (parseInt(input, major))
70 if (input.empty()) {
76 if (input[0] != '.')
78 input = input.substr(1);
79 if (parseInt(input, minor))
82 if (input.empty()) {
88 if (!input.consume_front("."))
90 if (parseInt(input, micro))
93 if (input.empty()) {
99 if (!input.consume_front("."))
101 if (parseInt(input, build))
105 if (!input.empty())