diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-05-29 13:10:30 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-05-29 13:10:30 (GMT) |
commit | 6e4592be32b35bcfdf27068df712332db8626f9c (patch) | |
tree | f458d29c81bcbe51c8c286fd96e205a7e2ec5a21 /generic/tclParse.c | |
parent | f6e07341e6d9bc5be18d57dc08c1bed03f036212 (diff) | |
download | tcl-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/tclParse.c')
-rw-r--r-- | generic/tclParse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclParse.c b/generic/tclParse.c index ce87fb0..3ecf4a5 100644 --- a/generic/tclParse.c +++ b/generic/tclParse.c @@ -975,13 +975,13 @@ TclParseBackslash( */ if (Tcl_UtfCharComplete(p, numBytes - 1)) { - count = Tcl_UtfToUniChar(p, &unichar) + 1; /* +1 for '\' */ + count = TclUtfToUniChar(p, &unichar) + 1; /* +1 for '\' */ } else { char utfBytes[TCL_UTF_MAX]; memcpy(utfBytes, p, (size_t) (numBytes - 1)); utfBytes[numBytes - 1] = '\0'; - count = Tcl_UtfToUniChar(utfBytes, &unichar) + 1; + count = TclUtfToUniChar(utfBytes, &unichar) + 1; } result = unichar; break; |