Add UtfCount() to the public API
Closed / Wont Fix480128ffffffffffffffffffffffffffffffffffCreated 25 years agoUpdated 20 days ago
Descriptionplain2001-11-09 18:55:04
C extension authors may occasional need to know, how byte long a utf-8 char is. Although it isn't complicated to write code, that does this, it's a bit annoying, because the tcl core has already code, that does this: UtfCount() in generic/tclUtf.c.
dgp Ticket [480128ffff]: 1 change
[History diff]2003-11-13 06:01:15
serhiy.storchakawiki2026-11-13 11:18:44
The public API already covers this: Tcl_UniCharToUtf returns the UTF-8 length of a character, and Tcl_UtfToUniChar or Tcl_UtfNext give the byte length of a character in a UTF-8 string, so there is no need to export the internal TclUtfCount().
Log in (anonymous is fine) to add a comment.