move utf::length wrappper to header

master
Daniel Kolesa 2017-12-31 19:18:08 +01:00
parent 48a7b45115
commit b350eced7e
2 changed files with 3 additions and 5 deletions

View File

@ -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> {

View File

@ -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 */