MCPcopy Create free account
hub / github.com/Tablecruncher/tablecruncher / find_invalid

Function find_invalid

external/utf8/cpp20.h:91–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89 }
90
91 inline std::size_t find_invalid(const std::u8string& s)
92 {
93 std::u8string::const_iterator invalid = find_invalid(s.begin(), s.end());
94 return (invalid == s.end()) ? std::string_view::npos : static_cast<std::size_t>(invalid - s.begin());
95 }
96
97 inline bool is_valid(const std::u8string& s)
98 {

Callers

nothing calls this directly

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected