Home
last modified time | relevance | path

Searched refs:maxsplit (Results 1 – 25 of 35) sorted by relevance

12

/third_party/python/Objects/clinic/
Dbytesobject.c.h23 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()
Dbytearrayobject.c.h387 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()
Dunicodeobject.c.h875 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/
Dstr.hpp84 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.py97 def split(self, splitter=' ', maxsplit=0): argument
99 return pattern.split(self, maxsplit)
/third_party/markupsafe/
D__init__.py120 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.py20 return pathname.rsplit('/', maxsplit=1)[-1]
/third_party/skia/tools/skpbench/
D_adb_path.py20 return pathname.rsplit('/', maxsplit=1)[-1]
/third_party/python/Objects/stringlib/
Dsplit.h17 #define PREALLOC_SIZE(maxsplit) \ argument
18 (maxsplit >= MAX_PREALLOC ? MAX_PREALLOC : maxsplit+1)
/third_party/python/Lib/
Dre.py222 def split(pattern, string, maxsplit=0, flags=0): argument
230 return _compile(pattern, flags).split(string, maxsplit)
Dnturl2path.py70 comp = p.split(':', maxsplit=2)
/third_party/python/Objects/
Dbytearrayobject.c1413 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()
Dbytesobject.c1709 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/
Dstring_tests.py453 '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.h413 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/
Dstr.cpp356 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/
Dunicodeobject.h854 Py_ssize_t maxsplit /* Maxsplit count */
898 Py_ssize_t maxsplit /* Maxsplit count */
/third_party/boost/libs/python/doc/reference/
Dstr.qbk92 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/
Dsmelly.py67 parts = line.split(maxsplit=2)
Dpatchcheck.py135 status_text, filename = line.split(maxsplit=1)
Dstable_abi.py382 parts = line.split(maxsplit=2)
/third_party/python/Lib/collections/
D__init__.py1500 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/
Dgen_release_notes.py188 sha, message = commit.split(maxsplit=1)
/third_party/glib/glib/
Dupdate-gtranslit.py78 key, value, rest = (line + " % comment").split(maxsplit=2)
/third_party/python/Doc/library/
Dstdtypes.rst1961 .. 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 …]

12