Searched refs:c_string (Results 1 – 10 of 10) sorted by relevance
/third_party/python/Lib/ctypes/test/ |
D | test_strings.py | 91 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 …]
|
D | test_funcptr.py | 110 def c_string(init): function 115 b = c_string(s)
|
/third_party/googletest/googletest/samples/ |
D | sample2_unittest.cc | 70 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()
|
D | sample2.h | 71 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/ |
D | pending-compilation-error-handler.h | 151 : c_string(s), type(s == nullptr ? kNone : kConstCharString) {} in MessageArgument() 155 const char* c_string; member
|
D | pending-compilation-error-handler.cc | 67 ->NewStringFromUtf8(base::CStrVector(args_[index].c_string), in ArgString()
|
/third_party/rust/crates/rust-cexpr/src/ |
D | literal.rs | 219 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/ |
D | parse.rs | 352 } 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/ |
D | assertions.md | 228 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/ |
D | ctypes.rst | 334 (which is still available as an alias), as well as the :func:`c_string` function
|