Add support for simple empty StringView.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -4,4 +4,7 @@
|
||||
namespace ArbUt {
|
||||
std::shared_ptr<__ConstStringCharHolder> StringView::__emptyString =
|
||||
std::make_shared<__ConstStringCharHolder>("", 0);
|
||||
|
||||
static StringView __empty;
|
||||
const StringView& StringView::Empty() { return __empty; }
|
||||
}
|
||||
|
||||
@@ -86,6 +86,8 @@ namespace ArbUt {
|
||||
CalculateHash(const std::string_view& val) noexcept {
|
||||
return Hash(val.data());
|
||||
}
|
||||
|
||||
static const StringView& Empty();
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user