Home
last modified time | relevance | path

Searched refs:c_string (Results 1 – 10 of 10) 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.cc70 EXPECT_STREQ(nullptr, s.c_string()); in TEST()
80 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.h71 const char* c_string() const { return c_string_; } in c_string() function
76 void Set(const char* c_string);
/third_party/node/deps/v8/src/parsing/
Dpending-compilation-error-handler.h151 : c_string(s), type(s == nullptr ? kNone : kConstCharString) {} in MessageArgument()
155 const char* c_string; member
Dpending-compilation-error-handler.cc67 ->NewStringFromUtf8(base::CStrVector(args_[index].c_string), in ArgString()
/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/rust/crates/proc-macro2/src/
Dparse.rs352 } else if let Ok(ok) = c_string(input) { in literal_nocapture()
518 fn c_string(input: Cursor) -> Result<Cursor, Reject> { in c_string() function
/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