summaryrefslogtreecommitdiff
path: root/comphelper/inc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-02-10 11:08:21 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-02-10 11:09:08 +0000
commit9c19e79f19f0dbd55def4a0cf473248ea91e188e (patch)
treea75fc652a3d79b4a18d69a7f3af3bb5b8f369262 /comphelper/inc
parent40cddfce8b2e53a4203760b40833bbd9092cac68 (diff)
extend unit test to islower
Diffstat (limited to 'comphelper/inc')
-rw-r--r--comphelper/inc/comphelper/string.hxx30
1 files changed, 30 insertions, 0 deletions
diff --git a/comphelper/inc/comphelper/string.hxx b/comphelper/inc/comphelper/string.hxx
index 3fba475b976b..e3d11d9d48e5 100644
--- a/comphelper/inc/comphelper/string.hxx
+++ b/comphelper/inc/comphelper/string.hxx
@@ -593,6 +593,16 @@ COMPHELPER_DLLPUBLIC bool isdigitAsciiString(const rtl::OUString &rString);
*/
COMPHELPER_DLLPUBLIC bool isalnumAsciiString(const rtl::OString &rString);
+/** Determine if an OUString contains solely ASCII alphanumeric chars/digits
+
+ @param rString An OUString
+
+ @return false if string contains any characters outside
+ the ASCII 'a'-'z', 'A'-'Z' and '0'-'9' ranges
+ true otherwise, including for empty string
+ */
+COMPHELPER_DLLPUBLIC bool isalnumAsciiString(const rtl::OUString &rString);
+
/** Determine if an OString contains solely ASCII lower-case chars
@param rString An OString
@@ -603,6 +613,16 @@ COMPHELPER_DLLPUBLIC bool isalnumAsciiString(const rtl::OString &rString);
*/
COMPHELPER_DLLPUBLIC bool islowerAsciiString(const rtl::OString &rString);
+/** Determine if an OUString contains solely ASCII lower-case chars
+
+ @param rString An OUString
+
+ @return false if string contains any characters outside
+ the ASCII 'a'-'z' ranges
+ true otherwise, including for empty string
+ */
+COMPHELPER_DLLPUBLIC bool islowerAsciiString(const rtl::OUString &rString);
+
/** Determine if an OString contains solely ASCII upper-case chars
@param rString An OString
@@ -613,6 +633,16 @@ COMPHELPER_DLLPUBLIC bool islowerAsciiString(const rtl::OString &rString);
*/
COMPHELPER_DLLPUBLIC bool isupperAsciiString(const rtl::OString &rString);
+/** Determine if an OUString contains solely ASCII upper-case chars
+
+ @param rString An OUString
+
+ @return false if string contains any characters outside
+ the ASCII 'A'-'Z' ranges
+ true otherwise, including for empty string
+ */
+COMPHELPER_DLLPUBLIC bool isupperAsciiString(const rtl::OUString &rString);
+
COMPHELPER_DLLPUBLIC inline bool isdigitAscii(sal_Unicode c)
{
return ((c >= '0') && (c <= '9'));