move utf::length wrappper to header
parent
48a7b45115
commit
b350eced7e
|
@ -738,7 +738,9 @@ namespace utf {
|
||||||
* If you need to get the continuation string, use the general
|
* If you need to get the continuation string, use the general
|
||||||
* error-handling overload of the function.
|
* error-handling overload of the function.
|
||||||
*/
|
*/
|
||||||
std::size_t length(string_range r) noexcept;
|
inline std::size_t length(string_range r) noexcept {
|
||||||
|
return utf::length(r, r);
|
||||||
|
}
|
||||||
|
|
||||||
namespace detail {
|
namespace detail {
|
||||||
struct codepoint_range: input_range<codepoint_range> {
|
struct codepoint_range: input_range<codepoint_range> {
|
||||||
|
|
|
@ -74,9 +74,5 @@ std::size_t length(string_range r, string_range &cont) noexcept {
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::size_t length(string_range r) noexcept {
|
|
||||||
return length(r, r);
|
|
||||||
}
|
|
||||||
|
|
||||||
} /* namespace utf */
|
} /* namespace utf */
|
||||||
} /* namespace ostd */
|
} /* namespace ostd */
|
||||||
|
|
Loading…
Reference in New Issue