Home
last modified time | relevance | path

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

/third_party/python/Lib/ctypes/test/
Dtest_strings.py91 cs = c_string("abcdef")
99 self.assertEqual(c_string("abc\000def").value, "abc")
103 self.assertEqual(c_string("abc\000def").raw, "abc\000def\000")
114 self.assertRaises(TypeError, c_string, "123")
120 self.assertRaises(TypeError, c_string, None)
124 self.assertEqual(len(c_string(32).raw), 32)
125 self.assertRaises(ValueError, c_string, -1)
126 self.assertRaises(ValueError, c_string, 0)
131 self.assertEqual(c_string(2).raw[-1], "\000")
132 self.assertEqual(len(c_string(2).raw), 2)
[all …]
Dtest_funcptr.py110 def c_string(init): function
115 b = c_string(s)
/third_party/googletest/googletest/samples/
Dsample2_unittest.cc69 EXPECT_STREQ(nullptr, s.c_string()); in TEST()
79 EXPECT_EQ(0, strcmp(s.c_string(), kHelloString)); in TEST()
88 EXPECT_EQ(0, strcmp(s2.c_string(), kHelloString)); in TEST()
96 EXPECT_EQ(0, strcmp(s.c_string(), kHelloString)); in TEST()
100 s.Set(s.c_string()); in TEST()
101 EXPECT_EQ(0, strcmp(s.c_string(), kHelloString)); in TEST()
105 EXPECT_STREQ(nullptr, s.c_string()); in TEST()
Dsample2.h72 const char* c_string() const { return c_string_; } in c_string() function
77 void Set(const char* c_string);
/third_party/rust/crates/rust-cexpr/src/
Dliteral.rs219 fn c_string(i: &[u8]) -> nom::IResult<&[u8], Vec<u8>> { in c_string() function
350 map(full(c_string), EvalResult::Str), in one_literal()
/third_party/googletest/docs/reference/
Dassertions.md228 To compare a C string with `NULL`, use `EXPECT_EQ(`*`c_string`*`, nullptr)` or
229 `EXPECT_NE(`*`c_string`*`, nullptr)`.
/third_party/python/Doc/library/
Dctypes.rst334 (which is still available as an alias), as well as the :func:`c_string` function