Home | History | Annotate | Download | only in Basic

Lines Matching refs:input

38 static bool parseInt(StringRef &input, unsigned &value) {
40 if (input.empty()) return true;
42 char next = input[0];
43 input = input.substr(1);
47 while (!input.empty()) {
48 next = input[0];
50 input = input.substr(1);
57 bool VersionTuple::tryParse(StringRef input) {
61 if (parseInt(input, major)) return true;
63 if (input.empty()) {
69 if (input[0] != '.') return true;
70 input = input.substr(1);
71 if (parseInt(input, minor)) return true;
73 if (input.empty()) {
79 if (input[0] != '.') return true;
80 input = input.substr(1);
81 if (parseInt(input, micro)) return true;
84 if (!input.empty()) return true;