diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-08-29 00:36:22 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-08-29 09:56:08 +0100 |
commit | 3829892dbc5475a49250729541be369ea9532d28 (patch) | |
tree | 9a57bc4865772c6613db2c71c6fde609d8563e09 /forms | |
parent | de82a40f84c69081a517617989c344ec9597cb45 (diff) |
merge together 5 or ascii isalpha/isalnum/isdigit implementations
Diffstat (limited to 'forms')
-rw-r--r-- | forms/source/xforms/submission/serialization_urlencoded.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/forms/source/xforms/submission/serialization_urlencoded.cxx b/forms/source/xforms/submission/serialization_urlencoded.cxx index b0f498ff1b96..021acad5b830 100644 --- a/forms/source/xforms/submission/serialization_urlencoded.cxx +++ b/forms/source/xforms/submission/serialization_urlencoded.cxx @@ -38,6 +38,7 @@ #include <rtl/ustrbuf.hxx> #include <rtl/strbuf.hxx> #include <unotools/processfactory.hxx> +#include <comphelper/string.hxx> #include <stdio.h> @@ -66,10 +67,8 @@ CSerializationURLEncoded::CSerializationURLEncoded() */ sal_Bool CSerializationURLEncoded::is_unreserved(sal_Char c) { - //digit? - if (c >= '0' && c <= '9') return sal_True; - if (c >= 'A' && c <= 'Z') return sal_True; - if (c >= 'a' && c <= 'z') return sal_True; + if (comphelper::string::isalnumAscii(c)) + return sal_True; switch (c) { case '-': case '_': |