MCPcopy Create free account
hub / github.com/boostorg/parser / string_parse

Function string_parse

include/boost/parser/detail/numeric.hpp:820–833  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

818
819 template <typename Char, typename Iterator, typename Sentinel>
820 inline bool string_parse(
821 Char const* uc_i, Char const* lc_i
822 , Iterator& first, Sentinel const& last)
823 {
824 Iterator i = first;
825
826 common_type_equal eq;
827
828 for (; *uc_i && *lc_i; ++uc_i, ++lc_i, ++i)
829 if (i == last || (!eq(*uc_i, *i) && !eq(*lc_i, *i)))
830 return false;
831 first = i;
832 return true;
833 }
834
835 // Copied from
836 // boost/spirit/home/x3/numeric/real_policies.hpp

Callers 2

parse_nanMethod · 0.85
parse_infMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected