Home
last modified time | relevance | path

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

/external/protobuf/gtest/samples/
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_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.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_org/testing/gtest/samples/
Dsample2_unittest.cc72 EXPECT_STREQ(NULL, s.c_string()); in TEST()
82 EXPECT_EQ(0, strcmp(s.c_string(), kHelloString)); in TEST()
91 EXPECT_EQ(0, strcmp(s2.c_string(), kHelloString)); in TEST()
99 EXPECT_EQ(0, strcmp(s.c_string(), kHelloString)); in TEST()
103 s.Set(s.c_string()); in TEST()
104 EXPECT_EQ(0, strcmp(s.c_string(), kHelloString)); in TEST()
108 EXPECT_STREQ(NULL, s.c_string()); in TEST()
Dsample2.h74 const char* c_string() const { return c_string_; } in c_string() function
81 void Set(const char* c_string);
/external/mesa3d/src/gallium/state_trackers/d3d1x/d3d1xstutil/include/
Dd3d1xstutil.h729 struct c_string
732 c_string(const char* p)
742 static inline bool operator ==(const c_string& a, const c_string& b)
747 static inline bool operator !=(const c_string& a, const c_string& b)
796 struct hash<c_string> : public std::unary_function<c_string, size_t>
798 inline size_t operator()(c_string __val) const;
801 inline size_t hash<c_string>::operator()(c_string __val) const
/external/chromium_org/third_party/mesa/src/src/gallium/state_trackers/d3d1x/d3d1xstutil/include/
Dd3d1xstutil.h729 struct c_string
732 c_string(const char* p)
742 static inline bool operator ==(const c_string& a, const c_string& b)
747 static inline bool operator !=(const c_string& a, const c_string& b)
796 struct hash<c_string> : public std::unary_function<c_string, size_t>
798 inline size_t operator()(c_string __val) const;
801 inline size_t hash<c_string>::operator()(c_string __val) const
/external/pdfium/fpdfsdk/src/javascript/
DJS_Value.cpp403 void CJS_PropValue::operator <<(FX_LPCWSTR c_string) in operator <<() argument
406 CJS_Value::operator =(c_string); in operator <<()
/external/pdfium/fpdfsdk/include/javascript/
DJS_Value.h105 void operator<<(FX_LPCWSTR c_string);
/external/chromium_org/ppapi/tests/
Dtest_case.h341 inline std::string ToString(const char* c_string) { in ToString() argument
342 return std::string(c_string); in ToString()
/external/chromium_org/third_party/mesa/src/src/gallium/state_trackers/d3d1x/gd3d11/
Dd3d11_screen.h660 typedef std::unordered_map<std::pair<c_string, unsigned>, unsigned> semantic_to_idx_map_t; in CreateInputLayout()
663 …semantic_to_idx_map[std::make_pair(c_string(input_element_descs[i].SemanticName), input_element_de… in CreateInputLayout()
700 …semantic_to_idx_map_t::iterator iter = semantic_to_idx_map.find(std::make_pair(c_string(params[i].… in CreateInputLayout()
/external/mesa3d/src/gallium/state_trackers/d3d1x/gd3d11/
Dd3d11_screen.h660 typedef std::unordered_map<std::pair<c_string, unsigned>, unsigned> semantic_to_idx_map_t; in CreateInputLayout()
663 …semantic_to_idx_map[std::make_pair(c_string(input_element_descs[i].SemanticName), input_element_de… in CreateInputLayout()
700 …semantic_to_idx_map_t::iterator iter = semantic_to_idx_map.find(std::make_pair(c_string(params[i].… in CreateInputLayout()
/external/chromium_org/third_party/cython/src/Cython/Compiler/
DCode.py1095 c_string = self.get_string_const(text, py_version=2)
1097 c_string = self.get_string_const(text)
1098 py_string = c_string.get_py_string_const(
/external/stlport/stlport/stl/
D_rope.h1878 iterator insert(const iterator& __p, const _CharT* c_string)
1879 { insert(__p.index(), c_string); return __p; }
/external/chromium_org/v8/src/
Dhydrogen.cc6798 HConstant* c_string = HConstant::cast(string); in AddLoadStringInstanceType() local
6799 if (c_string->HasStringValue()) { in AddLoadStringInstanceType()
6800 return Add<HConstant>(c_string->StringValue()->map()->instance_type()); in AddLoadStringInstanceType()
6812 HConstant* c_string = HConstant::cast(string); in AddLoadStringLength() local
6813 if (c_string->HasStringValue()) { in AddLoadStringLength()
6814 return Add<HConstant>(c_string->StringValue()->length()); in AddLoadStringLength()
10098 HConstant* c_string = HConstant::cast(string); in BuildStringCharCodeAt() local
10100 if (c_string->HasStringValue() && c_index->HasNumberValue()) { in BuildStringCharCodeAt()
10102 Handle<String> s = c_string->StringValue(); in BuildStringCharCodeAt()
Dhydrogen-instructions.cc4416 HConstant* c_string = HConstant::cast(string); in New() local
4418 if (c_string->HasStringValue() && c_index->HasInteger32Value()) { in New()
4419 Handle<String> s = c_string->StringValue(); in New()
/external/chromium_org/v8/test/cctest/
Dtest-api.cc15197 const char* c_string = "Now is the time for all good men" in THREADED_TEST() local
15199 uint16_t* two_byte_string = AsciiToTwoByteString(c_string); in THREADED_TEST()
15205 i::Vector<const char>(c_string, i::StrLength(c_string))); in THREADED_TEST()
15208 i::StrLength(c_string))); in THREADED_TEST()