Tcl Source Code

end-offset Object Type
Login
Bounty program for improvements to Tcl and certain Tcl packages.
Tcl 2018 Conference, Houston/TX, US, Oct 15-19
Send your abstracts to tclconference@googlegroups.com or submit via the online form
by Aug 20.

Source Files

Public Interface

Private Interface

Directly Depends On Public Interface

Directly Depends On Private Interface of

Discussion

This is the parser for Tcl values that indicate a position in a Tcl list or string. Recognizes the format (end|integer)((+/-)integer)?

It operates on numbers in the int range. When Tcl lists and string are allowed to have length greater than INT_MAX, 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.