Home
last modified time | relevance | path

Searched refs:c_string (Results 1 – 10 of 10) sorted by relevance

/external/gtest/samples/
Dsample2_unittest.cc72 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()
Dsample2.cc39 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()
Dsample2.h49 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/
Dsample2_unittest.cc72 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()
Dsample2.cc39 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()
Dsample2.h49 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/
Dgflags_reporting.cc117 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.h1876 iterator insert(const iterator& __p, const _CharT* c_string)
1877 { insert(__p.index(), c_string); return __p; }
/external/v8/src/
Dparser.cc2251 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/
Dtest-api.cc8154 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()