summaryrefslogtreecommitdiffstats
path: root/generic/tclCompExpr.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2017-05-29 13:10:30 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2017-05-29 13:10:30 (GMT)
commit6e4592be32b35bcfdf27068df712332db8626f9c (patch)
treef458d29c81bcbe51c8c286fd96e205a7e2ec5a21 /generic/tclCompExpr.c
parentf6e07341e6d9bc5be18d57dc08c1bed03f036212 (diff)
downloadtcl-6e4592be32b35bcfdf27068df712332db8626f9c.zip
tcl-6e4592be32b35bcfdf27068df712332db8626f9c.tar.gz
tcl-6e4592be32b35bcfdf27068df712332db8626f9c.tar.bz2
Tcl_UtfToUniChar() -> TclUtfToUniChar() in various places: No change in functionality, just faster if ASCII only strings are involved.
Diffstat (limited to 'generic/tclCompExpr.c')
-rw-r--r--generic/tclCompExpr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclCompExpr.c b/generic/tclCompExpr.c
index 4390282..59eecf9 100644
--- a/generic/tclCompExpr.c
+++ b/generic/tclCompExpr.c
@@ -2064,13 +2064,13 @@ ParseLexeme(
if (!TclIsBareword(*start) || *start == '_') {
if (Tcl_UtfCharComplete(start, numBytes)) {
- scanned = Tcl_UtfToUniChar(start, &ch);
+ scanned = TclUtfToUniChar(start, &ch);
} else {
char utfBytes[TCL_UTF_MAX];
memcpy(utfBytes, start, (size_t) numBytes);
utfBytes[numBytes] = '\0';
- scanned = Tcl_UtfToUniChar(utfBytes, &ch);
+ scanned = TclUtfToUniChar(utfBytes, &ch);
}
*lexemePtr = INVALID;
Tcl_DecrRefCount(literal);