summaryrefslogtreecommitdiff
path: root/comphelper
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-02-10 13:02:08 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-02-10 14:20:52 +0000
commit740cf4a5903dd7aaad4e60ab71a43b062e1d50d8 (patch)
treef1745bf4393fedc03ed132a23ec57d7cf02838c6 /comphelper
parentf484e0b07820d5772376aa75bc0f823f1e77e2f2 (diff)
bah, we don't need these after all
Diffstat (limited to 'comphelper')
-rw-r--r--comphelper/inc/comphelper/string.hxx60
-rw-r--r--comphelper/qa/string/test_string.cxx75
2 files changed, 0 insertions, 135 deletions
diff --git a/comphelper/inc/comphelper/string.hxx b/comphelper/inc/comphelper/string.hxx
index e3d11d9d48e5..2c63954a3535 100644
--- a/comphelper/inc/comphelper/string.hxx
+++ b/comphelper/inc/comphelper/string.hxx
@@ -583,66 +583,6 @@ COMPHELPER_DLLPUBLIC bool isdigitAsciiString(const rtl::OString &rString);
*/
COMPHELPER_DLLPUBLIC bool isdigitAsciiString(const rtl::OUString &rString);
-/** Determine if an OString contains solely ASCII alphanumeric chars/digits
-
- @param rString An OString
-
- @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::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
-
- @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::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
-
- @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::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'));
diff --git a/comphelper/qa/string/test_string.cxx b/comphelper/qa/string/test_string.cxx
index 82eaee04bd90..e53ae9030fa4 100644
--- a/comphelper/qa/string/test_string.cxx
+++ b/comphelper/qa/string/test_string.cxx
@@ -55,9 +55,6 @@ public:
void testTokenCount();
void testDecimalStringToNumber();
void testIsdigitAsciiString();
- void testIsalnumAsciiString();
- void testIsupperAsciiString();
- void testIslowerAsciiString();
void testIndexOfL();
void testMatchIgnoreAsciiCaseL();
@@ -73,9 +70,6 @@ public:
CPPUNIT_TEST(testTokenCount);
CPPUNIT_TEST(testDecimalStringToNumber);
CPPUNIT_TEST(testIsdigitAsciiString);
- CPPUNIT_TEST(testIsalnumAsciiString);
- CPPUNIT_TEST(testIsupperAsciiString);
- CPPUNIT_TEST(testIslowerAsciiString);
CPPUNIT_TEST(testIndexOfL);
CPPUNIT_TEST(testMatchIgnoreAsciiCaseL);
CPPUNIT_TEST_SUITE_END();
@@ -135,75 +129,6 @@ void TestString::testIsdigitAsciiString()
CPPUNIT_ASSERT_EQUAL(comphelper::string::isdigitAsciiString(s3), true);
}
-void TestString::testIsalnumAsciiString()
-{
- rtl::OString s1(RTL_CONSTASCII_STRINGPARAM("1234"));
- CPPUNIT_ASSERT_EQUAL(comphelper::string::isalnumAsciiString(s1), true);
-
- rtl::OString s2(RTL_CONSTASCII_STRINGPARAM("1A34"));
- CPPUNIT_ASSERT_EQUAL(comphelper::string::isalnumAsciiString(s2), true);
-
- rtl::OString s3;
- CPPUNIT_ASSERT_EQUAL(comphelper::string::isalnumAsciiString(s3), true);
-
- rtl::OString s4(RTL_CONSTASCII_STRINGPARAM("1A[4"));
- CPPUNIT_ASSERT_EQUAL(comphelper::string::isalnumAsciiString(s4), false);
-
- rtl::OUString s5(RTL_CONSTASCII_USTRINGPARAM("1234"));
- CPPUNIT_ASSERT_EQUAL(comphelper::string::isalnumAsciiString(s5), true);
-
- rtl::OUString s6(RTL_CONSTASCII_USTRINGPARAM("1A34"));
- CPPUNIT_ASSERT_EQUAL(comphelper::string::isalnumAsciiString(s6), true);
-
- rtl::OUString s7;
- CPPUNIT_ASSERT_EQUAL(comphelper::string::isalnumAsciiString(s7), true);
-
- rtl::OUString s8(RTL_CONSTASCII_USTRINGPARAM("1A[4"));
- CPPUNIT_ASSERT_EQUAL(comphelper::string::isalnumAsciiString(s8), false);
-}
-
-void TestString::testIsupperAsciiString()
-{
- rtl::OString s1(RTL_CONSTASCII_STRINGPARAM("1234"));
- CPPUNIT_ASSERT_EQUAL(comphelper::string::isupperAsciiString(s1), false);
-
- rtl::OString s2(RTL_CONSTASCII_STRINGPARAM("aAbB"));
- CPPUNIT_ASSERT_EQUAL(comphelper::string::isupperAsciiString(s2), false);
-
- rtl::OString s3(RTL_CONSTASCII_STRINGPARAM("AABB"));
- CPPUNIT_ASSERT_EQUAL(comphelper::string::isupperAsciiString(s3), true);
-
- rtl::OUString s4(RTL_CONSTASCII_USTRINGPARAM("1234"));
- CPPUNIT_ASSERT_EQUAL(comphelper::string::isupperAsciiString(s4), false);
-
- rtl::OUString s5(RTL_CONSTASCII_USTRINGPARAM("aAbB"));
- CPPUNIT_ASSERT_EQUAL(comphelper::string::isupperAsciiString(s5), false);
-
- rtl::OUString s6(RTL_CONSTASCII_USTRINGPARAM("AABB"));
- CPPUNIT_ASSERT_EQUAL(comphelper::string::isupperAsciiString(s6), true);
-}
-
-void TestString::testIslowerAsciiString()
-{
- rtl::OString s1(RTL_CONSTASCII_STRINGPARAM("1234"));
- CPPUNIT_ASSERT_EQUAL(comphelper::string::islowerAsciiString(s1), false);
-
- rtl::OString s2(RTL_CONSTASCII_STRINGPARAM("aAbB"));
- CPPUNIT_ASSERT_EQUAL(comphelper::string::islowerAsciiString(s2), false);
-
- rtl::OString s3(RTL_CONSTASCII_STRINGPARAM("aabb"));
- CPPUNIT_ASSERT_EQUAL(comphelper::string::islowerAsciiString(s3), true);
-
- rtl::OUString s4(RTL_CONSTASCII_USTRINGPARAM("1234"));
- CPPUNIT_ASSERT_EQUAL(comphelper::string::islowerAsciiString(s4), false);
-
- rtl::OUString s5(RTL_CONSTASCII_USTRINGPARAM("aAbB"));
- CPPUNIT_ASSERT_EQUAL(comphelper::string::islowerAsciiString(s5), false);
-
- rtl::OUString s6(RTL_CONSTASCII_USTRINGPARAM("aabb"));
- CPPUNIT_ASSERT_EQUAL(comphelper::string::islowerAsciiString(s6), true);
-}
-
void TestString::testIndexOfL()
{
rtl::OString s1(RTL_CONSTASCII_STRINGPARAM("one two three"));