/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)
|
/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_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 | 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);
|
/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);
|
sample2.cc | 52 // Makes sure this works when c_string == 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);
|
sample2.cc | 52 // Makes sure this works when c_string == 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);
|
sample2.cc | 52 // Makes sure this works when c_string == 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);
|
sample2.cc | 52 // Makes sure this works when c_string == 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/open-vcdiff/gflags/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/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/chromium_org/content/renderer/pepper/ |
npapi_glue.cc | 96 char* c_string = static_cast<char*>(malloc(value.size())); local 97 memcpy(c_string, value.data(), value.size()); 98 STRINGN_TO_NPVARIANT(c_string, value.size(), *result);
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/plat-mac/lib-scriptpackages/StdSuites/ |
__init__.py | 259 getbaseclasses(C_string) 454 'cstr' : C_string,
|