summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2022-09-22 13:45:21 (GMT)
committerdgp <dgp@users.sourceforge.net>2022-09-22 13:45:21 (GMT)
commit6a34b586f626d8b0a1f366ecfebd13db395647be (patch)
treeba339aad75df8a5bf46182b0f4b5c224029da505 /doc
parent6a3c75c37fdb9e5ad6a19ad77d0be583468637e7 (diff)
parent0fb01a32c6198299b2a5e1c919c36d72c0dfb9ae (diff)
downloadtcl-6a34b586f626d8b0a1f366ecfebd13db395647be.zip
tcl-6a34b586f626d8b0a1f366ecfebd13db395647be.tar.gz
tcl-6a34b586f626d8b0a1f366ecfebd13db395647be.tar.bz2
merge trunk
Diffstat (limited to 'doc')
-rw-r--r--doc/StringObj.310
1 files changed, 6 insertions, 4 deletions
diff --git a/doc/StringObj.3 b/doc/StringObj.3
index 14041c5..2d41018 100644
--- a/doc/StringObj.3
+++ b/doc/StringObj.3
@@ -210,10 +210,12 @@ value's Unicode representation. If the index is out of range or
it references a low surrogate preceded by a high surrogate, it returns -1;
.PP
\fBTcl_GetRange\fR returns a newly created value comprised of the
-characters between \fIfirst\fR and \fIlast\fR (inclusive) in the
-value's Unicode representation. If the value's Unicode
-representation is invalid, the Unicode representation is regenerated
-from the value's string representation.
+characters between \fIfirst\fR and \fIlast\fR (inclusive) in the value's
+Unicode representation. If the value's Unicode representation
+is invalid, the Unicode representation is regenerated from the value's
+string representation. If \fIfirst\fR == TCL_INDEX_NONE, then the returned
+string starts at the beginning of the value. If \fIlast\fR == TCL_INDEX_NONE,
+then the returned string ends at the end of the value.
.PP
\fBTcl_GetCharLength\fR returns the number of characters (as opposed
to bytes) in the string value.