| 62 | } |
| 63 | |
| 64 | MappedWstring EditorInterface::to_mapped_wstring(const std::string &str) { |
| 65 | if (get_encoding() == EditorCodepage::utf8) |
| 66 | return utf8_to_mapped_wstring(str); |
| 67 | |
| 68 | return ::to_mapped_wstring(str); |
| 69 | } |
| 70 | |
| 71 | MappedWstring EditorInterface::get_mapped_wstring_range(TextPosition from, TextPosition to) { |
| 72 | auto result = to_mapped_wstring(get_text_range(from, to)); |
no test coverage detected