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

Method fullyOverlaps

Libraries/Strings/StringView.h:649–659  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

647}
648
649constexpr bool SC::StringView::fullyOverlaps(StringView other, size_t& commonOverlappingPoints) const
650{
651 commonOverlappingPoints = 0;
652 switch (getEncoding())
653 {
654 case StringEncoding::Ascii: return equalsIterator<StringIteratorASCII>(other, commonOverlappingPoints);
655 case StringEncoding::Utf8: return equalsIterator<StringIteratorUTF8>(other, commonOverlappingPoints);
656 case StringEncoding::Utf16: return equalsIterator<StringIteratorUTF16>(other, commonOverlappingPoints);
657 }
658 StringsAssert::unreachable();
659}
660
661template <typename Func>
662constexpr auto SC::StringView::withIterator(Func&& func) const

Callers 1

StringViewTestMethod · 0.80

Calls 1

getEncodingFunction · 0.70

Tested by 1

StringViewTestMethod · 0.64