|
| WritableTextView () |
|
| WritableTextView (uint16_t *aText, size_t aLength) |
|
const uint16_t * | Data () const |
|
virtual | ~MString () |
|
template<typename T > |
MString & | operator= (const T &aText) |
|
template<typename T > |
MString & | operator+= (const T &aText) |
|
size_t | Length () const |
|
bool | IsEmpty () const |
|
virtual const uint16_t * | Data () const =0 |
|
void | Delete (size_t aStart, size_t aEnd) |
|
void | Clear () |
|
void | SetLengthToZero () |
|
std::basic_string< uint16_t > | CreateUtf16String () const |
|
std::string | CreateUtf8String () const |
|
| operator std::string () const |
|
uint16_t | operator[] (size_t aIndex) const |
|
Text | First (size_t aLength) const |
|
Text | Last (size_t aLength) const |
|
Text | Substring (size_t aStart, size_t aLength) const |
|
String | Token (size_t aIndex, const MString *aSeparators=nullptr, const MString *aSingleCharacterTokens=nullptr) const |
|
void | DeletePrefix (const MString &aPrefix) |
|
void | DeleteSuffix (const MString &aSuffix) |
|
void | SetCase (LetterCase aCase, const StringTypeDictionary *aTitleCaseDictionary=0) |
|
void | SetSentenceCase () |
|
int32_t | Compare (MIter< int32_t > &aIter, StringMatchMethod aStringMatchMethod) const noexcept |
|
Result | Replace (size_t aStart, size_t aEnd, MIter< int32_t > &aText, size_t aMaxLength) |
|
int32_t | Compare (const MString &aString) const |
|
int32_t | Compare (const MString &aString, StringMatchMethod aStringMatchMethod) const noexcept |
|
size_t | Find (const MString &aString, StringMatchMethod aStringMatchMethod=StringMatchMethod::Exact, size_t *aEndPos=nullptr) const noexcept |
|
void | Replace (size_t aStart, size_t aEnd, const MString &aString) |
|
void | Insert (size_t aIndex, const MString &aString) |
|
void | Append (const MString &aString) |
|
void | AppendCommaSeparated (const String &aLabel, const String &aText, size_t &aItems, size_t aMaxItems=SIZE_MAX) |
|
void | Set (const MString &aString) |
|
int32_t | Compare (const uint16_t *aText) const |
|
int32_t | Compare (const uint16_t *aText, size_t aLength) const |
|
int32_t | Compare (const char16_t *aText, size_t aLength=npos) const |
|
int32_t | Compare (const uint16_t *aText, size_t aLength, StringMatchMethod aStringMatchMethod) const noexcept |
|
void | Replace (size_t aStart, size_t aEnd, const uint16_t *aText, size_t aLength=npos) |
|
void | Replace (size_t aStart, size_t aEnd, const char16_t *aText, size_t aLength=npos) |
|
void | Insert (size_t aIndex, const uint16_t *aText, size_t aLength=npos) |
|
void | Append (const uint16_t *aText, size_t aLength=npos) |
|
void | Set (const uint16_t *aText, size_t aLength=npos) |
|
int32_t | Compare (const char *aText, size_t aLength=npos, StringMatchMethod aStringMatchMethod=StringMatchMethod::Exact) const noexcept |
|
int32_t | CompareExact (const char *aText, size_t aLength=npos) const noexcept |
|
int32_t | CompareFoldCase (const char *aText, size_t aLength=npos) const noexcept |
|
void | Replace (size_t aStart, size_t aEnd, const char *aText, size_t aLength=npos, int32_t aCodePage=0) |
|
bool | operator== (const char *aText) const noexcept |
|
bool | operator% (const char *aText) const noexcept |
|
bool | operator!= (const char *aText) const |
|
StringMatchType | MatchType (const MString &aText) const |
|
void | Insert (size_t aIndex, const char *aText, size_t aLength=npos, int32_t aCodePage=0) |
|
void | Append (const char *aText, size_t aLength=npos, int32_t aCodePage=0) |
|
template<typename T > |
void | Append (const std::basic_string< T > aString) |
|
template<typename T > |
void | Set (const std::basic_string< T > aString) |
|
void | Set (const char *aText, size_t aLength=npos) |
|
void | Set (const char *aText, size_t aLength, int32_t aCodePage) |
|
void | Replace (size_t aStart, size_t aEnd, uint16_t aChar) |
|
void | Insert (size_t aIndex, uint16_t aChar) |
|
void | Append (uint16_t aChar) |
|
void | Set (uint16_t aChar) |
|
void | Trim () |
|
bool | operator== (const MString &aString) const |
|
bool | operator== (const uint16_t *aText) const |
|
bool | operator== (const char16_t *aText) const |
|
bool | operator!= (const MString &aString) const |
|
bool | operator!= (const uint16_t *aText) const |
|
bool | operator!= (const char16_t *aText) const |
|
bool | operator% (const MString &aString) const |
|
bool | operator% (const uint16_t *aText) const |
|
bool | WildMatch (const MString &aWildText) const noexcept |
|
bool | WildMatch (const char *aWildText) const noexcept |
|
bool | LayerMatch (const MString &aWildText) const |
|
bool | LayerMatch (const char *aWildText) const noexcept |
|
template<class T > |
bool | operator< (const T &aOther) const |
|
template<class T > |
bool | operator<= (const T &aOther) const |
|
template<class T > |
bool | operator> (const T &aOther) const |
|
template<class T > |
bool | operator>= (const T &aOther) const |
|
int32_t | ToInt32 (size_t *aLengthUsed=nullptr, int32_t aBase=10) const noexcept |
|
int64_t | ToInt64 (size_t *aLengthUsed=nullptr, int32_t aBase=10) const noexcept |
|
uint32_t | ToUint32 (size_t *aLengthUsed=nullptr, int32_t aBase=10) const noexcept |
|
double | ToDouble (size_t *aLengthUsed=nullptr) const noexcept |
|
double | ToDimension (size_t *aLengthUsed=nullptr) const noexcept |
|
void | Shape (BidiParDir aParDir, BidiEngine *aBidiEngine, bool aParStart, bool aReorderFontSelectors) |
|
void | Abbreviate (const AbbreviationDictionary &aDictionary, bool aDeleteWords=false) |
|
Result | Transliterate (const StringTypeDictionary *aTitleCaseDictionary=nullptr, const char *aLocale=nullptr) |
|
bool | IsLineBreak (size_t aPos) const noexcept |
|
size_t | LineBreakBefore (size_t aPos) const noexcept |
|
size_t | LineBreakAfter (size_t aPos) const noexcept |
|
void | SetAttribute (const MString &aKey, const MString &aValue) |
|
void | SetAttribute (const String &aKey, const String &aValue) |
|
Text | Attribute (const MString &aKey) const noexcept |
|
Text | Attribute (const String &aKey) const noexcept |
|
bool | NextAttribute (size_t &aPos, Text &aKey, Text &aValue) const noexcept |
|
A writable string that doesn't own its text.