summaryrefslogtreecommitdiffstats
path: root/generic/tclStringObj.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2021-03-15 11:52:09 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2021-03-15 11:52:09 (GMT)
commit6e657cfb83595bc0481d833b708554a44e2142fb (patch)
tree1ca1c944beacd08dc50a55b0e6cf69a1c9d2e739 /generic/tclStringObj.c
parent57bf9fe12f8859459556da1de27dbdef24048a68 (diff)
parent185b0d14932f4cc8503e6dd235da5bd90ebc777c (diff)
downloadtcl-6e657cfb83595bc0481d833b708554a44e2142fb.zip
tcl-6e657cfb83595bc0481d833b708554a44e2142fb.tar.gz
tcl-6e657cfb83595bc0481d833b708554a44e2142fb.tar.bz2
Implement TIP #575: Switchable Tcl_UtfCharComplete()/Tcl_UtfNext()/Tcl_UtfPrev()
Diffstat (limited to 'generic/tclStringObj.c')
-rw-r--r--generic/tclStringObj.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclStringObj.c b/generic/tclStringObj.c
index 7a5c1a5..b557af0 100644
--- a/generic/tclStringObj.c
+++ b/generic/tclStringObj.c
@@ -1199,10 +1199,10 @@ Tcl_AppendLimitedToObj(
}
eLen = strlen(ellipsis);
while (eLen > limit) {
- eLen = TclUtfPrev(ellipsis+eLen, ellipsis) - ellipsis;
+ eLen = Tcl_UtfPrev(ellipsis+eLen, ellipsis) - ellipsis;
}
- toCopy = TclUtfPrev(bytes+limit+1-eLen, bytes) - bytes;
+ toCopy = Tcl_UtfPrev(bytes+limit+1-eLen, bytes) - bytes;
}
/*
@@ -2644,7 +2644,7 @@ AppendPrintfToObjVA(
* multi-byte characters.
*/
- q = TclUtfPrev(end, bytes);
+ q = Tcl_UtfPrev(end, bytes);
if (!Tcl_UtfCharComplete(q, (int)(end - q))) {
end = q;
}