Home
last modified time | relevance | path

Searched refs:a_c_string (Results 1 – 4 of 4) sorted by relevance

/external/protobuf/gtest/samples/
Dsample2.cc39 const char* MyString::CloneCString(const char* a_c_string) { in CloneCString() argument
40 if (a_c_string == NULL) return NULL; in CloneCString()
42 const size_t len = strlen(a_c_string); in CloneCString()
44 memcpy(clone, a_c_string, len + 1); in CloneCString()
51 void MyString::Set(const char* a_c_string) { in Set() argument
53 const char* const temp = MyString::CloneCString(a_c_string); in Set()
Dsample2.h49 static const char* CloneCString(const char* a_c_string);
59 explicit MyString(const char* a_c_string) : c_string_(NULL) { in MyString() argument
60 Set(a_c_string); in MyString()
/external/google-breakpad/src/testing/gtest/samples/
Dsample2.cc39 const char* MyString::CloneCString(const char* a_c_string) { in CloneCString() argument
40 if (a_c_string == NULL) return NULL; in CloneCString()
42 const size_t len = strlen(a_c_string); in CloneCString()
44 memcpy(clone, a_c_string, len + 1); in CloneCString()
51 void MyString::Set(const char* a_c_string) { in Set() argument
53 const char* const temp = MyString::CloneCString(a_c_string); in Set()
Dsample2.h48 static const char* CloneCString(const char* a_c_string);
58 explicit MyString(const char* a_c_string) : c_string_(NULL) { in MyString() argument
59 Set(a_c_string); in MyString()