Home | History | Annotate | Download | only in Basic

Lines Matching refs:input

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