[core] Remove duplicate copy of utf.hpp

This commit is contained in:
John Firebaugh
2016-05-02 12:00:03 -07:00
parent c8c36c395c
commit fd0f9d1319
2 changed files with 2 additions and 27 deletions

View File

@@ -1,25 +0,0 @@
#ifndef MBGL_UTIL_UTF
#define MBGL_UTIL_UTF
#include <memory>
#include <boost/regex/pending/unicode_iterator.hpp>
namespace mbgl {
namespace util {
class utf8_to_utf32 {
public:
static std::u32string convert(std::string const& utf8)
{
boost::u8_to_u32_iterator<std::string::const_iterator> begin(utf8.begin());
boost::u8_to_u32_iterator<std::string::const_iterator> end(utf8.end());
return std::u32string(begin,end);
}
};
} // namespace util
} // namespace mbgl
#endif

View File

@@ -6,7 +6,6 @@
#include <boost/regex/pending/unicode_iterator.hpp>
namespace mbgl {
namespace util {
class utf8_to_utf32 {
@@ -19,6 +18,7 @@ class utf8_to_utf32 {
}
};
}}
} // namespace mbgl
} // namespace util
#endif