diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-10-22 23:48:10 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-10-22 23:48:10 (GMT) |
commit | 9cfb05d5b2abc38b205ed1c41781ffde314f72b6 (patch) | |
tree | a454e3f88ddef08dc92d5af9eea480b179015094 /doc | |
parent | 500e1529f18c04152dbf1a395c6c7a61f08f63b3 (diff) | |
parent | c541afcd1abf1c09cd079d8b50a7abd33b8dc739 (diff) | |
download | tcl-9cfb05d5b2abc38b205ed1c41781ffde314f72b6.zip tcl-9cfb05d5b2abc38b205ed1c41781ffde314f72b6.tar.gz tcl-9cfb05d5b2abc38b205ed1c41781ffde314f72b6.tar.bz2 |
TIP #643: Provide a public API to retrieve nul terminator length for an encoding
Diffstat (limited to 'doc')
-rw-r--r-- | doc/Encoding.3 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/Encoding.3 b/doc/Encoding.3 index 553cc21..43bb2b8 100644 --- a/doc/Encoding.3 +++ b/doc/Encoding.3 @@ -52,6 +52,9 @@ const char * \fBTcl_GetEncodingName\fR(\fIencoding\fR) .sp int +\fBTcl_GetEncodingNulLength\fR(\fIencoding\fR) +.sp +int \fBTcl_SetSystemEncoding\fR(\fIinterp, name\fR) .sp const char * @@ -294,6 +297,9 @@ was used to create the encoding. The string returned by \fBTcl_GetEncodingName\fR is only guaranteed to persist until the \fIencoding\fR is deleted. The caller must not modify this string. .PP +\fBTcl_GetEncodingNulLength\fR returns the length of the terminating +nul byte sequence for strings in the specified encoding. +.PP \fBTcl_SetSystemEncoding\fR sets the default encoding that should be used whenever the user passes a NULL value for the \fIencoding\fR argument to any of the other encoding functions. If \fIname\fR is NULL, the system |