summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2022-01-18 23:26:20 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2022-01-18 23:26:20 (GMT)
commitd0b286927306af8bde7031529ad180eaa07dcc73 (patch)
treec1bb911acbb3f8eca0f486cf25f0a99477b72ed2
parentae78b892336fb5325a124506f2de9e283760857c (diff)
downloadtcl-d0b286927306af8bde7031529ad180eaa07dcc73.zip
tcl-d0b286927306af8bde7031529ad180eaa07dcc73.tar.gz
tcl-d0b286927306af8bde7031529ad180eaa07dcc73.tar.bz2
Update documentation for Tcl_GetRange()
-rw-r--r--doc/StringObj.36
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/StringObj.3 b/doc/StringObj.3
index 772073e..90b53f2 100644
--- a/doc/StringObj.3
+++ b/doc/StringObj.3
@@ -111,10 +111,12 @@ If negative, all characters up to the first null character are used.
The index of the Unicode character to return.
.AP int first in
The index of the first Unicode character in the Unicode range to be
-returned as a new value.
+returned as a new value. If negative, behave the same as if the
+value was 0.
.AP int last in
The index of the last Unicode character in the Unicode range to be
-returned as a new value.
+returned as a new value. If negative, take all characters up to
+the last one available.
.AP Tcl_Obj *objPtr in/out
Points to a value to manipulate.
.AP Tcl_Obj *appendObjPtr in