diff options
author | crupest <crupest@outlook.com> | 2021-10-26 17:59:57 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-10-26 17:59:57 +0800 |
commit | 253341d93d8e3cb38a204b539822ca1cc8597754 (patch) | |
tree | f692c9998dccd288c38871dcf43db9f8ddadc3b1 /src/common/String.cpp | |
parent | 82431bd0b7e971b956a6a6942538adc8df2ac38c (diff) | |
download | cru-253341d93d8e3cb38a204b539822ca1cc8597754.tar.gz cru-253341d93d8e3cb38a204b539822ca1cc8597754.tar.bz2 cru-253341d93d8e3cb38a204b539822ca1cc8597754.zip |
...
Diffstat (limited to 'src/common/String.cpp')
-rw-r--r-- | src/common/String.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/String.cpp b/src/common/String.cpp index 65d303fb..699d807f 100644 --- a/src/common/String.cpp +++ b/src/common/String.cpp @@ -38,6 +38,9 @@ String::String(const_pointer str, Index size) { this->capacity_ = size; } +String::String(std::initializer_list<char16_t> l) + : String(l.begin(), l.size()) {} + #ifdef CRU_PLATFORM_WINDOWS String::String(const wchar_t* str) : String(str, GetStrSize(str)) {} String::String(const wchar_t* str, Index size) |