diff options
author | Chris Loer <chris.loer@gmail.com> | 2016-11-17 14:12:28 -0800 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2016-11-17 14:33:03 -0800 |
commit | bceeba29a3fa85105c21718ed0be8704508ab585 (patch) | |
tree | 1fd7bba911a0c407d656ca53257631b5ec0bfea1 /src/mbgl/util | |
parent | 40b0c8d0760f8a767ef4646607ac63251d86de8d (diff) | |
download | qtlocation-mapboxgl-bceeba29a3fa85105c21718ed0be8704508ab585.tar.gz |
[core] Add ICU package for Bidirectional text support and arabic text shaping.
Apply bidi and shaping in symbol_layout.
Add utility functions for converting to and from UTF-16.
Diffstat (limited to 'src/mbgl/util')
-rw-r--r-- | src/mbgl/util/utf.hpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/mbgl/util/utf.hpp b/src/mbgl/util/utf.hpp index 386e56bef8..81330cfc83 100644 --- a/src/mbgl/util/utf.hpp +++ b/src/mbgl/util/utf.hpp @@ -10,12 +10,10 @@ namespace util { class utf8_to_utf16 { public: - static std::u16string convert(std::string const& utf8) - { - std::wstring_convert<std::codecvt_utf8_utf16<char16_t>,char16_t> converter; - return converter.from_bytes( utf8 ); + static std::u16string convert(std::string const& utf8) { + std::wstring_convert<std::codecvt_utf8_utf16<char16_t>, char16_t> converter; + return converter.from_bytes(utf8); } - }; } // namespace util |