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
* 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 {
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;
}
std::size_t length(string_range r) noexcept {
return length(r, r);
}
} /* namespace utf */
} /* namespace ostd */