Searched refs:c_string (Results 1 – 10 of 10) sorted by relevance
/external/gtest/samples/ |
D | sample2_unittest.cc | 72 EXPECT_STREQ(NULL, s.c_string()); in TEST() 82 EXPECT_TRUE(strcmp(s.c_string(), kHelloString) == 0); in TEST() 91 EXPECT_TRUE(strcmp(s2.c_string(), kHelloString) == 0); in TEST() 99 EXPECT_TRUE(strcmp(s.c_string(), kHelloString) == 0); in TEST() 103 s.Set(s.c_string()); in TEST() 104 EXPECT_TRUE(strcmp(s.c_string(), kHelloString) == 0); in TEST() 108 EXPECT_STREQ(NULL, s.c_string()); in TEST()
|
D | sample2.cc | 39 const char * MyString::CloneCString(const char * c_string) { in CloneCString() argument 40 if (c_string == NULL) return NULL; in CloneCString() 42 const size_t len = strlen(c_string); in CloneCString() 44 memcpy(clone, c_string, len + 1); in CloneCString() 51 void MyString::Set(const char * c_string) { in Set() argument 53 const char * const temp = MyString::CloneCString(c_string); in Set()
|
D | sample2.h | 49 static const char * CloneCString(const char * c_string); 59 explicit MyString(const char * c_string) : c_string_(NULL) { in MyString() argument 60 Set(c_string); in MyString() 75 const char * c_string() const { return c_string_; } in c_string() function 82 void Set(const char * c_string);
|
/external/protobuf/gtest/samples/ |
D | sample2_unittest.cc | 72 EXPECT_STREQ(NULL, s.c_string()); in TEST() 82 EXPECT_TRUE(strcmp(s.c_string(), kHelloString) == 0); in TEST() 91 EXPECT_TRUE(strcmp(s2.c_string(), kHelloString) == 0); in TEST() 99 EXPECT_TRUE(strcmp(s.c_string(), kHelloString) == 0); in TEST() 103 s.Set(s.c_string()); in TEST() 104 EXPECT_TRUE(strcmp(s.c_string(), kHelloString) == 0); in TEST() 108 EXPECT_STREQ(NULL, s.c_string()); in TEST()
|
D | sample2.cc | 39 const char * MyString::CloneCString(const char * c_string) { in CloneCString() argument 40 if (c_string == NULL) return NULL; in CloneCString() 42 const size_t len = strlen(c_string); in CloneCString() 44 memcpy(clone, c_string, len + 1); in CloneCString() 51 void MyString::Set(const char * c_string) { in Set() argument 53 const char * const temp = MyString::CloneCString(c_string); in Set()
|
D | sample2.h | 49 static const char * CloneCString(const char * c_string); 59 explicit MyString(const char * c_string) : c_string_(NULL) { in MyString() argument 60 Set(c_string); in MyString() 75 const char * c_string() const { return c_string_; } in c_string() function 82 void Set(const char * c_string);
|
/external/chromium/sdch/open-vcdiff/src/ |
D | gflags_reporting.cc | 117 const char* c_string = main_part.c_str(); in DescribeOneFlag() local 122 assert(chars_left == strlen(c_string)); // Unless there's a \0 in there? in DescribeOneFlag() 123 const char* newline = strchr(c_string, '\n'); in DescribeOneFlag() 126 final_string += c_string; in DescribeOneFlag() 130 if (newline != NULL && newline - c_string < kLineLength - chars_in_line) { in DescribeOneFlag() 131 int n = static_cast<int>(newline - c_string); in DescribeOneFlag() 132 final_string.append(c_string, n); in DescribeOneFlag() 134 c_string += n + 1; in DescribeOneFlag() 138 while ( whitespace > 0 && !isspace(c_string[whitespace]) ) { in DescribeOneFlag() 144 final_string += c_string; in DescribeOneFlag() [all …]
|
/external/stlport/stlport/stl/ |
D | _rope.h | 1876 iterator insert(const iterator& __p, const _CharT* c_string) 1877 { insert(__p.index(), c_string); return __p; }
|
/external/v8/src/ |
D | parser.cc | 2251 SmartPointer<char> c_string = label->ToCString(DISALLOW_NULLS); in ParseExpressionOrLabelledStatement() local 2252 const char* elms[2] = { "Label", *c_string }; in ParseExpressionOrLabelledStatement()
|
/external/v8/test/cctest/ |
D | test-api.cc | 8154 const char* c_string = "Now is the time for all good men" in THREADED_TEST() local 8156 uint16_t* two_byte_string = AsciiToTwoByteString(c_string); in THREADED_TEST() 8161 i::Vector<const char>(c_string, i::StrLength(c_string))); in THREADED_TEST() 8164 i::StrLength(c_string))); in THREADED_TEST()
|