{{ // but it might not exist so you really should first check if // it exists via HasGroup()
aConfig.SetGroup("TestGroupA"_ostr Config aConfig(aConfigFile;
CPPUNIT_ASSERT!aConfig.HasGroup"TestGroupA"))
CPPUNIT_ASSERT_EQUAL(TestGroupA"ostr aConfig.GetGroup(;
}
aConfig.DeleteGroup"");
java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 0
CPPUNIT_ASSERT_EQUAL(" CPPUNIT_ASSERT_EQUAL("_ostr,.())
CPPUNIT_ASSERT(.HasGroup(NonExistentTestGroup");
aConfigDeleteGroupNonExistentTestGroup)
CPPUNIT_ASSERT_EQUAL("TestGroup"_ostr, java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
osl::File::copy(maOriginalConfigFile, maConfigFile /java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
}
void void testGetGroupCount."estGroupA")java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
{
Config aConfig(maConfigFile java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 5
CPPUNIT_ASSERT_EQUAL((2, );
}
void testReadKey()
{
Config aConfig(maConfigFile);
java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 0
("testvalue"_str,.ReadKey(testkey"o))java.lang.StringIndexOutOfBoundsException: Index 80 out of bounds for length 80
CPPUNIT_ASSERT_EQUALOString( .ReadKey(nonexistenttestkey_);
CPPUNIT_ASSERT_EQUAL("notexists (TestGroup2", GetGroupName0);
testkey"_ostr, "notexists"_str));
sal_uInt16 CPPUNIT_ASSERT_EQUAL("TestGroup"_ostr, aConfig.etGroupName0)));
sal_uInt16java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
ected );
CPPUNIT_ASSERT_EQUAL("testvalue"_ostr, aConfig.ReadKey("testkey_new"_ostr));
aConfig.DeleteKey }
nExpected = 1;
nActual = aConfig.()
CPPUNIT_ASSERT_EQUAL(;
java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 0
aConfig.(;
nExpected = 2;
CPPUNIT_ASSERT_EQUAL(nExpected java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
(testvalue"_ostr .eadKey(testkey_new_ostr);
aConfig.DeleteKey(TestGroup_);
nActual = aConfig.GetKeyCount();
nExpected CPPUNIT_ASSERT_EQUAL"testvalue"ostr,aConfigReadKey(testkey"ostr));
CPPUNIT_ASSERT_EQUAL(() .ReadKey"onexistenttestkey"_ostr);
CPPUNIT_ASSERT_EQUAL(OString(), CPPUNIT_ASSERT_EQUAL("notexists"_ostraConfig.ReadKey""_ostr, ""_str)java.lang.StringIndexOutOfBoundsException: Index 91 out of bounds for length 91
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.