TIP 617: Tcl_WCharLen/Tcl_Char16Len

Bounty program for improvements to Tcl and certain Tcl packages.
Author:         Jan Nijtmans <[email protected]>
State:          Final
Type:           Project
Vote:           Done
Tcl-Version:    8.7
Tcl-Branch:     tip-617
Vote-Summary:   Accepted 3/0/2
Votes-For:      JN, MC, KW
Votes-Against:  none
Votes-Present:  FV, SL


This TIP proposes to extend the Tcl API with 2 new functions: Tcl_WCharLen/Tcl_Char16Len


This functions do about the same as Tcl_UniCharLen, which was earlier marked as deprecated TIP #542. However, it is used in tDOM, and - in fact - simple enough to be provided. Since TIP #542 provides Char16/WChar versions of many UTF-8-related functions, this one should be handled the same for consistency.


Implementation is in Tcl branch "tip-617"


This is 100% upwards compatible with Tcl 8.6.


This document has been placed in the public domain.