summaryrefslogtreecommitdiff
path: root/platform/default/include/mbgl/text/unaccent.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'platform/default/include/mbgl/text/unaccent.hpp')
-rw-r--r--platform/default/include/mbgl/text/unaccent.hpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/platform/default/include/mbgl/text/unaccent.hpp b/platform/default/include/mbgl/text/unaccent.hpp
new file mode 100644
index 0000000000..85ac37a7de
--- /dev/null
+++ b/platform/default/include/mbgl/text/unaccent.hpp
@@ -0,0 +1,13 @@
+#pragma once
+
+#include <string>
+
+namespace mbgl {
+namespace platform {
+
+// Non-locale-aware diacritic folding based on nunicode
+// Used as a fallback when locale-aware comparisons aren't available
+std::string unaccent(const std::string &string);
+
+} // namespace platform
+} // namespace mbgl