.
D 2014-09-11T15:47:30.207
L end-offset\sObject\sType
P e37cdedd8f2d2e1f31c27dfbe37ce1ac79e457f5
U dgp
W 1044
<h1>Source Files</h1>
* portions of [/finfo?name=generic/tclUtil.c|tclUtil.c]
<h1>Public Interface</h1>
* <i>None</i>
<h1>Private Interface</h1>
* TclGetIntForIndex
* TclGetIntForIndexM
<h1>Directly Depends On Public Interface</h1>
* [Tcl_Obj System]
* [Conversions From String]
* [string Object Type]
<h1>Directly Depends On Private Interface of</h1>
* [Parsing and Evaluation]
* [Numbers]
<h1>Discussion</h1>
This is the parser for Tcl values that indicate a position in a Tcl list
or string. Recognizes the format
(<b>end</b>|<i>integer</i>)((<b>+</b>/<b>-</b>)<i>integer</i>)?
It operates on numbers in the int range. When Tcl lists and string are allowed to
have length greater than <b>INT_MAX</b>, these routines will require an interface
change.
The parser as written favors code re-use and clarity over absolute performance seeking.
It's difficult to imagine that the *M macro form is actually worth the trouble. As is,
it only operates at all on 32-bit systems.
Z db2467c5969dbcabf1d6dc8d441b285d