Lines Matching refs:input
40 static bool parseInt(StringRef &input, unsigned &value) { in parseInt() argument
42 if (input.empty()) return true; in parseInt()
44 char next = input[0]; in parseInt()
45 input = input.substr(1); in parseInt()
49 while (!input.empty()) { in parseInt()
50 next = input[0]; in parseInt()
52 input = input.substr(1); in parseInt()
59 bool VersionTuple::tryParse(StringRef input) { in tryParse() argument
63 if (parseInt(input, major)) return true; in tryParse()
65 if (input.empty()) { in tryParse()
71 if (input[0] != '.') return true; in tryParse()
72 input = input.substr(1); in tryParse()
73 if (parseInt(input, minor)) return true; in tryParse()
75 if (input.empty()) { in tryParse()
81 if (input[0] != '.') return true; in tryParse()
82 input = input.substr(1); in tryParse()
83 if (parseInt(input, micro)) return true; in tryParse()
85 if (input.empty()) { in tryParse()
91 if (input[0] != '.') return true; in tryParse()
92 input = input.substr(1); in tryParse()
93 if (parseInt(input, build)) return true; in tryParse()
96 if (!input.empty()) return true; in tryParse()