diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2014-02-04 16:02:06 -0800 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2014-07-31 18:51:40 +0200 |
commit | 7f9398fd4d23469c77c6a53eac0819f92dfc3928 (patch) | |
tree | a4199487316639bda5b49b981cc99e21b6aeb9ab /src/corelib/tools/qlocale_tools.cpp | |
parent | 571f52920bce5e62e9d4ae67dc605839c81c4136 (diff) |
Add ascii_isspace to replace the locale-dependent isspace(3)
Change-Id: Icee42515179e6f3ddefe0692af69e90054449618
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/corelib/tools/qlocale_tools.cpp')
-rw-r--r-- | src/corelib/tools/qlocale_tools.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/corelib/tools/qlocale_tools.cpp b/src/corelib/tools/qlocale_tools.cpp index c2bae3df9d..f2d85b1985 100644 --- a/src/corelib/tools/qlocale_tools.cpp +++ b/src/corelib/tools/qlocale_tools.cpp @@ -243,7 +243,7 @@ qulonglong qstrtoull(const char *nptr, const char **endptr, int base, bool *ok) s = nptr; do { c = *s++; - } while (isspace(c)); + } while (ascii_isspace(c)); if (c == '-') { if (ok != 0) *ok = false; @@ -323,7 +323,7 @@ qlonglong qstrtoll(const char *nptr, const char **endptr, int base, bool *ok) s = nptr; do { c = *s++; - } while (isspace(c)); + } while (ascii_isspace(c)); if (c == '-') { neg = 1; c = *s++; @@ -1468,7 +1468,7 @@ Q_CORE_EXPORT double qstrtod(const char *s00, const char **se, bool *ok) rv = 0.; - for(s = s00; isspace(uchar(*s)); s++) + for(s = s00; ascii_isspace(uchar(*s)); s++) ; if (*s == '-') { |