Searched refs:wrapcol (Results 1 – 4 of 4) sorted by relevance
/external/pdfium/testing/tools/ |
D | encode_pdf_filter.py | 141 def __init__(self, out_buffer, wrapcol=0, **kwargs): argument 143 self.wrapcol = wrapcol 159 if not self.wrapcol: 163 tail = self.wrapcol - self.column 169 for start in range(tail, len(data), self.wrapcol): 171 self.buffer.write(data[start:start + self.wrapcol]) 174 self.column = self.wrapcol - -tail % self.wrapcol 205 if self.wrapcol and self.column > self.wrapcol - 2: 483 out_buffer = _WrapWithFilters(encoded_sink, args.filter, wrapcol=args.wrap)
|
/external/python/cpython3/Lib/ |
D | base64.py | 327 def a85encode(b, *, foldspaces=False, wrapcol=0, pad=False, adobe=False): argument 355 if wrapcol: 356 wrapcol = max(2 if adobe else 1, wrapcol) 357 chunks = [result[i: i + wrapcol] 358 for i in range(0, len(result), wrapcol)] 360 if len(chunks[-1]) + 2 > wrapcol:
|
/external/python/cpython3/Doc/library/ |
D | base64.rst | 180 .. function:: a85encode(b, *, foldspaces=False, wrapcol=0, pad=False, adobe=False) 189 *wrapcol* controls whether the output should have newline (``b'\n'``)
|
/external/python/cpython3/Lib/test/ |
D | test_base64.py | 498 eq(base64.a85encode(b"www.python.org", wrapcol=7, adobe=False), 500 eq(base64.a85encode(b"\0\0\0\0www.python.org", wrapcol=7, adobe=False), 502 eq(base64.a85encode(b"www.python.org", wrapcol=7, adobe=True),
|