pub fn parseInfOrNan(comptime T: type, s: []const u8, negative: bool) ?T T: types: []const u8negative: bool268
269
270
271
272
273
274
275
276pub fn parseInfOrNan(comptime T: type, s: []const u8, negative: bool) ?T {
var consumed: usize = 0;
if (parsePartialInfOrNan(T, s, negative, &consumed)) |special| {
if (s.len == consumed) {
return special;
}
}
return null;
}