diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2024-01-12 13:12:41 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2024-01-12 13:12:41 (GMT) |
commit | 356e08632c75c5e2a765e20dcca4ad0cc101ef63 (patch) | |
tree | beb60cd6d549db3e4f4c95c1eae59aec4e278928 /generic/tclUtf.c | |
parent | d6848c8f365edd4e7c703eeaf96b281e38fd8850 (diff) | |
parent | b677876dcba5e36de46ff3f5d42473f716731806 (diff) | |
download | tcl-356e08632c75c5e2a765e20dcca4ad0cc101ef63.zip tcl-356e08632c75c5e2a765e20dcca4ad0cc101ef63.tar.gz tcl-356e08632c75c5e2a765e20dcca4ad0cc101ef63.tar.bz2 |
Merge 8.7
Diffstat (limited to 'generic/tclUtf.c')
-rw-r--r-- | generic/tclUtf.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/generic/tclUtf.c b/generic/tclUtf.c index 707bf0d..a59868a 100644 --- a/generic/tclUtf.c +++ b/generic/tclUtf.c @@ -1524,8 +1524,8 @@ TclpUtfNcmp2( * * Tcl_UtfNcmp -- * - * Compare at most numChars UTF chars of string cs to string ct. Both cs - * and ct are assumed to be at least numChars UTF chars long. + * Compare at most numChars chars (not bytes) of string cs to string ct. Both cs + * and ct are assumed to be at least numChars chars long. * * Results: * Return <0 if cs < ct, 0 if cs == ct, or >0 if cs > ct. @@ -1578,7 +1578,7 @@ int Tcl_UtfNcmp( const char *cs, /* UTF string to compare to ct. */ const char *ct, /* UTF string cs is compared to. */ - size_t numChars) /* Number of UTF chars to compare. */ + size_t numChars) /* Number of chars to compare. */ { Tcl_UniChar ch1 = 0, ch2 = 0; @@ -1609,7 +1609,7 @@ Tcl_UtfNcmp( * * Tcl_UtfNcasecmp -- * - * Compare at most numChars UTF chars of string cs to string ct case + * Compare at most numChars chars (not bytes) of string cs to string ct case * insensitive. Both cs and ct are assumed to be at least numChars UTF * chars long. * @@ -1661,7 +1661,7 @@ int Tcl_UtfNcasecmp( const char *cs, /* UTF string to compare to ct. */ const char *ct, /* UTF string cs is compared to. */ - size_t numChars) /* Number of UTF chars to compare. */ + size_t numChars) /* Number of chars to compare. */ { Tcl_UniChar ch1 = 0, ch2 = 0; @@ -1928,8 +1928,8 @@ Tcl_UniCharLen( * * TclUniCharNcmp -- * - * Compare at most numChars unichars of string ucs to string uct. - * Both ucs and uct are assumed to be at least numChars unichars long. + * Compare at most numChars chars (not bytes) of string ucs to string uct. + * Both ucs and uct are assumed to be at least numChars chars long. * * Results: * Return <0 if ucs < uct, 0 if ucs == uct, or >0 if ucs > uct. @@ -1944,7 +1944,7 @@ int TclUniCharNcmp( const Tcl_UniChar *ucs, /* Unicode string to compare to uct. */ const Tcl_UniChar *uct, /* Unicode string ucs is compared to. */ - size_t numChars) /* Number of unichars to compare. */ + size_t numChars) /* Number of chars to compare. */ { #if defined(WORDS_BIGENDIAN) /* @@ -1972,9 +1972,9 @@ TclUniCharNcmp( * * TclUniCharNcasecmp -- * - * Compare at most numChars unichars of string ucs to string uct case + * Compare at most numChars chars (not bytes) of string ucs to string uct case * insensitive. Both ucs and uct are assumed to be at least numChars - * unichars long. + * chars long. * * Results: * Return <0 if ucs < uct, 0 if ucs == uct, or >0 if ucs > uct. @@ -1989,7 +1989,7 @@ int TclUniCharNcasecmp( const Tcl_UniChar *ucs, /* Unicode string to compare to uct. */ const Tcl_UniChar *uct, /* Unicode string ucs is compared to. */ - size_t numChars) /* Number of Unichars to compare. */ + size_t numChars) /* Number of chars to compare. */ { for ( ; numChars != 0; numChars--, ucs++, uct++) { if (*ucs != *uct) { |