Searched refs:wrapcol (Results 1 – 4 of 4) sorted by relevance
/external/pdfium/testing/tools/ |
D | encode_pdf_filter.py | 91 def __init__(self, out_buffer, wrapcol=0, **kwargs): argument 93 self.wrapcol = wrapcol 97 if not self.wrapcol: 101 tail = self.wrapcol - self.column 107 for start in range(tail, len(data), self.wrapcol): 109 self.buffer.write(data[start:start + self.wrapcol]) 112 self.column = self.wrapcol - -tail % self.wrapcol 133 if self.wrapcol and self.column > self.wrapcol - 2: 274 out_buffer = _WrapWithFilters(encoded_sink, args.filter, wrapcol=args.wrap)
|
/external/python/cpython3/Lib/ |
D | base64.py | 303 def a85encode(b, *, foldspaces=False, wrapcol=0, pad=False, adobe=False): argument 331 if wrapcol: 332 wrapcol = max(2 if adobe else 1, wrapcol) 333 chunks = [result[i: i + wrapcol] 334 for i in range(0, len(result), wrapcol)] 336 if len(chunks[-1]) + 2 > wrapcol:
|
/external/python/cpython3/Lib/test/ |
D | test_base64.py | 428 eq(base64.a85encode(b"www.python.org", wrapcol=7, adobe=False), 430 eq(base64.a85encode(b"\0\0\0\0www.python.org", wrapcol=7, adobe=False), 432 eq(base64.a85encode(b"www.python.org", wrapcol=7, adobe=True),
|
/external/python/cpython3/Doc/library/ |
D | base64.rst | 159 .. function:: a85encode(b, *, foldspaces=False, wrapcol=0, pad=False, adobe=False) 168 *wrapcol* controls whether the output should have newline (``b'\n'``)
|