summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
Diffstat (limited to 'FL')
-rw-r--r--FL/fl_utf8.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/FL/fl_utf8.h b/FL/fl_utf8.h
index 27499de12..bc35ab4b6 100644
--- a/FL/fl_utf8.h
+++ b/FL/fl_utf8.h
@@ -142,6 +142,15 @@ FL_EXPORT int fl_utf8locale();
* type of the src text. */
FL_EXPORT int fl_utf8test(const char *src, unsigned len);
+/* XX: return width of "raw" ucs character in columns.
+ * for internal use only */
+FL_EXPORT int fl_wcwidth_(unsigned int ucs);
+
+/* XX: return width of utf-8 character string in columns.
+ * NOTE: this may also do C1 control character (0x80 to 0x9f) to CP1252 mapping,
+ * depending on original build options */
+FL_EXPORT int fl_wcwidth(const char *src);
+
/* OD: Return true if the character is non-spacing */
FL_EXPORT unsigned int fl_nonspacing(unsigned int ucs);