Searched refs:MyString (Results 1 – 3 of 3) sorted by relevance
41 class MyString {44 const MyString& operator=(const MyString& rhs);55 MyString() : c_string_(NULL) {} in MyString() function58 explicit MyString(const char* a_c_string) : c_string_(NULL) { in MyString() function63 MyString(const MyString& string) : c_string_(NULL) { in MyString() function71 ~MyString() { delete[] c_string_; } in ~MyString()
49 TEST(MyString, DefaultConstructor) { in TEST() argument50 const MyString s; in TEST()80 TEST(MyString, ConstructorFromCString) { in TEST() argument81 const MyString s(kHelloString); in TEST()88 TEST(MyString, CopyConstructor) { in TEST() argument89 const MyString s1(kHelloString); in TEST()90 const MyString s2 = s1; in TEST()95 TEST(MyString, Set) { in TEST() argument96 MyString s; in TEST()
39 const char* MyString::CloneCString(const char* a_c_string) { in CloneCString()51 void MyString::Set(const char* a_c_string) { in Set()53 const char* const temp = MyString::CloneCString(a_c_string); in Set()