34 #ifndef GTEST_SAMPLES_SAMPLE2_H_ 35 #define GTEST_SAMPLES_SAMPLE2_H_ 49 static const char *
CloneCString(
const char * a_c_string);
59 explicit MyString(
const char * a_c_string) : c_string_(NULL)
67 Set(
string.c_string_);
81 return c_string_ == NULL ? 0 : strlen(c_string_);
89 #endif // GTEST_SAMPLES_SAMPLE2_H_
static const char * CloneCString(const char *a_c_string)
MyString(const MyString &string)
void Set(const char *c_string)
MyString(const char *a_c_string)
const MyString & operator=(const MyString &rhs)
const char * c_string() const