Definition at line 817 of file json.cpp.hpp.
817 {
818 const char* p = span.
data();
819 const char*
end = p + span.
size();
820
822
823 while (p <
end && (*p ==
' ' || *p ==
'\t' || *p ==
'\n' || *p ==
'\r')) p++;
825
826
827 const char* num_start = p;
828 if (*p == '-') p++;
829 while (p < end && *p >= '0' && *p <= '9') p++;
830
833
834
835 while (p <
end && (*p ==
' ' || *p ==
'\t' || *p ==
'\n' || *p ==
'\r')) p++;
836
837
838 if (p <
end && *p ==
',') p++;
839 }
840
841 return true;
842 }
const T * data() const FL_NO_EXCEPT
constexpr fl::size size() const FL_NO_EXCEPT
void push_back(const T &value) FL_NO_EXCEPT
int parseInt(const char *str, fl::size len)
Parse an integer from a character buffer.
References fl::span< T, Extent >::data(), fl::end(), fl::parseInt(), fl::vector< T >::push_back(), and fl::span< T, Extent >::size().
Referenced by on_token().