HomeSort by relevance Sort by last modified time
    Searched refs:c_string (Results 1 - 25 of 30) sorted by null

1 2

  /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_org/testing/gtest/samples/
sample2_unittest.cc 52 // Asserts that s.c_string() returns NULL.
72 EXPECT_STREQ(NULL, s.c_string());
82 EXPECT_EQ(0, strcmp(s.c_string(), kHelloString));
91 EXPECT_EQ(0, strcmp(s2.c_string(), kHelloString));
99 EXPECT_EQ(0, strcmp(s.c_string(), kHelloString));
103 s.Set(s.c_string());
104 EXPECT_EQ(0, strcmp(s.c_string(), kHelloString));
108 EXPECT_STREQ(NULL, s.c_string());
sample2.h 74 const char* c_string() const { return c_string_; } function in class:MyString
81 void Set(const char* c_string);
  /ndk/sources/third_party/googletest/googletest/samples/
sample2_unittest.cc 52 // Asserts that s.c_string() returns NULL.
72 EXPECT_STREQ(NULL, s.c_string());
82 EXPECT_EQ(0, strcmp(s.c_string(), kHelloString));
91 EXPECT_EQ(0, strcmp(s2.c_string(), kHelloString));
99 EXPECT_EQ(0, strcmp(s.c_string(), kHelloString));
103 s.Set(s.c_string());
104 EXPECT_EQ(0, strcmp(s.c_string(), kHelloString));
108 EXPECT_STREQ(NULL, s.c_string());
sample2.h 74 const char* c_string() const { return c_string_; } function in class:MyString
81 void Set(const char* c_string);
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ctypes/test/
test_strings.py 86 cs = c_string("abcdef")
88 # Cannot call len on a c_string any longer
94 self.assertEqual(c_string("abc\000def").value, "abc")
98 self.assertEqual(c_string("abc\000def").raw, "abc\000def\000")
109 self.assertRaises(TypeError, c_string, u"123")
114 self.assertRaises(TypeError, c_string, None)
117 # c_string(number) returns an empty string of size number
118 self.assertTrue(len(c_string(32).raw) == 32)
119 self.assertRaises(ValueError, c_string, -1)
120 self.assertRaises(ValueError, c_string, 0
    [all...]
test_funcptr.py 108 ## strtok.argtypes = (c_string, c_char_p)
110 def c_string(init): function in function:CFuncPtrTestCase.test_dllfunctions
115 b = c_string(s)
120 ## b = c_string(s)
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/ctypes/test/
test_strings.py 86 cs = c_string("abcdef")
88 # Cannot call len on a c_string any longer
94 self.assertEqual(c_string("abc\000def").value, "abc")
98 self.assertEqual(c_string("abc\000def").raw, "abc\000def\000")
109 self.assertRaises(TypeError, c_string, u"123")
114 self.assertRaises(TypeError, c_string, None)
117 # c_string(number) returns an empty string of size number
118 self.assertTrue(len(c_string(32).raw) == 32)
119 self.assertRaises(ValueError, c_string, -1)
120 self.assertRaises(ValueError, c_string, 0
    [all...]
test_funcptr.py 108 ## strtok.argtypes = (c_string, c_char_p)
110 def c_string(init): function in function:CFuncPtrTestCase.test_dllfunctions
115 b = c_string(s)
120 ## b = c_string(s)
  /prebuilts/misc/common/swig/include/2.0.11/java/
various.i 36 const char *c_string = JCALL2(GetStringUTFChars, jenv, j_string, 0);
38 $1[i] = new char [strlen(c_string)+1];
40 $1[i] = (char *)calloc(strlen(c_string)+1, sizeof(const char *));
42 strcpy($1[i], c_string);
43 JCALL2(ReleaseStringUTFChars, jenv, j_string, c_string);
  /external/chromium_org/third_party/mesa/src/src/gallium/state_trackers/d3d1x/d3d1xstutil/include/
d3d1xstutil.h 729 struct c_string struct
732 c_string(const char* p) function in struct:c_string
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) cons
    [all...]
  /external/mesa3d/src/gallium/state_trackers/d3d1x/d3d1xstutil/include/
d3d1xstutil.h 729 struct c_string struct
732 c_string(const char* p) function in struct:c_string
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) cons
    [all...]
  /external/pdfium/fpdfsdk/include/javascript/
JS_Value.h 105 void operator<<(FX_LPCWSTR c_string);
  /external/pdfium/fpdfsdk/src/javascript/
JS_Value.cpp 403 void CJS_PropValue::operator <<(FX_LPCWSTR c_string)
406 CJS_Value::operator =(c_string);
  /external/chromium_org/ppapi/tests/
test_case.h 341 inline std::string ToString(const char* c_string) {
342 return std::string(c_string);
  /external/chromium_org/third_party/mesa/src/src/gallium/state_trackers/d3d1x/gd3d11/
d3d11_screen.h 660 typedef std::unordered_map<std::pair<c_string, unsigned>, unsigned> semantic_to_idx_map_t;
663 semantic_to_idx_map[std::make_pair(c_string(input_element_descs[i].SemanticName), input_element_descs[i].SemanticIndex)] = i;
700 semantic_to_idx_map_t::iterator iter = semantic_to_idx_map.find(std::make_pair(c_string(params[i].SemanticName), params[i].SemanticIndex));
    [all...]
  /external/mesa3d/src/gallium/state_trackers/d3d1x/gd3d11/
d3d11_screen.h 660 typedef std::unordered_map<std::pair<c_string, unsigned>, unsigned> semantic_to_idx_map_t;
663 semantic_to_idx_map[std::make_pair(c_string(input_element_descs[i].SemanticName), input_element_descs[i].SemanticIndex)] = i;
700 semantic_to_idx_map_t::iterator iter = semantic_to_idx_map.find(std::make_pair(c_string(params[i].SemanticName), params[i].SemanticIndex));
    [all...]
  /external/chromium_org/third_party/cython/src/Cython/Compiler/
Code.py     [all...]
  /external/stlport/stlport/stl/
_rope.h     [all...]
  /ndk/sources/cxx-stl/stlport/stlport/stl/
_rope.h     [all...]
  /prebuilts/ndk/5/sources/cxx-stl/stlport/stlport/stl/
_rope.h     [all...]
  /prebuilts/ndk/6/sources/cxx-stl/stlport/stlport/stl/
_rope.h     [all...]
  /prebuilts/ndk/7/sources/cxx-stl/stlport/stlport/stl/
_rope.h     [all...]

Completed in 2752 milliseconds

1 2