Searched refs:capwords (Results 1 – 4 of 4) sorted by relevance
/third_party/python/Lib/test/ |
D | test_string.py | 24 self.assertEqual(string.capwords('abc def ghi'), 'Abc Def Ghi') 25 self.assertEqual(string.capwords('abc\tdef\nghi'), 'Abc Def Ghi') 26 self.assertEqual(string.capwords('abc\t def \nghi'), 'Abc Def Ghi') 27 self.assertEqual(string.capwords('ABC DEF GHI'), 'Abc Def Ghi') 28 self.assertEqual(string.capwords('ABC-DEF-GHI', '-'), 'Abc-Def-Ghi') 29 self.assertEqual(string.capwords('ABC-def DEF-ghi GHI'), 'Abc-def Def-ghi Ghi') 30 self.assertEqual(string.capwords(' aBc DeF '), 'Abc Def') 31 self.assertEqual(string.capwords('\taBc\tDeF\t'), 'Abc Def') 32 self.assertEqual(string.capwords('\taBc\tDeF\t', '\t'), '\tAbc\tDef\t')
|
/third_party/python/Lib/ |
D | string.py | 37 def capwords(s, sep=None): function
|
/third_party/python/Doc/library/ |
D | string.rst | 876 .. function:: capwords(s, sep=None)
|
/third_party/python/Misc/ |
D | HISTORY | 32000 string.capwords() has an optional second argument specifying the 32237 - Added regsub.capwords(). (XXX) 32239 - Added string.capwords(), string.capitalize() and string.translate().
|