| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
|
||
| template <typename T> | ||
| using MaybeStackBufferStringType = | ||
| std::conditional_t<std::is_same_v<T, uint16_t>, char16_t, T>; |
There was a problem hiding this comment.
This should just be a concept
template <typename T>
concept MaybeStackBufferStringLike =
std::is_same_v<T, char> || std::is_same_v<T, wchar_t> ||
std::is_same_v<T, char8_t> || std::is_same_v<T, char16_t> ||
std::is_same_v<T, char32_t> || std::is_same_v<T, uint16_t>;
// ...
template <MaybeStackBufferStringLike U = T,
typename Char = MaybeStackBufferStringType<U>>
Sorry, something went wrong.
Sorry, something went wrong.
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## main #62564 +/- ##
=======================================
Coverage 89.70% 89.70%
=======================================
Files 695 695
Lines 214213 214214 +1
Branches 41021 41024 +3
=======================================
+ Hits 192167 192169 +2
+ Misses 14113 14109 -4
- Partials 7933 7936 +3
... and 26 files with indirect coverage changes 🚀 New features to boost your workflow:
|
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Limit MaybeStackBuffer::ToString() and ToStringView to textual element types so byte buffers do not instantiate std::basic_string[_view] on libc++.
This avoids the macOS/Xcode deprecation warning for char_traits<unsigned char> while preserving existing string helper behavior for text buffers. uint16_t buffers are mapped to char16_t for these conversions so UTF-16 call sites continue to work.