Contents

SushiEngine::Logging

copy_until_placeholder

std::size_t copy_until_placeholder(FormatBuffer &buffer, std::string_view format) noexcept

Parameters

NameType
bufferFormatBuffer &
formatstd::string_view

Returns

std::size_t

The offset just past that "{}", or std::string_view::npos when there is none.

Description

Copies format up to its first "{}" with "{{" and "}}" unescaped.