Searched refs:c_wchar (Results 1 – 21 of 21) sorted by relevance
/third_party/python/Lib/ctypes/test/ |
D | test_bytes.py | 20 x = c_wchar("x") 21 self.assertRaises(TypeError, c_wchar, b"x") 25 c_wchar.from_param("x") 26 self.assertRaises(TypeError, c_wchar.from_param, b"x") 27 (c_wchar * 3)("a", "b", "c") 28 self.assertRaises(TypeError, c_wchar * 3, b"a", b"b", b"c") 49 _fields_ = [("a", c_wchar * 3)]
|
D | test_buffers.py | 34 self.assertEqual(sizeof(b), 32 * sizeof(c_wchar)) 39 self.assertEqual(sizeof(b), 4 * sizeof(c_wchar)) 54 self.assertEqual(sizeof(b), 4 * sizeof(c_wchar)) 65 expected = 5 if sizeof(c_wchar) == 2 else 3
|
D | test_strings.py | 67 BUF = c_wchar * 4 81 @unittest.skipIf(sizeof(c_wchar) < 4, 85 w = c_wchar(u) 160 c_wchar("x") 161 repr(byref(c_wchar("x"))) 162 c_wchar("x")
|
D | test_slicing.py | 134 dll.my_wcsdup.restype = POINTER(c_wchar) 135 dll.my_wcsdup.argtypes = POINTER(c_wchar), 148 if sizeof(c_wchar) == sizeof(c_short): 150 elif sizeof(c_wchar) == sizeof(c_int): 152 elif sizeof(c_wchar) == sizeof(c_long):
|
D | test_prototypes.py | 43 return (c_wchar * n)(*init) 176 func.argtypes = POINTER(c_wchar), 184 ca = c_wchar("a") 202 ca = c_wchar("a")
|
D | test_arrays.py | 79 a = (c_wchar * 5)() 123 sz = (c_wchar * 3).from_address(addressof(p))
|
D | test_pickling.py | 72 self.dumps(c_wchar("x"))
|
D | test_parameters.py | 208 c_wchar, 228 self.assertRegex(repr(c_wchar.from_param('a')), r"^<cparam 'u' at 0x[A-Fa-f0-9]+>$")
|
D | test_memfunctions.py | 70 result = memmove(a, p, len(p) * sizeof(c_wchar))
|
D | test_functions.py | 60 f.argtypes = [c_byte, c_wchar, c_int, c_long, c_float, c_double] 69 f.restype = c_wchar
|
D | test_as_parameter.py | 24 f.argtypes = [c_byte, c_wchar, c_int, c_long, c_float, c_double]
|
D | test_bitfields.py | 142 result = self.fail_fields(("a", c_wchar, 1))
|
D | test_byteswap.py | 202 for typ in c_wchar, c_void_p, POINTER(c_int):
|
D | test_structures.py | 309 _fields_ = [("name", c_wchar * 12),
|
/third_party/python/Lib/ctypes/ |
D | __init__.py | 259 class c_wchar(_SimpleCData): class 268 POINTER(c_wchar).from_param = c_wchar_p.from_param 280 if sizeof(c_wchar) == 2: 290 buftype = c_wchar * size 296 buftype = c_wchar * init
|
D | wintypes.py | 10 WCHAR = ctypes.c_wchar
|
/third_party/python/Lib/multiprocessing/ |
D | sharedctypes.py | 26 'c': ctypes.c_char, 'u': ctypes.c_wchar,
|
/third_party/python/Lib/test/ |
D | test_unicode.py | 2794 from ctypes import c_wchar, sizeof 2817 if sizeof(c_wchar) == 2: 2832 from ctypes import c_wchar, sizeof 2843 if sizeof(c_wchar) == 2:
|
D | test_codecs.py | 25 SIZEOF_WCHAR_T = ctypes.sizeof(ctypes.c_wchar)
|
/third_party/python/Doc/library/ |
D | ctypes.rst | 222 | :class:`c_wchar` | :c:type:`wchar_t` | 1-character string | 1882 a ctypes array of :class:`c_wchar`. 2346 .. class:: c_wchar
|
/third_party/python/Misc/ |
D | HISTORY | 11883 - Issue #8670: ctypes.c_wchar supports non-BMP characters with 32 bits wchar_t.
|