Home
last modified time | relevance | path

Searched refs:chunks (Results 1 – 23 of 23) sorted by relevance

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
Dtextwrap.py188 chunks = pat.split(text)
189 chunks = filter(None, chunks) # remove empty chunks
190 return chunks
192 def _fix_sentence_endings(self, chunks): argument
203 while i < len(chunks)-1:
204 if chunks[i+1] == " " and patsearch(chunks[i]):
205 chunks[i+1] = " "
243 def _wrap_chunks(self, chunks): argument
262 chunks.reverse()
264 while chunks:
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Dtextwrap.py180 chunks = pat.split(text)
181 chunks = filter(None, chunks) # remove empty chunks
182 return chunks
184 def _fix_sentence_endings(self, chunks): argument
195 while i < len(chunks)-1:
196 if chunks[i+1] == " " and patsearch(chunks[i]):
197 chunks[i+1] = " "
235 def _wrap_chunks(self, chunks): argument
254 chunks.reverse()
256 while chunks:
[all …]
D_pyio.py941 chunks = [buf[pos:]] # Strip the consumed bytes.
955 chunks.append(chunk)
956 return b"".join(chunks) or nodata_val
966 chunks = [buf[pos:]]
979 chunks.append(chunk)
983 out = b"".join(chunks)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/distutils/
Dfancy_getopt.py424 chunks = re.split(r'( +|-+)', text)
425 chunks = filter(None, chunks) # ' - ' results in empty strings
428 while chunks:
433 while chunks:
434 l = len(chunks[0])
436 cur_line.append(chunks[0])
437 del chunks[0]
445 if chunks: # any chunks left to process?
451 cur_line.append(chunks[0][0:width])
452 chunks[0] = chunks[0][width:]
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/json/
Dencoder.py207 chunks = self.iterencode(o, _one_shot=True)
208 if not isinstance(chunks, (list, tuple)):
209 chunks = list(chunks)
210 return ''.join(chunks)
327 chunks = _iterencode_list(value, _current_indent_level)
329 chunks = _iterencode_dict(value, _current_indent_level)
331 chunks = _iterencode(value, _current_indent_level)
332 for chunk in chunks:
403 chunks = _iterencode_list(value, _current_indent_level)
405 chunks = _iterencode_dict(value, _current_indent_level)
[all …]
Ddecoder.py87 chunks = []
88 _append = chunks.append
141 return u''.join(chunks), end
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/json/
Dencoder.py201 chunks = self.iterencode(o, _one_shot=True)
202 if not isinstance(chunks, (list, tuple)):
203 chunks = list(chunks)
204 return ''.join(chunks)
321 chunks = _iterencode_list(value, _current_indent_level)
323 chunks = _iterencode_dict(value, _current_indent_level)
325 chunks = _iterencode(value, _current_indent_level)
326 for chunk in chunks:
397 chunks = _iterencode_list(value, _current_indent_level)
399 chunks = _iterencode_dict(value, _current_indent_level)
[all …]
Ddecoder.py77 chunks = []
78 _append = chunks.append
140 return u''.join(chunks), end
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/email/
Dheader.py335 chunks = _split_ascii(s, firstlen, self._maxlinelen,
337 return zip(chunks, [charset]*len(chunks))
357 chunks = []
366 if chunks and chunks[-1].endswith(' '):
370 _max_append(chunks, s, maxlinelen, extra)
372 return joiner.join(chunks)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/_io/
Diobase.c804 PyObject *chunks = PyList_New(0); in rawiobase_readall() local
807 if (chunks == NULL) in rawiobase_readall()
814 Py_DECREF(chunks); in rawiobase_readall()
818 if (PyList_GET_SIZE(chunks) == 0) { in rawiobase_readall()
819 Py_DECREF(chunks); in rawiobase_readall()
826 Py_DECREF(chunks); in rawiobase_readall()
836 r = PyList_Append(chunks, data); in rawiobase_readall()
839 Py_DECREF(chunks); in rawiobase_readall()
843 result = _PyBytes_Join(_PyIO_empty_bytes, chunks); in rawiobase_readall()
844 Py_DECREF(chunks); in rawiobase_readall()
Dtextio.c1454 PyObject *result = NULL, *chunks = NULL; in textiowrapper_read() local
1515 if (chunks == NULL) { in textiowrapper_read()
1516 chunks = PyList_New(0); in textiowrapper_read()
1517 if (chunks == NULL) in textiowrapper_read()
1520 if (PyList_Append(chunks, result) < 0) in textiowrapper_read()
1528 if (chunks != NULL) { in textiowrapper_read()
1529 if (result != NULL && PyList_Append(chunks, result) < 0) in textiowrapper_read()
1532 result = PyUnicode_Join(_PyIO_empty_str, chunks); in textiowrapper_read()
1535 Py_CLEAR(chunks); in textiowrapper_read()
1541 Py_XDECREF(chunks); in textiowrapper_read()
[all …]
Dbufferedio.c908 PyObject *chunks = NULL; in _buffered_readline() local
945 chunks = PyList_New(0); in _buffered_readline()
946 if (chunks == NULL) in _buffered_readline()
952 if (PyList_Append(chunks, res) < 0) { in _buffered_readline()
990 if (PyList_Append(chunks, res) < 0) { in _buffered_readline()
1000 if (res != NULL && PyList_Append(chunks, res) < 0) { in _buffered_readline()
1005 res = _PyBytes_Join(_PyIO_empty_bytes, chunks); in _buffered_readline()
1010 Py_XDECREF(chunks); in _buffered_readline()
1330 PyObject *chunks = PyList_New(0); in _bufferedreader_read_all() local
1332 if (chunks == NULL) in _bufferedreader_read_all()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/_io/
Diobase.c819 PyObject *chunks = PyList_New(0); in rawiobase_readall() local
822 if (chunks == NULL) in rawiobase_readall()
834 Py_DECREF(chunks); in rawiobase_readall()
838 if (PyList_GET_SIZE(chunks) == 0) { in rawiobase_readall()
839 Py_DECREF(chunks); in rawiobase_readall()
846 Py_DECREF(chunks); in rawiobase_readall()
856 r = PyList_Append(chunks, data); in rawiobase_readall()
859 Py_DECREF(chunks); in rawiobase_readall()
863 result = _PyBytes_Join(_PyIO_empty_bytes, chunks); in rawiobase_readall()
864 Py_DECREF(chunks); in rawiobase_readall()
Dtextio.c1488 PyObject *result = NULL, *chunks = NULL; in textiowrapper_read() local
1555 if (chunks == NULL) { in textiowrapper_read()
1556 chunks = PyList_New(0); in textiowrapper_read()
1557 if (chunks == NULL) in textiowrapper_read()
1560 if (PyList_Append(chunks, result) < 0) in textiowrapper_read()
1568 if (chunks != NULL) { in textiowrapper_read()
1569 if (result != NULL && PyList_Append(chunks, result) < 0) in textiowrapper_read()
1572 result = PyUnicode_Join(_PyIO_empty_str, chunks); in textiowrapper_read()
1575 Py_CLEAR(chunks); in textiowrapper_read()
1581 Py_XDECREF(chunks); in textiowrapper_read()
[all …]
Dbufferedio.c934 PyObject *chunks = NULL; in _buffered_readline() local
965 chunks = PyList_New(0); in _buffered_readline()
966 if (chunks == NULL) in _buffered_readline()
972 if (PyList_Append(chunks, res) < 0) { in _buffered_readline()
1017 if (PyList_Append(chunks, res) < 0) { in _buffered_readline()
1027 if (res != NULL && PyList_Append(chunks, res) < 0) { in _buffered_readline()
1032 res = _PyBytes_Join(_PyIO_empty_bytes, chunks); in _buffered_readline()
1037 Py_XDECREF(chunks); in _buffered_readline()
1348 PyObject *chunks = PyList_New(0); in _bufferedreader_read_all() local
1350 if (chunks == NULL) in _bufferedreader_read_all()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/
D_json.c426 PyObject *chunks = PyList_New(0); in scanstring_str() local
427 if (chunks == NULL) { in scanstring_str()
463 if (PyList_Append(chunks, chunk)) { in scanstring_str()
562 if (PyList_Append(chunks, chunk)) { in scanstring_str()
569 rval = join_list_unicode(chunks); in scanstring_str()
573 Py_CLEAR(chunks); in scanstring_str()
578 Py_XDECREF(chunks); in scanstring_str()
599 PyObject *chunks = PyList_New(0); in scanstring_unicode() local
600 if (chunks == NULL) { in scanstring_unicode()
631 if (PyList_Append(chunks, chunk)) { in scanstring_unicode()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
D_json.c426 PyObject *chunks = PyList_New(0); in scanstring_str() local
427 if (chunks == NULL) { in scanstring_str()
463 if (PyList_Append(chunks, chunk)) { in scanstring_str()
573 if (PyList_Append(chunks, chunk)) { in scanstring_str()
580 rval = join_list_unicode(chunks); in scanstring_str()
584 Py_CLEAR(chunks); in scanstring_str()
589 Py_XDECREF(chunks); in scanstring_str()
610 PyObject *chunks = PyList_New(0); in scanstring_unicode() local
611 if (chunks == NULL) { in scanstring_unicode()
642 if (PyList_Append(chunks, chunk)) { in scanstring_unicode()
[all …]
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Universal/DataHubDxe/
DDataHubDxe.uni5 // manageability data.T he hub is fed by "producers" with chunks of data in a defined format.
38 …accumulation of manageability data. The hub is fed by \"producers\" with chunks of data in a defin…
DDataHubDxe.inf5 # manageability data.T he hub is fed by "producers" with chunks of data in a defined format.
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/ccbench/
Dccbench.py346 chunks = []
360 chunks.append((t, s))
368 for recv_time, chunk in chunks:
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/zlib/
DFAQ241 Each call of inflate() or deflate() is limited to input and output chunks
243 type, but there is no limit to the number of chunks. Note however that the
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/zlib/
DFAQ244 Each call of inflate() or deflate() is limited to input and output chunks
246 type, but there is no limit to the number of chunks. Note however that the
/device/google/contexthub/firmware/os/core/
DnanohubCommand.c1659 int free, chunks, largest; in halSysInfo() local
1662 free = heapGetFreeSize(&chunks, &largest); in halSysInfo()