Commit 01f84b0e authored by Max Kellermann's avatar Max Kellermann

util/StringView: add struct WStringView

parent 5dbdd362
...@@ -47,3 +47,7 @@ BasicStringView<T>::StripRight() noexcept ...@@ -47,3 +47,7 @@ BasicStringView<T>::StripRight() noexcept
} }
template struct BasicStringView<char>; template struct BasicStringView<char>;
#ifdef _UNICODE
template struct BasicStringView<wchar_t>;
#endif
...@@ -114,4 +114,12 @@ struct StringView : BasicStringView<char> { ...@@ -114,4 +114,12 @@ struct StringView : BasicStringView<char> {
using BasicStringView::BasicStringView; using BasicStringView::BasicStringView;
}; };
#ifdef _UNICODE
struct WStringView : BasicStringView<wchar_t> {
using BasicStringView::BasicStringView;
};
#endif
#endif #endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment