/external/python/cpython3/Objects/clinic/ |
D | bytesobject.c.h | 23 bytes_split_impl(PyBytesObject *self, PyObject *sep, Py_ssize_t maxsplit); 32 Py_ssize_t maxsplit = -1; in bytes_split() local 35 &sep, &maxsplit)) { in bytes_split() 38 return_value = bytes_split_impl(self, sep, maxsplit); in bytes_split() 142 bytes_rsplit_impl(PyBytesObject *self, PyObject *sep, Py_ssize_t maxsplit); 151 Py_ssize_t maxsplit = -1; in bytes_rsplit() local 154 &sep, &maxsplit)) { in bytes_rsplit() 157 return_value = bytes_rsplit_impl(self, sep, maxsplit); in bytes_rsplit()
|
D | bytearrayobject.c.h | 188 Py_ssize_t maxsplit); 197 Py_ssize_t maxsplit = -1; in bytearray_split() local 200 &sep, &maxsplit)) { in bytearray_split() 203 return_value = bytearray_split_impl(self, sep, maxsplit); in bytearray_split() 263 Py_ssize_t maxsplit); 272 Py_ssize_t maxsplit = -1; in bytearray_rsplit() local 275 &sep, &maxsplit)) { in bytearray_rsplit() 278 return_value = bytearray_rsplit_impl(self, sep, maxsplit); in bytearray_rsplit()
|
D | unicodeobject.c.h | 663 unicode_split_impl(PyObject *self, PyObject *sep, Py_ssize_t maxsplit); 672 Py_ssize_t maxsplit = -1; in unicode_split() local 675 &sep, &maxsplit)) { in unicode_split() 678 return_value = unicode_split_impl(self, sep, maxsplit); in unicode_split() 736 unicode_rsplit_impl(PyObject *self, PyObject *sep, Py_ssize_t maxsplit); 745 Py_ssize_t maxsplit = -1; in unicode_rsplit() local 748 &sep, &maxsplit)) { in unicode_rsplit() 751 return_value = unicode_rsplit_impl(self, sep, maxsplit); in unicode_rsplit()
|
/external/python/cpython2/Lib/ |
D | stringold.py | 104 def split(s, sep=None, maxsplit=0): argument 115 return s.split(sep, maxsplit) 402 def replace(s, old, new, maxsplit=0): argument 410 return s.replace(old, new, maxsplit)
|
D | UserString.py | 107 def replace(self, old, new, maxsplit=-1): argument 108 return self.__class__(self.data.replace(old, new, maxsplit)) 118 def split(self, sep=None, maxsplit=-1): argument 119 return self.data.split(sep, maxsplit) 120 def rsplit(self, sep=None, maxsplit=-1): argument 121 return self.data.rsplit(sep, maxsplit)
|
D | string.py | 283 def split(s, sep=None, maxsplit=-1): argument 294 return s.split(sep, maxsplit) 298 def rsplit(s, sep=None, maxsplit=-1): argument 307 return s.rsplit(sep, maxsplit)
|
D | re.py | 168 def split(pattern, string, maxsplit=0, flags=0): argument 171 return _compile(pattern, flags).split(string, maxsplit)
|
/external/tensorflow/tensorflow/core/kernels/ |
D | string_split_op.cc | 103 int maxsplit) { in SplitV2() argument 121 if (maxsplit == 0) { in SplitV2() 135 if (maxsplit > 0 && split == maxsplit) { in SplitV2() 150 if (maxsplit > 0 && split == maxsplit) { in SplitV2()
|
/external/python/cpython2/Modules/ |
D | stropmodule.c | 30 split_whitespace(char *s, Py_ssize_t len, Py_ssize_t maxsplit) in split_whitespace() argument 63 if (maxsplit && (countsplit >= maxsplit) && i < len) { in split_whitespace() 100 Py_ssize_t splitcount, maxsplit; in strop_splitfields() local 108 maxsplit = 0; in strop_splitfields() 109 if (!PyArg_ParseTuple(args, "t#|z#n:split", &s, &len, &sub, &n, &maxsplit)) in strop_splitfields() 112 return split_whitespace(s, len, maxsplit); in strop_splitfields() 134 if (maxsplit && (splitcount >= maxsplit)) in strop_splitfields()
|
/external/tensorflow/tensorflow/core/api_def/base_api/ |
D | api_def_StringSplitV2.pbtxt | 16 name: "maxsplit" 18 An `int`. If `maxsplit > 0`, limit of the split of the result.
|
/external/tensorflow/tensorflow/python/ops/ |
D | string_ops.py | 255 def string_split_v2(source, sep=None, maxsplit=-1): argument 301 source, sep=sep, maxsplit=maxsplit)
|
/external/python/cpython2/Objects/stringlib/ |
D | split.h | 20 #define PREALLOC_SIZE(maxsplit) \ argument 21 (maxsplit >= MAX_PREALLOC ? MAX_PREALLOC : maxsplit+1)
|
/external/python/cpython3/Objects/stringlib/ |
D | split.h | 17 #define PREALLOC_SIZE(maxsplit) \ argument 18 (maxsplit >= MAX_PREALLOC ? MAX_PREALLOC : maxsplit+1)
|
/external/skqp/tools/skpbench/ |
D | _adb_path.py | 20 return pathname.rsplit('/', maxsplit=1)[-1]
|
/external/skia/tools/skpbench/ |
D | _adb_path.py | 20 return pathname.rsplit('/', maxsplit=1)[-1]
|
/external/python/cpython3/Lib/test/ |
D | string_tests.py | 414 'a|b|c|d', 'split', '|', maxsplit=1) 416 'a|b|c|d', 'split', sep='|', maxsplit=1) 418 'a|b|c|d', 'split', maxsplit=1, sep='|') 420 'a b c d', 'split', maxsplit=1) 484 'a|b|c|d', 'rsplit', '|', maxsplit=1) 486 'a|b|c|d', 'rsplit', sep='|', maxsplit=1) 488 'a|b|c|d', 'rsplit', maxsplit=1, sep='|') 490 'a b c d', 'rsplit', maxsplit=1)
|
/external/python/cpython3/Lib/ |
D | re.py | 205 def split(pattern, string, maxsplit=0, flags=0): argument 213 return _compile(pattern, flags).split(string, maxsplit)
|
/external/python/cpython3/Modules/clinic/ |
D | _sre.c.h | 368 Py_ssize_t maxsplit); 377 Py_ssize_t maxsplit = 0; in _sre_SRE_Pattern_split() local 380 &string, &maxsplit)) { in _sre_SRE_Pattern_split() 383 return_value = _sre_SRE_Pattern_split_impl(self, string, maxsplit); in _sre_SRE_Pattern_split()
|
/external/python/cpython3/Objects/ |
D | bytearrayobject.c | 1359 Py_ssize_t maxsplit) in bytearray_split_impl() argument 1367 if (maxsplit < 0) in bytearray_split_impl() 1368 maxsplit = PY_SSIZE_T_MAX; in bytearray_split_impl() 1371 return stringlib_split_whitespace((PyObject*) self, s, len, maxsplit); in bytearray_split_impl() 1379 (PyObject*) self, s, len, sub, n, maxsplit in bytearray_split_impl() 1470 Py_ssize_t maxsplit) in bytearray_rsplit_impl() argument 1478 if (maxsplit < 0) in bytearray_rsplit_impl() 1479 maxsplit = PY_SSIZE_T_MAX; in bytearray_rsplit_impl() 1482 return stringlib_rsplit_whitespace((PyObject*) self, s, len, maxsplit); in bytearray_rsplit_impl() 1490 (PyObject*) self, s, len, sub, n, maxsplit in bytearray_rsplit_impl()
|
D | bytesobject.c | 1773 bytes_split_impl(PyBytesObject *self, PyObject *sep, Py_ssize_t maxsplit) in bytes_split_impl() argument 1781 if (maxsplit < 0) in bytes_split_impl() 1782 maxsplit = PY_SSIZE_T_MAX; in bytes_split_impl() 1784 return stringlib_split_whitespace((PyObject*) self, s, len, maxsplit); in bytes_split_impl() 1790 list = stringlib_split((PyObject*) self, s, len, sub, n, maxsplit); in bytes_split_impl() 1858 bytes_rsplit_impl(PyBytesObject *self, PyObject *sep, Py_ssize_t maxsplit) in bytes_rsplit_impl() argument 1866 if (maxsplit < 0) in bytes_rsplit_impl() 1867 maxsplit = PY_SSIZE_T_MAX; in bytes_rsplit_impl() 1869 return stringlib_rsplit_whitespace((PyObject*) self, s, len, maxsplit); in bytes_rsplit_impl() 1875 list = stringlib_rsplit((PyObject*) self, s, len, sub, n, maxsplit); in bytes_rsplit_impl()
|
/external/python/cpython2/Objects/ |
D | bytearrayobject.c | 2085 Py_ssize_t maxsplit = -1; in bytearray_split() local 2090 if (!PyArg_ParseTuple(args, "|On:split", &subobj, &maxsplit)) in bytearray_split() 2092 if (maxsplit < 0) in bytearray_split() 2093 maxsplit = PY_SSIZE_T_MAX; in bytearray_split() 2096 return stringlib_split_whitespace((PyObject*) self, s, len, maxsplit); in bytearray_split() 2104 (PyObject*) self, s, len, sub, n, maxsplit in bytearray_split() 2178 Py_ssize_t maxsplit = -1; in bytearray_rsplit() local 2183 if (!PyArg_ParseTuple(args, "|On:rsplit", &subobj, &maxsplit)) in bytearray_rsplit() 2185 if (maxsplit < 0) in bytearray_rsplit() 2186 maxsplit = PY_SSIZE_T_MAX; in bytearray_rsplit() [all …]
|
D | bytesobject.c | 1780 bytes_split_impl(PyBytesObject *self, PyObject *sep, Py_ssize_t maxsplit) in bytes_split_impl() argument 1788 if (maxsplit < 0) in bytes_split_impl() 1789 maxsplit = PY_SSIZE_T_MAX; in bytes_split_impl() 1791 return stringlib_split_whitespace((PyObject*) self, s, len, maxsplit); in bytes_split_impl() 1797 list = stringlib_split((PyObject*) self, s, len, sub, n, maxsplit); in bytes_split_impl() 1865 bytes_rsplit_impl(PyBytesObject *self, PyObject *sep, Py_ssize_t maxsplit) in bytes_rsplit_impl() argument 1873 if (maxsplit < 0) in bytes_rsplit_impl() 1874 maxsplit = PY_SSIZE_T_MAX; in bytes_rsplit_impl() 1876 return stringlib_rsplit_whitespace((PyObject*) self, s, len, maxsplit); in bytes_rsplit_impl() 1882 list = stringlib_rsplit((PyObject*) self, s, len, sub, n, maxsplit); in bytes_rsplit_impl()
|
/external/python/cpython3/Tools/scripts/ |
D | smelly.py | 35 parts = line.split(maxsplit=2)
|
/external/python/cpython3/Lib/collections/ |
D | __init__.py | 1248 def replace(self, old, new, maxsplit=-1): argument 1253 return self.__class__(self.data.replace(old, new, maxsplit)) 1266 def split(self, sep=None, maxsplit=-1): argument 1267 return self.data.split(sep, maxsplit) 1268 def rsplit(self, sep=None, maxsplit=-1): argument 1269 return self.data.rsplit(sep, maxsplit)
|
/external/tensorflow/tensorflow/python/kernel_tests/ |
D | string_split_op_test.py | 240 tokens = string_ops.string_split_v2(strings, sep=',', maxsplit=1) 256 tokens = string_ops.string_split_v2(strings, maxsplit=1)
|