6#include <inflection/util/fwd.hpp>
7#include <inflection/dialog/fwd.hpp>
8#include <inflection/Object.hpp>
9#include <inflection/dialog/SpeakableConcept.hpp>
24 ::std::u16string print { };
25 ::std::u16string* speak { };
33 virtual const ::std::u16string&
getPrint()
const;
39 virtual const ::std::u16string&
getSpeak()
const;
56 bool operator==(const ::inflection::dialog::SpeakableString& o)
const;
94 virtual bool contains(std::u16string_view s)
const;
The base interface for all concepts that can be formatted to a SpeakableString.
Represents a string with both a spoken and written representation.
virtual const ::std::u16string & getSpeak() const
SpeakableString(std::u16string_view print, std::u16string_view speak)
virtual const ::std::u16string & getPrint() const
SpeakableString & operator+=(const ::inflection::dialog::SpeakableString &o)
SpeakableString operator+(const ::inflection::dialog::SpeakableString &o) const
bool operator==(const ::inflection::dialog::SpeakableString &o) const
~SpeakableString() override
virtual bool isEmpty() const
SpeakableString(std::u16string_view print)
::std::u16string toString() const override
SpeakableString * toSpeakableString() const override
SpeakableString(const SpeakableString &print)
virtual bool speakEqualsPrint() const
SpeakableString & operator=(const ::inflection::dialog::SpeakableString &o)
virtual bool contains(std::u16string_view s) const
The C++ namespace for Inflection.