mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2024-11-14 10:39:05 +00:00
73cdad232b
fix to_string for longer string
16 lines
338 B
C++
16 lines
338 B
C++
#ifndef SPROUT_CWCHAR_WCSLEN_HPP
|
|
#define SPROUT_CWCHAR_WCSLEN_HPP
|
|
|
|
#include <cstddef>
|
|
#include <sprout/config.hpp>
|
|
|
|
namespace sprout {
|
|
inline SPROUT_CONSTEXPR std::size_t
|
|
wcslen(wchar_t const* s) {
|
|
return !*s ? 0
|
|
: 1 + sprout::wcslen(s + 1)
|
|
;
|
|
}
|
|
} // namespace sprout
|
|
|
|
#endif // #ifndef SPROUT_CWCHAR_WCSLEN_HPP
|