Home
last modified time | relevance | path

Searched refs:rjust (Results 1 – 25 of 27) sorted by relevance

12

/external/python/cpython2/Lib/test/
Dtest_locale.py175 self._test_format("%20.f", -42, grouping=1, out='-42'.rjust(20))
178 out=('-4%s200' % self.sep).rjust(10))
189 out=('4%s200' % self.sep).rjust(10))
200 self._test_format("%20.f", -42, grouping=0, out='-42'.rjust(20))
201 self._test_format("%+10.f", -4200, grouping=0, out='-4200'.rjust(10))
215 out='--> ' + ('4%s200.00' % self.sep).rjust(10))
218 out='1000.00'.rjust(10))
221 out=('1%s000.00' % self.sep).rjust(10))
325 self._test_format("%10d", 4200, grouping=True, out='4 200'.rjust(10))
Dtest_unicode.py1781 check_format(u'123'.rjust(10, u'0'),
1783 check_format(u'123'.rjust(100),
1785 check_format(u'123'.rjust(100, u'0'),
1787 check_format(u'123'.rjust(80, u'0').rjust(100),
1790 check_format(u'123'.rjust(10, u'0'),
1792 check_format(u'123'.rjust(100),
1794 check_format(u'123'.rjust(100, u'0'),
1796 check_format(u'123'.rjust(80, u'0').rjust(100),
1799 check_format(u'123'.rjust(10, u'0'),
1801 check_format(u'123'.rjust(100),
[all …]
Dtest_bigmem.py271 s = SUBSTR.rjust(size)
340 s = SUBSTR.rjust(size)
402 s = SUBSTR.rjust(size)
Dtest_descr.py2705 self.assertIs(s.rjust(len(s)).__class__, str)
2706 self.assertEqual(s.rjust(len(s)), base)
2746 self.assertIs(u.rjust(len(u)).__class__, unicode)
2747 self.assertEqual(u.rjust(len(u)), base)
Dstring_tests.py597 self.assertEqual(b'*******abc', bytearray(b'abc').rjust(10, '*'))
/external/python/cpython2/Lib/
Ddis.py84 print repr(i).rjust(4),
93 print repr(oparg).rjust(5),
122 print repr(i).rjust(4),
128 print repr(oparg).rjust(5),
Dstring.py436 def rjust(s, width, *args): function
444 return s.rjust(width, *args)
DUserString.py113 def rjust(self, width, *args): member in UserString
114 return self.__class__(self.data.rjust(width, *args))
Dstringold.py278 def rjust(s, width): function
Dpstats.py420 substats = '%s %s %s %s' % (substats.rjust(7+2*len(indent)),
438 print >> self.stream, c.rjust(9),
Dpdb.py816 s = repr(lineno).rjust(3)
/external/python/cpython2/Tools/scripts/
Dbyteyears.py56 print repr(int(byteyears)).rjust(8)
Ddutree.py54 print prefix + repr(tsub).rjust(width) + ' ' + key
/external/toolchain-utils/binary_search_tool/
Dbinary_search_state.py419 seconds = str(seconds).rjust(2)
420 minutes = str(minutes).rjust(2)
421 hours = str(hours).rjust(2)
Dbisect.py78 key_str = str(key).rjust(max_key_len)
91 key_str = str(key).rjust(max_key_len)
/external/python/cpython2/Doc/tutorial/
Dinputoutput.rst74 ... print repr(x).rjust(2), repr(x*x).rjust(3),
76 ... print repr(x*x*x).rjust(4)
106 This example demonstrates the :meth:`str.rjust` method of string
/external/python/cpython2/Demo/tkinter/guido/
Dss1.py16 def rjust(x, n): function
17 return x.rjust(n)
18 align2action = {LEFT: ljust, CENTER: center, RIGHT: rjust}
/external/python/cpython2/Demo/sockets/
Dgopher.py163 print string.rjust(repr(i+1), 3) + ':', description,
/external/python/cpython2/Tools/iobench/
Diobench.py276 out.write(bw.rjust(12) + "\n")
/external/python/cpython2/Tools/ccbench/
Dccbench.py410 _sendto(sock, ("%r#%s\n" % (local_addr, msg)).rjust(packet_size), addr)
/external/autotest/site_utils/
Dgenerate_test_report563 key_entry = key_entry.rjust(width)
/external/brotli/research/
Dbrotlidump.py431 return b.rjust(leftColWidth)+':'+s.ljust(rightColWidth)
/external/python/cpython2/Doc/library/
Dstring.rst1022 rjust(s, width[, fillchar])
/external/python/cpython2/Misc/
Dcheatsheet495 s.rjust(width) return s right justified in a string of length width. (1),
1591 ljust/rjust/center Return a copy of string <s> left/right justified/centerd in
/external/python/cpython2/Doc/whatsnew/
D2.4.rst795 * The string methods :meth:`ljust`, :meth:`rjust`, and :meth:`center` now take

12