-template<typename T> std::size_t
-char_traits<T>::length(char_type const * p)
-{
- std::size_t i = 0;
- while (!eq(p[i], char_type()))
- ++i;
- return i;
-}
-
-
-template<typename T> typename char_traits<T>::char_type const *
-char_traits<T>::find(char_type const * s, size_t n, char_type const & a)
-{
- for (std::size_t i = 0; i < n; ++i)
- if (eq(s[i], a))
- return s + i;
- return 0;
-}
-
+/// convert \p s from the encoding of the file system to ucs4.
+docstring const from_filesystem8bit(std::string const & s);