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

Function no_case_aware_string_mismatch

include/boost/parser/parser.hpp:2823–2841  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2821 typename Iter2,
2822 typename Sentinel2>
2823 std::pair<Iter1, Iter2> no_case_aware_string_mismatch(
2824 Iter1 first1,
2825 Sentinel1 last1,
2826 Iter2 first2,
2827 Sentinel2 last2,
2828 bool no_case)
2829 {
2830 if (no_case) {
2831 auto it1 = no_case_iter(first1, last1);
2832 auto it2 = no_case_iter(first2, last2);
2833 auto const mismatch = detail::mismatch(
2834 it1, last1, it2, last2, std::equal_to<char32_t>{});
2835 return std::pair<Iter1, Iter2>{
2836 mismatch.first.base(), mismatch.second.base()};
2837 } else {
2838 return detail::mismatch(
2839 first1, last1, first2, last2, std::equal_to<char32_t>{});
2840 }
2841 }
2842
2843 template<typename I, typename S, typename ErrorHandler, typename T>
2844 T if_full_parse(

Callers 2

mainFunction · 0.85
callFunction · 0.85

Calls 3

no_case_iterClass · 0.85
mismatchFunction · 0.70
baseMethod · 0.45

Tested by

no test coverage detected