MCPcopy Create free account
hub / github.com/fmtlib/fmt / remove_prefix

Function remove_prefix

include/fmt/base.h:557–560  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

555 }
556
557 FMT_CONSTEXPR void remove_prefix(size_t n) noexcept {
558 data_ += n;
559 size_ -= n;
560 }
561
562 FMT_CONSTEXPR auto starts_with(basic_string_view sv) const noexcept -> bool {
563 return size_ >= sv.size_ && detail::compare(data_, sv.data_, sv.size_) == 0;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected