mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-09-21 20:06:40 +00:00
Remove CStr functions related to std::u16string
It wasn't used. The conversion to `std::u16string` wasn't even defined.
This commit is contained in:
@@ -77,13 +77,6 @@ public:
|
||||
**/
|
||||
static CStr Repeat(const CStr& str, size_t reps);
|
||||
|
||||
/**
|
||||
* Construction from u16strings.
|
||||
*
|
||||
* @param u16string String u16string to be used for initialization.
|
||||
**/
|
||||
explicit CStr(const std::u16string& str) : StrBase(str.begin(), str.end()) {}
|
||||
|
||||
// Conversion to/from UTF-8, encoded in a CStr8.
|
||||
// Invalid bytes/characters (e.g. broken UTF-8, and Unicode characters
|
||||
// above U+FFFF) are silently replaced with U+FFFD.
|
||||
@@ -233,9 +226,6 @@ public:
|
||||
**/
|
||||
CStr Trim(PS_TRIM_MODE mode) const;
|
||||
|
||||
// Conversion to u16string
|
||||
std::u16string utf16() const { return std::u16string(begin(), end()); }
|
||||
|
||||
// Calculates a hash of the string's contents
|
||||
size_t GetHashCode() const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user