Squashed 'deps/nostalgia/' changes from 3ccadba2..cb304ecf
cb304ecf [applib] Cleanup ea173777 [ox/std] Make StringViewCR honest c424bde0 [nostalgia] Style cleanup ee7d5c6d [nostalgia/gfx] Cleanup 99247cee [nostalgia/gfx/test] Cleanup 7b8ddc18 [nostalgia/gfx] Consolidate implementations into single files, remove unnecessary function exports a6814030 [studio/applib] Cleanup 9937a010 [turbine] Cleanup abcf2adc [nostalgia/gfx] Cleanup 05f90235 [nostalgia/gfx] Cleanup 5ba0bcf9 [turbine] Consolidate some files that didn't have sensible distinctions git-subtree-dir: deps/nostalgia git-subtree-split: cb304ecf2852db37a7aa7ca3bfc9d28877d5c1bd
This commit is contained in:
6
deps/ox/src/ox/std/stringview.hpp
vendored
6
deps/ox/src/ox/std/stringview.hpp
vendored
@ -60,7 +60,7 @@ class StringView: public detail::BaseStringView {
|
||||
|
||||
};
|
||||
|
||||
using StringViewCR = const StringView&;
|
||||
using StringViewCR = StringView const&;
|
||||
|
||||
constexpr auto operator==(StringViewCR s1, StringViewCR s2) noexcept {
|
||||
if (s2.len() != s1.len()) {
|
||||
@ -89,7 +89,7 @@ constexpr auto operator<=>(StringViewCR s1, StringViewCR s2) noexcept {
|
||||
}
|
||||
}
|
||||
|
||||
constexpr auto write(Writer_c auto &writer, ox::StringViewCR sv) noexcept {
|
||||
constexpr auto write(Writer_c auto &writer, StringViewCR sv) noexcept {
|
||||
return writer.write(sv.data(), sv.bytes());
|
||||
}
|
||||
|
||||
@ -100,7 +100,7 @@ constexpr auto toStdStringView(StringViewCR sv) noexcept {
|
||||
#endif
|
||||
|
||||
|
||||
constexpr ox::Result<int> strToInt(ox::StringViewCR str) noexcept {
|
||||
constexpr ox::Result<int> strToInt(StringViewCR str) noexcept {
|
||||
OX_ALLOW_UNSAFE_BUFFERS_BEGIN
|
||||
int total = 0;
|
||||
int multiplier = 1;
|
||||
|
Reference in New Issue
Block a user