/third_party/python/Objects/clinic/ |
D | bytesobject.c.h | 23 bytes_split_impl(PyBytesObject *self, PyObject *sep, Py_ssize_t maxsplit); 34 Py_ssize_t maxsplit = -1; in bytes_split() local 59 maxsplit = ival; in bytes_split() 62 return_value = bytes_split_impl(self, sep, maxsplit); in bytes_split() 174 bytes_rsplit_impl(PyBytesObject *self, PyObject *sep, Py_ssize_t maxsplit); 185 Py_ssize_t maxsplit = -1; in bytes_rsplit() local 210 maxsplit = ival; in bytes_rsplit() 213 return_value = bytes_rsplit_impl(self, sep, maxsplit); in bytes_rsplit()
|
D | bytearrayobject.c.h | 387 Py_ssize_t maxsplit); 398 Py_ssize_t maxsplit = -1; in bytearray_split() local 423 maxsplit = ival; in bytearray_split() 426 return_value = bytearray_split_impl(self, sep, maxsplit); in bytearray_split() 486 Py_ssize_t maxsplit); 497 Py_ssize_t maxsplit = -1; in bytearray_rsplit() local 522 maxsplit = ival; in bytearray_rsplit() 525 return_value = bytearray_rsplit_impl(self, sep, maxsplit); in bytearray_rsplit()
|
D | unicodeobject.c.h | 875 unicode_split_impl(PyObject *self, PyObject *sep, Py_ssize_t maxsplit); 886 Py_ssize_t maxsplit = -1; in unicode_split() local 911 maxsplit = ival; in unicode_split() 914 return_value = unicode_split_impl(self, sep, maxsplit); in unicode_split() 972 unicode_rsplit_impl(PyObject *self, PyObject *sep, Py_ssize_t maxsplit); 983 Py_ssize_t maxsplit = -1; in unicode_rsplit() local 1008 maxsplit = ival; in unicode_rsplit() 1011 return_value = unicode_rsplit_impl(self, sep, maxsplit); in unicode_rsplit()
|
/third_party/boost/boost/python/ |
D | str.hpp | 84 str replace(object_cref old, object_cref new_, object_cref maxsplit) const; 103 list split(object_cref sep, object_cref maxsplit) const; 301 str replace(T1 const& old, T2 const& new_, T3 const& maxsplit) const in replace() 303 return base::replace(object(old),object(new_), object(maxsplit)); in replace() 357 list split(T1 const& sep, T2 const& maxsplit) const in split() 359 return base::split(object(sep), object(maxsplit)); in split()
|
/third_party/python/Lib/importlib/metadata/ |
D | _text.py | 97 def split(self, splitter=' ', maxsplit=0): argument 99 return pattern.split(self, maxsplit)
|
/third_party/markupsafe/ |
D | __init__.py | 120 self, sep: t.Optional[str] = None, maxsplit: int = -1 122 return [self.__class__(v) for v in super().split(sep, maxsplit)] 127 self, sep: t.Optional[str] = None, maxsplit: int = -1 129 return [self.__class__(v) for v in super().rsplit(sep, maxsplit)]
|
/third_party/flutter/skia/tools/skpbench/ |
D | _adb_path.py | 20 return pathname.rsplit('/', maxsplit=1)[-1]
|
/third_party/skia/tools/skpbench/ |
D | _adb_path.py | 20 return pathname.rsplit('/', maxsplit=1)[-1]
|
/third_party/python/Objects/stringlib/ |
D | split.h | 17 #define PREALLOC_SIZE(maxsplit) \ argument 18 (maxsplit >= MAX_PREALLOC ? MAX_PREALLOC : maxsplit+1)
|
/third_party/python/Lib/ |
D | re.py | 222 def split(pattern, string, maxsplit=0, flags=0): argument 230 return _compile(pattern, flags).split(string, maxsplit)
|
D | nturl2path.py | 70 comp = p.split(':', maxsplit=2)
|
/third_party/python/Objects/ |
D | bytearrayobject.c | 1413 Py_ssize_t maxsplit) in bytearray_split_impl() argument 1421 if (maxsplit < 0) in bytearray_split_impl() 1422 maxsplit = PY_SSIZE_T_MAX; in bytearray_split_impl() 1425 return stringlib_split_whitespace((PyObject*) self, s, len, maxsplit); in bytearray_split_impl() 1433 (PyObject*) self, s, len, sub, n, maxsplit in bytearray_split_impl() 1524 Py_ssize_t maxsplit) in bytearray_rsplit_impl() argument 1532 if (maxsplit < 0) in bytearray_rsplit_impl() 1533 maxsplit = PY_SSIZE_T_MAX; in bytearray_rsplit_impl() 1536 return stringlib_rsplit_whitespace((PyObject*) self, s, len, maxsplit); in bytearray_rsplit_impl() 1544 (PyObject*) self, s, len, sub, n, maxsplit in bytearray_rsplit_impl()
|
D | bytesobject.c | 1709 bytes_split_impl(PyBytesObject *self, PyObject *sep, Py_ssize_t maxsplit) in bytes_split_impl() argument 1717 if (maxsplit < 0) in bytes_split_impl() 1718 maxsplit = PY_SSIZE_T_MAX; in bytes_split_impl() 1720 return stringlib_split_whitespace((PyObject*) self, s, len, maxsplit); in bytes_split_impl() 1726 list = stringlib_split((PyObject*) self, s, len, sub, n, maxsplit); in bytes_split_impl() 1794 bytes_rsplit_impl(PyBytesObject *self, PyObject *sep, Py_ssize_t maxsplit) in bytes_rsplit_impl() argument 1802 if (maxsplit < 0) in bytes_rsplit_impl() 1803 maxsplit = PY_SSIZE_T_MAX; in bytes_rsplit_impl() 1805 return stringlib_rsplit_whitespace((PyObject*) self, s, len, maxsplit); in bytes_rsplit_impl() 1811 list = stringlib_rsplit((PyObject*) self, s, len, sub, n, maxsplit); in bytes_rsplit_impl()
|
/third_party/python/Lib/test/ |
D | string_tests.py | 453 'a|b|c|d', 'split', '|', maxsplit=1) 455 'a|b|c|d', 'split', sep='|', maxsplit=1) 457 'a|b|c|d', 'split', maxsplit=1, sep='|') 459 'a b c d', 'split', maxsplit=1) 523 'a|b|c|d', 'rsplit', '|', maxsplit=1) 525 'a|b|c|d', 'rsplit', sep='|', maxsplit=1) 527 'a|b|c|d', 'rsplit', maxsplit=1, sep='|') 529 'a b c d', 'rsplit', maxsplit=1)
|
/third_party/python/Modules/clinic/ |
D | _sre.c.h | 413 Py_ssize_t maxsplit); 424 Py_ssize_t maxsplit = 0; in _sre_SRE_Pattern_split() local 444 maxsplit = ival; in _sre_SRE_Pattern_split() 447 return_value = _sre_SRE_Pattern_split_impl(self, string, maxsplit); in _sre_SRE_Pattern_split()
|
/third_party/boost/libs/python/src/ |
D | str.cpp | 356 list str_base::split(object_cref sep, object_cref maxsplit) const in split() 358 return list(this->attr("split")(sep,maxsplit)); in split()
|
/third_party/python/Include/ |
D | unicodeobject.h | 854 Py_ssize_t maxsplit /* Maxsplit count */ 898 Py_ssize_t maxsplit /* Maxsplit count */
|
/third_party/boost/libs/python/doc/reference/ |
D | str.qbk | 92 str replace(T1 const& old, T2 const& new_, T3 const& maxsplit) const; 117 list split(T1 const& sep, T2 const& maxsplit) const;
|
/third_party/python/Tools/scripts/ |
D | smelly.py | 67 parts = line.split(maxsplit=2)
|
D | patchcheck.py | 135 status_text, filename = line.split(maxsplit=1)
|
D | stable_abi.py | 382 parts = line.split(maxsplit=2)
|
/third_party/python/Lib/collections/ |
D | __init__.py | 1500 def replace(self, old, new, maxsplit=-1): argument 1505 return self.__class__(self.data.replace(old, new, maxsplit)) 1524 def split(self, sep=None, maxsplit=-1): argument 1525 return self.data.split(sep, maxsplit) 1527 def rsplit(self, sep=None, maxsplit=-1): argument 1528 return self.data.rsplit(sep, maxsplit)
|
/third_party/mesa3d/bin/ |
D | gen_release_notes.py | 188 sha, message = commit.split(maxsplit=1)
|
/third_party/glib/glib/ |
D | update-gtranslit.py | 78 key, value, rest = (line + " % comment").split(maxsplit=2)
|
/third_party/python/Doc/library/ |
D | stdtypes.rst | 1961 .. method:: str.rsplit(sep=None, maxsplit=-1) 1964 If *maxsplit* is given, at most *maxsplit* splits are done, the *rightmost* 1990 .. method:: str.split(sep=None, maxsplit=-1) 1993 string. If *maxsplit* is given, at most *maxsplit* splits are done (thus, 1994 the list will have at most ``maxsplit+1`` elements). If *maxsplit* is not 2008 >>> '1,2,3'.split(',', maxsplit=1) 2024 >>> '1 2 3'.split(maxsplit=1) 2993 .. method:: bytes.rsplit(sep=None, maxsplit=-1) 2994 bytearray.rsplit(sep=None, maxsplit=-1) 2997 as the delimiter string. If *maxsplit* is given, at most *maxsplit* splits [all …]
|