diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-05-19 14:02:02 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-05-19 14:02:02 (GMT) |
commit | 51d384bfda7a3eb5a915b19d343c8bb657268d75 (patch) | |
tree | 5d397a27a26ba1f1486439d759196d0528f83248 /generic/tkInt.h | |
parent | 5204a77ccd7306b8ed7c3c264c88171f68180efd (diff) | |
download | tk-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.h | 2 |
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 /* |