Lines Matching full:c_str
56 CPPUNIT_TEST(c_str);
115 void c_str();
248 CPPUNIT_MESSAGE(ostr.str().c_str());
304 const char* as = a.c_str();
305 const char* bs = b.c_str();
307 CPPUNIT_ASSERT( a.c_str() == bs );
308 CPPUNIT_ASSERT( b.c_str() == as );
327 char const* c_str = "Hello, World!";
328 string str(c_str);
329 CPPUNIT_ASSERT( str == c_str );
347 str.insert(1, c_str);
350 CPPUNIT_ASSERT( str == c_str );
354 str = c_str;
355 CPPUNIT_ASSERT( str == c_str );
385 * and c_str() provide different functionality!) and expect that this is
410 void StringTest::c_str()
416 CPPUNIT_ASSERT( *(yy.c_str()) == '\0' ); // ISO-IEC-14882:1998(E), 21.3.6, paragraph 1
422 CPPUNIT_ASSERT( strcmp( xx.c_str(), "1234562004-01-01" ) == 0 );
428 CPPUNIT_ASSERT( strcmp( xx.c_str(), "1234;" ) == 0 );
467 str.insert(10, str.c_str() + 5, 15);
471 str.insert(15, str.c_str() + 5, 25);
475 str.insert(0, str.c_str() + str.size() - 4, 4);
479 str.insert(0, str.c_str() + str.size() / 2 - 1, str.size() / 2 + 1);
595 str.replace(5, 15, str.c_str(), 10);
599 str.replace(5, 5, str.c_str(), 10);
616 CPPUNIT_ASSERT( *s.c_str() == 0 );
621 CPPUNIT_ASSERT( *s.c_str() == 0 );
626 CPPUNIT_ASSERT( *s.c_str() == '1' );
627 CPPUNIT_ASSERT( *(s.c_str() + 1) == 0 );