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

Method bytesDistanceFrom

Libraries/Strings/StringIterator.h:406–409  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

404
405template <typename CharIterator>
406constexpr ssize_t StringIterator<CharIterator>::bytesDistanceFrom(StringIterator other) const
407{
408 return (it - other.it) * static_cast<ssize_t>(sizeof(CodeUnit));
409}
410
411// StringIteratorASCII
412[[nodiscard]] constexpr bool StringIteratorASCII::advanceUntilMatches(CodePoint c)

Callers 3

fromIteratorsMethod · 0.80
fromIteratorUntilEndMethod · 0.80
fromIteratorFromStartMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected