/external/protobuf/gtest/samples/ |
sample2.cc | 39 const char * MyString::CloneCString(const char * c_string) { 40 if (c_string == NULL) return NULL; 42 const size_t len = strlen(c_string); 44 memcpy(clone, c_string, len + 1); 51 void MyString::Set(const char * c_string) { 52 // Makes sure this works when c_string == c_string_ 53 const char * const temp = MyString::CloneCString(c_string);
|
sample2.h | 49 static const char * CloneCString(const char * c_string); 59 explicit MyString(const char * c_string) : c_string_(NULL) { 60 Set(c_string); 75 const char * c_string() const { return c_string_; } function in class:MyString 82 void Set(const char * c_string);
|
sample2_unittest.cc | 52 // Asserts that s.c_string() returns NULL. 72 EXPECT_STREQ(NULL, s.c_string()); 82 EXPECT_TRUE(strcmp(s.c_string(), kHelloString) == 0); 91 EXPECT_TRUE(strcmp(s2.c_string(), kHelloString) == 0); 99 EXPECT_TRUE(strcmp(s.c_string(), kHelloString) == 0); 103 s.Set(s.c_string()); 104 EXPECT_TRUE(strcmp(s.c_string(), kHelloString) == 0); 108 EXPECT_STREQ(NULL, s.c_string());
|
/external/chromium/testing/gtest/samples/ |
sample2_unittest.cc | 52 // Asserts that s.c_string() returns NULL. 72 EXPECT_STREQ(NULL, s.c_string()); 82 EXPECT_TRUE(strcmp(s.c_string(), kHelloString) == 0); 91 EXPECT_TRUE(strcmp(s2.c_string(), kHelloString) == 0); 99 EXPECT_TRUE(strcmp(s.c_string(), kHelloString) == 0); 103 s.Set(s.c_string()); 104 EXPECT_TRUE(strcmp(s.c_string(), kHelloString) == 0); 108 EXPECT_STREQ(NULL, s.c_string());
|
sample2.h | 75 const char* c_string() const { return c_string_; } function in class:MyString 82 void Set(const char* c_string);
|
/external/gtest/samples/ |
sample2_unittest.cc | 52 // Asserts that s.c_string() returns NULL. 72 EXPECT_STREQ(NULL, s.c_string()); 82 EXPECT_TRUE(strcmp(s.c_string(), kHelloString) == 0); 91 EXPECT_TRUE(strcmp(s2.c_string(), kHelloString) == 0); 99 EXPECT_TRUE(strcmp(s.c_string(), kHelloString) == 0); 103 s.Set(s.c_string()); 104 EXPECT_TRUE(strcmp(s.c_string(), kHelloString) == 0); 108 EXPECT_STREQ(NULL, s.c_string());
|
sample2.h | 75 const char* c_string() const { return c_string_; } function in class:MyString 82 void Set(const char* c_string);
|
/external/chromium/sdch/open-vcdiff/src/ |
gflags_reporting.cc | 117 const char* c_string = main_part.c_str(); local 122 assert(chars_left == strlen(c_string)); // Unless there's a \0 in there? 123 const char* newline = strchr(c_string, '\n'); 126 final_string += c_string; 130 if (newline != NULL && newline - c_string < kLineLength - chars_in_line) { 131 int n = static_cast<int>(newline - c_string); 132 final_string.append(c_string, n); 134 c_string += n + 1; 138 while ( whitespace > 0 && !isspace(c_string[whitespace]) ) { 144 final_string += c_string; [all...] |
/external/v8/src/ |
parser.cc | 1761 SmartArrayPointer<char> c_string = name->ToCString(DISALLOW_NULLS); local 2393 SmartArrayPointer<char> c_string = label->ToCString(DISALLOW_NULLS); local 4883 SmartArrayPointer<char> c_string = name->ToCString(DISALLOW_NULLS); local [all...] |
/external/stlport/stlport/stl/ |
_rope.h | [all...] |
/ndk/sources/cxx-stl/stlport/stlport/stl/ |
_rope.h | [all...] |
/prebuilts/ndk/android-ndk-r5/sources/cxx-stl/stlport/stlport/stl/ |
_rope.h | [all...] |
/prebuilts/ndk/android-ndk-r6/sources/cxx-stl/stlport/stlport/stl/ |
_rope.h | [all...] |
/prebuilts/ndk/android-ndk-r7/sources/cxx-stl/stlport/stlport/stl/ |
_rope.h | [all...] |
/external/v8/test/cctest/ |
test-api.cc | 11913 const char* c_string = "Now is the time for all good men" local [all...] |