74 : items_(other.items_)
106 return (items_ + size_);
131 return items_[index];
140 return items_[index];
142 throw std::invalid_argument(
"index");
150 items_ = other.items_;
175 const std::string& str)
177 return StrRef(str.data(), str.size());
201 return std::string(ref.
items(), ref.
size());
220 return std::string(1, character);
230 str.append(1, character);
238 const std::string& value)
264 return !(left == right);
272 const std::string& str)
282 const std::string& str)
291 const std::string& str,
301 const std::string& str,
365 0 != result ? (0 > result)
377 return (right < left);
384 std::ostream& stream,
#define ONIXS_CONFLATEDUDP_LTWT_CLASS
#define ONIXS_CONFLATEDUDP_NAMESPACE_END
#define ONIXS_CONFLATEDUDP_NAMESPACE_BEGIN
const Char * items() const
Read-only content.
Iterator begin() const
STL-like begin().
StrRef(const Char *chars, size_t size)
Explicit reference initialization.
size_t size() const
Number of chars.
void reset(const Char *chars, size_t size)
Iterator end() const
STL-like end().
bool empty() const
Indicates whether the referenced text is empty.
const Char * Iterator
STL-like iterator.
void swap(StrRef &other)
Swaps content with the other instance.
StrRef()
Initializes the instance referring to nothing.
void reset()
Resets the reference to nothing.
StrRef(const StrRef &other)
const Char & at(size_t index) const
Provides bound-checked per-item access.
ONIXS_CONFLATEDUDP_EXPORTED void toStr(std::string &, BookState::Enum)
Serializes book state value into a string.
char Char
Character type alias.
StrRef toStrRef(const std::string &str)
Constructs StrRef instance over std::string content.