Lines Matching refs:next

23   std::optional<char32_t> next{io.PrepareInput(edit, remaining)};  in EditBOZInput()  local
24 if (next.value_or('?') == '0') { in EditBOZInput()
26 next = io.NextInField(remaining, edit); in EditBOZInput()
27 } while (next && *next == '0'); in EditBOZInput()
32 for (; next; next = io.NextInField(remaining, edit)) { in EditBOZInput()
34 char32_t ch{*next}; in EditBOZInput()
101 std::optional<char32_t> &next, std::optional<int> &remaining) { in ScanNumericPrefix() argument
102 next = io.PrepareInput(edit, remaining); in ScanNumericPrefix()
104 if (next) { in ScanNumericPrefix()
105 negative = *next == '-'; in ScanNumericPrefix()
106 if (negative || *next == '+') { in ScanNumericPrefix()
108 next = io.NextInField(remaining, edit); in ScanNumericPrefix()
141 std::optional<char32_t> next; in EditIntegerInput() local
142 bool negate{ScanNumericPrefix(io, edit, next, remaining)}; in EditIntegerInput()
146 for (; next; next = io.NextInField(remaining, edit)) { in EditIntegerInput()
147 char32_t ch{*next}; in EditIntegerInput()
199 std::optional<char32_t> next; in ScanRealInput() local
208 if (ScanNumericPrefix(io, edit, next, remaining)) { in ScanRealInput()
212 if (!next || (!bzMode && *next == ' ')) { // empty/blank field means zero in ScanRealInput()
220 char32_t first{*next >= 'a' && *next <= 'z' ? *next + 'A' - 'a' : *next}; in ScanRealInput()
224 for (; next && in ScanRealInput()
225 ((*next >= 'a' && *next <= 'z') || (*next >= 'A' && *next <= 'Z')); in ScanRealInput()
226 next = io.NextInField(remaining, edit)) { in ScanRealInput()
227 if (*next >= 'a' && *next <= 'z') { in ScanRealInput()
228 Put(*next - 'a' + 'A'); in ScanRealInput()
230 Put(*next); in ScanRealInput()
233 if (next && *next == '(') { // NaN(...) in ScanRealInput()
237 next = io.NextInField(remaining, edit); in ScanRealInput()
240 } else if (!next) { in ScanRealInput()
242 } else if (*next == '(') { in ScanRealInput()
244 } else if (*next == ')') { in ScanRealInput()
247 Put(*next); in ScanRealInput()
256 for (; next; next = io.NextInField(remaining, edit)) { in ScanRealInput()
257 char32_t ch{*next}; in ScanRealInput()
282 if (next && in ScanRealInput()
283 (*next == 'e' || *next == 'E' || *next == 'd' || *next == 'D' || in ScanRealInput()
284 *next == 'q' || *next == 'Q')) { in ScanRealInput()
288 next = io.NextInField(remaining, edit); in ScanRealInput()
293 if (next && in ScanRealInput()
294 (*next == '-' || *next == '+' || (*next >= '0' && *next <= '9') || in ScanRealInput()
295 *next == ' ' || *next == '\t')) { in ScanRealInput()
296 bool negExpo{*next == '-'}; in ScanRealInput()
297 if (negExpo || *next == '+') { in ScanRealInput()
298 next = io.NextInField(remaining, edit); in ScanRealInput()
300 for (exponent = 0; next; next = io.NextInField(remaining, edit)) { in ScanRealInput()
301 if (*next >= '0' && *next <= '9') { in ScanRealInput()
303 exponent = 10 * exponent + *next - '0'; in ScanRealInput()
305 } else if (*next == ' ' || *next == '\t') { in ScanRealInput()
334 if (next && (*next == ' ' || *next == '\t')) { in ScanRealInput()
335 next = io.NextInField(remaining, edit); in ScanRealInput()
337 if (!next) { // NextInField fails on separators like ')' in ScanRealInput()
339 next = io.GetCurrentChar(byteCount); in ScanRealInput()
340 if (next && *next == ')') { in ScanRealInput()
345 while (next && (*next == ' ' || *next == '\t')) { in ScanRealInput()
346 next = io.NextInField(remaining, edit); in ScanRealInput()
348 if (next) { in ScanRealInput()
573 std::optional<char32_t> next{io.PrepareInput(edit, remaining)}; in EditLogicalInput() local
574 if (next && *next == '.') { // skip optional period in EditLogicalInput()
575 next = io.NextInField(remaining, edit); in EditLogicalInput()
577 if (!next) { in EditLogicalInput()
581 switch (*next) { in EditLogicalInput()
592 "Bad character '%lc' in LOGICAL input field", *next); in EditLogicalInput()
622 auto next{io.GetCurrentChar(byteCount)}; in EditDelimitedCharacterInput() local
623 if (next && *next == delimiter) { in EditDelimitedCharacterInput()
656 while (std::optional<char32_t> next{io.NextInField(remaining, edit)}) { in EditListDirectedCharacterInput()
658 switch (*next) { in EditListDirectedCharacterInput()
676 *x++ = *next; in EditListDirectedCharacterInput()