Home
last modified time | relevance | path

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

123

/external/harfbuzz_ng/src/
Dgen-os2-unicode-ranges.py48 start = ("0x%X" % ranges[0]).rjust(8)
49 end = ("0x%X" % ranges[1]).rjust(8)
50 bit = ("%s" % ranges[2]).rjust(3)
/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 …]
/external/python/cpython3/Lib/test/
Dtest_locale.py173 self._test_format("%20.f", -42, grouping=1, out='-42'.rjust(20))
176 out=('-4%s200' % self.sep).rjust(10))
187 out=('4%s200' % self.sep).rjust(10))
198 self._test_format("%20.f", -42, grouping=0, out='-42'.rjust(20))
199 self._test_format("%+10.f", -4200, grouping=0, out='-4200'.rjust(10))
217 out='--> ' + ('4%s200.00' % self.sep).rjust(10))
220 out='1000.00'.rjust(10))
223 out=('1%s000.00' % self.sep).rjust(10))
328 self._test_format("%10d", 4200, grouping=True, out='4 200'.rjust(10))
Dtest_unicode.py931 '\U00100000'.rjust(3, '\U00010000')
2623 check_format('123'.rjust(10, '0'),
2625 check_format('123'.rjust(100),
2627 check_format('123'.rjust(100, '0'),
2629 check_format('123'.rjust(80, '0').rjust(100),
2632 check_format('123'.rjust(10, '0'),
2634 check_format('123'.rjust(100),
2636 check_format('123'.rjust(100, '0'),
2638 check_format('123'.rjust(80, '0').rjust(100),
2641 check_format('123'.rjust(10, '0'),
[all …]
/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
/external/python/rsa/rsa/
Dtransform.py203 raw_bytes = raw_bytes.rjust(fill_size, b'\x00')
208 raw_bytes = raw_bytes.rjust(length + padding_size, b'\x00')
/external/python/google-api-python-client/samples/searchforshopping/
Dhistograms.py47 labels.append(bucket['value'].rjust(20))
/external/python/cpython3/Tools/scripts/
Dbyteyears.py56 print(repr(int(byteyears)).rjust(8))
Ddutree.py54 print(prefix + repr(tsub).rjust(width) + ' ' + key)
/external/python/cpython2/Tools/scripts/
Dbyteyears.py56 print repr(int(byteyears)).rjust(8)
Ddutree.py54 print prefix + repr(tsub).rjust(width) + ' ' + key
/external/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_oa.py39 text = ''.rjust(_c_indent) + line
45 c_file.write(''.rjust(_c_indent) + code)
64 text = ''.rjust(_h_indent) + line
/external/toolchain-utils/binary_search_tool/
Dbisect.py78 key_str = str(key).rjust(max_key_len)
91 key_str = str(key).rjust(max_key_len)
Dbinary_search_state.py644 seconds = str(seconds).rjust(2)
645 minutes = str(minutes).rjust(2)
646 hours = str(hours).rjust(2)
/external/scapy/scapy/
Dpton_ntop.py60 result += hex_bytes(part.rjust(4, "0"))
/external/python/cpython3/Tools/clinic/
Dcpp.py44 return str(self.line_number).rjust(4) + ": " + self.condition()
/external/python/cpython3/Lib/
Ddis.py239 fields.append(repr(self.offset).rjust(offset_width))
244 fields.append(repr(self.arg).rjust(_OPARG_WIDTH))
/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/cpython3/Doc/tutorial/
Dinputoutput.rst219 ... print(repr(x).rjust(2), repr(x*x).rjust(3), end=' ')
221 ... print(repr(x*x*x).rjust(4))
237 The :meth:`str.rjust` method of string objects right-justifies a string in a
/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/cpython3/Tools/demo/
Dss1.py19 def rjust(x, n): function
20 return x.rjust(n)
21 align2action = {LEFT: ljust, CENTER: center, RIGHT: rjust}

123