34 #ifndef GTEST_SAMPLES_SAMPLE2_H_ 35 #define GTEST_SAMPLES_SAMPLE2_H_ 58 explicit MyString(
const char* a_c_string) : c_string_(NULL) {
64 Set(
string.c_string_);
77 return c_string_ == NULL ? 0 : strlen(c_string_);
85 #endif // GTEST_SAMPLES_SAMPLE2_H_
static const char * CloneCString(const char *a_c_string)
MyString(const MyString &string)
FOLLY_PUSH_WARNING RHS rhs
void Set(const char *c_string)
MyString(const char *a_c_string)
const MyString & operator=(const MyString &rhs)
const char * c_string() const