diff options
author | dgp <dgp@users.sourceforge.net> | 2011-04-28 14:44:47 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2011-04-28 14:44:47 (GMT) |
commit | 7fa90bb19565f59f0c918cac88e2a34bf51cd0fa (patch) | |
tree | c826199d351b0c6f0746a66124227d102686a420 /generic/tclStrToD.c | |
parent | 319c5292645aa41b4f56539f615ba5314b27c957 (diff) | |
parent | 5702e695062ec36c3addd403d748af48164db8b1 (diff) | |
download | tcl-7fa90bb19565f59f0c918cac88e2a34bf51cd0fa.zip tcl-7fa90bb19565f59f0c918cac88e2a34bf51cd0fa.tar.gz tcl-7fa90bb19565f59f0c918cac88e2a34bf51cd0fa.tar.bz2 |
New utility routines: TclIsSpaceProc() and TclCountSpaceRuns()
Use to replace calls to isspace() and their /* INTL */ risk.
Diffstat (limited to 'generic/tclStrToD.c')
-rwxr-xr-x | generic/tclStrToD.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclStrToD.c b/generic/tclStrToD.c index 205b865..59192e9 100755 --- a/generic/tclStrToD.c +++ b/generic/tclStrToD.c @@ -571,7 +571,7 @@ TclParseNumber( * I, N, and whitespace. */ - if (isspace(UCHAR(c))) { + if (TclIsSpaceProc(c)) { if (flags & TCL_PARSE_NO_WHITESPACE) { goto endgame; } @@ -1091,7 +1091,7 @@ TclParseNumber( } /* FALLTHROUGH */ case sNANPAREN: - if (isspace(UCHAR(c))) { + if (TclIsSpaceProc(c)) { break; } if (numSigDigs < 13) { @@ -1142,7 +1142,7 @@ TclParseNumber( * Accept trailing whitespace. */ - while (len != 0 && isspace(UCHAR(*p))) { + while (len != 0 && TclIsSpaceProc(*p)) { p++; len--; } |