14#include "arccore/base/StringView.h"
30 o.write((
const char*)m_v.data(), m_v.size());
50 return { m_v.subspan(pos, len) };
void writeBytes(std::ostream &o) const
Writes the string in UTF-8 format to the stream o.
std::string_view toStdStringView() const ARCCORE_NOEXCEPT
Returns an STL view of the current view.
constexpr Int64 length() const ARCCORE_NOEXCEPT
Length in bytes of the character string.
StringView subView(Int64 pos) const
Substring starting at position pos.
friend bool operator==(const StringView &a, const StringView &b)
Compares two views.
StringView()=default
Creates a view of an empty string.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
std::int64_t Int64
Signed integer type of 64 bits.
bool operator<(const Item &item1, const Item &item2)
Compare two entities.
std::ostream & operator<<(std::ostream &ostr, eItemKind item_kind)
Output operator for a stream.