summaryrefslogtreecommitdiffstats
path: root/generic/tkInt.h
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-05-19 14:02:02 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-05-19 14:02:02 (GMT)
commit51d384bfda7a3eb5a915b19d343c8bb657268d75 (patch)
tree5d397a27a26ba1f1486439d759196d0528f83248 /generic/tkInt.h
parent5204a77ccd7306b8ed7c3c264c88171f68180efd (diff)
downloadtk-51d384bfda7a3eb5a915b19d343c8bb657268d75.zip
tk-51d384bfda7a3eb5a915b19d343c8bb657268d75.tar.gz
tk-51d384bfda7a3eb5a915b19d343c8bb657268d75.tar.bz2
New (internal) function TkUtfPrev(). This function can handle 4-byte (illegal) byte-sequences, arising when pasting Emoji on a Text widget on MacOS (for example)
Diffstat (limited to 'generic/tkInt.h')
-rw-r--r--generic/tkInt.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/generic/tkInt.h b/generic/tkInt.h
index d87cd03..c63748a 100644
--- a/generic/tkInt.h
+++ b/generic/tkInt.h
@@ -1290,9 +1290,11 @@ MODULE_SCOPE void TkUnixSetXftClipRegion(TkRegion clipRegion);
#if TCL_UTF_MAX > 4
# define TkUtfToUniChar Tcl_UtfToUniChar
# define TkUniCharToUtf Tcl_UniCharToUtf
+# define TkUtfPrev Tcl_UtfPrev
#else
MODULE_SCOPE int TkUtfToUniChar(const char *, int *);
MODULE_SCOPE int TkUniCharToUtf(int, char *);
+ MODULE_SCOPE const char *TkUtfPrev(const char *, const char *);
#endif
/*