Lines Matching refs:wchar
2770 wchar, size = unicode_aswidechar('abcdef', 2)
2772 self.assertEqual(wchar, 'ab')
2774 wchar, size = unicode_aswidechar('abc', 3)
2776 self.assertEqual(wchar, 'abc')
2778 wchar, size = unicode_aswidechar('abc', 4)
2780 self.assertEqual(wchar, 'abc\0')
2782 wchar, size = unicode_aswidechar('abc', 10)
2784 self.assertEqual(wchar, 'abc\0')
2786 wchar, size = unicode_aswidechar('abc\0def', 20)
2788 self.assertEqual(wchar, 'abc\0def\0')
2797 wchar, size = unicode_aswidechar(nonbmp, buflen)
2799 self.assertEqual(wchar, nonbmp + '\0')
2808 wchar, size = unicode_aswidecharstring('abc')
2810 self.assertEqual(wchar, 'abc\0')
2812 wchar, size = unicode_aswidecharstring('abc\0def')
2814 self.assertEqual(wchar, 'abc\0def\0')
2821 wchar, size = unicode_aswidecharstring(nonbmp)
2823 self.assertEqual(wchar, nonbmp + '\0')