diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-03-22 21:41:44 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-03-22 21:41:44 +0100 |
commit | e665ecfc32fc8be96d8b2318c881da288b007c52 (patch) | |
tree | 545f34f3f8b37d3b1e5f0ea38456d2f9fc3a1224 /helpcompiler/source/HelpLinker.cxx | |
parent | 25ecb6f627852bc23ec8395ef24d8e90467d5758 (diff) |
Use rtl::isAscii* instead of ctype.h is* (and fix passing plain char)
Change-Id: If8085dc00db196eb51b6f14b4f4bac7c37dab249
Diffstat (limited to 'helpcompiler/source/HelpLinker.cxx')
-rw-r--r-- | helpcompiler/source/HelpLinker.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/helpcompiler/source/HelpLinker.cxx b/helpcompiler/source/HelpLinker.cxx index b06295fdf22c..285241ae18c4 100644 --- a/helpcompiler/source/HelpLinker.cxx +++ b/helpcompiler/source/HelpLinker.cxx @@ -212,9 +212,11 @@ namespace URLEncoder std::string result; for (char c : rIn) { - if (isalnum (c) || strchr (good, c)) + if (rtl::isAsciiAlphanumeric (static_cast<unsigned char>(c)) + || strchr (good, c)) + { result += c; - else { + } else { result += '%'; result += hex[static_cast<unsigned char>(c) >> 4]; result += hex[c & 0xf]; |