Merge pull request #676 from TsudaKageyu/string-hide-private

Hide private things from a public header.
This commit is contained in:
Tsuda Kageyu
2015-11-23 17:48:06 +09:00
3 changed files with 197 additions and 262 deletions

View File

@ -245,6 +245,12 @@ public:
CPPUNIT_ASSERT_EQUAL(String("-123").toInt(), -123);
CPPUNIT_ASSERT_EQUAL(String("123aa").toInt(), 123);
CPPUNIT_ASSERT_EQUAL(String("-123aa").toInt(), -123);
String("2147483648").toInt(&ok);
CPPUNIT_ASSERT_EQUAL(ok, false);
String("-2147483649").toInt(&ok);
CPPUNIT_ASSERT_EQUAL(ok, false);
}
void testSubstr()