MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / equalsIterator

Method equalsIterator

Libraries/Strings/StringView.h:594–607  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

592
593template <typename StringIterator1, typename StringIterator2>
594constexpr bool SC::StringView::equalsIterator(StringIterator1 t1, StringIterator2 t2, size_t& points)
595{
596 StringCodePoint c1 = 0;
597 StringCodePoint c2 = 0;
598 while (t1.advanceRead(c1) and t2.advanceRead(c2))
599 {
600 if (c1 != c2)
601 {
602 return false;
603 }
604 points++;
605 }
606 return t1.isAtEnd() and t2.isAtEnd();
607}
608
609template <typename StringIterator>
610constexpr bool SC::StringView::equalsIterator(StringView other, size_t& points) const

Callers

nothing calls this directly

Calls 2

isAtEndMethod · 0.80
advanceReadMethod · 0.45

Tested by

no test coverage detected