Home
last modified time | relevance | path

Searched refs:c_wchar (Results 1 – 21 of 21) sorted by relevance

/third_party/python/Lib/ctypes/test/
Dtest_bytes.py20 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)]
Dtest_buffers.py34 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
Dtest_strings.py67 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")
Dtest_slicing.py134 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):
Dtest_prototypes.py43 return (c_wchar * n)(*init)
176 func.argtypes = POINTER(c_wchar),
184 ca = c_wchar("a")
202 ca = c_wchar("a")
Dtest_arrays.py79 a = (c_wchar * 5)()
123 sz = (c_wchar * 3).from_address(addressof(p))
Dtest_pickling.py72 self.dumps(c_wchar("x"))
Dtest_parameters.py208 c_wchar,
228 self.assertRegex(repr(c_wchar.from_param('a')), r"^<cparam 'u' at 0x[A-Fa-f0-9]+>$")
Dtest_memfunctions.py70 result = memmove(a, p, len(p) * sizeof(c_wchar))
Dtest_functions.py60 f.argtypes = [c_byte, c_wchar, c_int, c_long, c_float, c_double]
69 f.restype = c_wchar
Dtest_as_parameter.py24 f.argtypes = [c_byte, c_wchar, c_int, c_long, c_float, c_double]
Dtest_bitfields.py142 result = self.fail_fields(("a", c_wchar, 1))
Dtest_byteswap.py202 for typ in c_wchar, c_void_p, POINTER(c_int):
Dtest_structures.py309 _fields_ = [("name", c_wchar * 12),
/third_party/python/Lib/ctypes/
D__init__.py259 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
Dwintypes.py10 WCHAR = ctypes.c_wchar
/third_party/python/Lib/multiprocessing/
Dsharedctypes.py26 'c': ctypes.c_char, 'u': ctypes.c_wchar,
/third_party/python/Lib/test/
Dtest_unicode.py2794 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:
Dtest_codecs.py25 SIZEOF_WCHAR_T = ctypes.sizeof(ctypes.c_wchar)
/third_party/python/Doc/library/
Dctypes.rst222 | :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/
DHISTORY11883 - Issue #8670: ctypes.c_wchar supports non-BMP characters with 32 bits wchar_t.