Home
last modified time | relevance | path

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

12345678

/aosp_15_r20/external/tensorflow/tensorflow/python/ops/ragged/
H A Dragged_string_ops.py471 def string_split_v2(input, sep=None, maxsplit=-1, name=None): # pylint: disable=redefined-builtin argument
513 string_split_v2(input.flat_values, sep, maxsplit))
517 return string_split_v2(array_ops.stack([input]), sep, maxsplit)[0]
520 input, sep=sep, maxsplit=maxsplit)
528 ragged_tensor.RaggedTensor.from_tensor(input), sep, maxsplit)
598 def strings_split_v1(input=None, sep=None, maxsplit=-1, # pylint: disable=redefined-builtin argument
654 return string_ops.string_split_v2(input, sep=sep, maxsplit=maxsplit)
656 return string_split_v2(input, sep=sep, maxsplit=maxsplit).to_sparse()
658 return string_split_v2(input, sep=sep, maxsplit=maxsplit)
/aosp_15_r20/external/python/cpython3/Objects/clinic/
Dbytesobject.c.h41 bytes_split_impl(PyBytesObject *self, PyObject *sep, Py_ssize_t maxsplit);
52 Py_ssize_t maxsplit = -1; in bytes_split() local
77 maxsplit = ival; in bytes_split()
80 return_value = bytes_split_impl(self, sep, maxsplit); in bytes_split()
192 bytes_rsplit_impl(PyBytesObject *self, PyObject *sep, Py_ssize_t maxsplit);
203 Py_ssize_t maxsplit = -1; in bytes_rsplit() local
228 maxsplit = ival; in bytes_rsplit()
231 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.h899 unicode_split_impl(PyObject *self, PyObject *sep, Py_ssize_t maxsplit);
910 Py_ssize_t maxsplit = -1; in unicode_split() local
935 maxsplit = ival; in unicode_split()
938 return_value = unicode_split_impl(self, sep, maxsplit); in unicode_split()
998 unicode_rsplit_impl(PyObject *self, PyObject *sep, Py_ssize_t maxsplit);
1009 Py_ssize_t maxsplit = -1; in unicode_rsplit() local
1034 maxsplit = ival; in unicode_rsplit()
1037 return_value = unicode_rsplit_impl(self, sep, maxsplit); in unicode_rsplit()
/aosp_15_r20/external/tensorflow/tensorflow/core/kernels/
H A Dstring_split_op.cc103 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()
/aosp_15_r20/external/cronet/third_party/re2/src/python/
H A Dre2.py93 def split(pattern, text, maxsplit=0, options=None): argument
94 return compile(pattern, options=options).split(text, maxsplit)
261 def _split(self, cb, text, maxsplit=0): argument
262 if maxsplit < 0:
264 elif maxsplit > 0:
265 matchiter = itertools.islice(self.finditer(text), maxsplit)
279 def split(self, text, maxsplit=0): argument
281 pieces, _ = self._split(cb, text, maxsplit)
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567b/python3/lib/python3.11/site-packages/setuptools/_vendor/more_itertools/
Dmore.py1162 def split_at(iterable, pred, maxsplit=-1, keep_separator=False): argument
1185 if maxsplit == 0:
1196 if maxsplit == 1:
1200 maxsplit -= 1
1206 def split_before(iterable, pred, maxsplit=-1): argument
1222 if maxsplit == 0:
1231 if maxsplit == 1:
1235 maxsplit -= 1
1241 def split_after(iterable, pred, maxsplit=-1): argument
1258 if maxsplit == 0:
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r536225/python3/lib/python3.11/site-packages/setuptools/_vendor/more_itertools/
Dmore.py1162 def split_at(iterable, pred, maxsplit=-1, keep_separator=False): argument
1185 if maxsplit == 0:
1196 if maxsplit == 1:
1200 maxsplit -= 1
1206 def split_before(iterable, pred, maxsplit=-1): argument
1222 if maxsplit == 0:
1231 if maxsplit == 1:
1235 maxsplit -= 1
1241 def split_after(iterable, pred, maxsplit=-1): argument
1258 if maxsplit == 0:
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r522817/python3/lib/python3.11/site-packages/setuptools/_vendor/more_itertools/
Dmore.py1162 def split_at(iterable, pred, maxsplit=-1, keep_separator=False): argument
1185 if maxsplit == 0:
1196 if maxsplit == 1:
1200 maxsplit -= 1
1206 def split_before(iterable, pred, maxsplit=-1): argument
1222 if maxsplit == 0:
1231 if maxsplit == 1:
1235 maxsplit -= 1
1241 def split_after(iterable, pred, maxsplit=-1): argument
1258 if maxsplit == 0:
[all …]
/aosp_15_r20/external/python/setuptools/setuptools/_vendor/more_itertools/
Dmore.py1162 def split_at(iterable, pred, maxsplit=-1, keep_separator=False): argument
1185 if maxsplit == 0:
1196 if maxsplit == 1:
1200 maxsplit -= 1
1206 def split_before(iterable, pred, maxsplit=-1): argument
1222 if maxsplit == 0:
1231 if maxsplit == 1:
1235 maxsplit -= 1
1241 def split_after(iterable, pred, maxsplit=-1): argument
1258 if maxsplit == 0:
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567/python3/lib/python3.11/site-packages/setuptools/_vendor/more_itertools/
Dmore.py1162 def split_at(iterable, pred, maxsplit=-1, keep_separator=False): argument
1185 if maxsplit == 0:
1196 if maxsplit == 1:
1200 maxsplit -= 1
1206 def split_before(iterable, pred, maxsplit=-1): argument
1222 if maxsplit == 0:
1231 if maxsplit == 1:
1235 maxsplit -= 1
1241 def split_after(iterable, pred, maxsplit=-1): argument
1258 if maxsplit == 0:
[all …]
/aosp_15_r20/external/python/cpython2/Lib/
DUserString.py107 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)
Dstringold.py104 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)
Dstring.py283 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)
/aosp_15_r20/external/python/cpython2/Modules/
Dstropmodule.c30 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()
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r536225/python3/lib/python3.11/site-packages/pkg_resources/_vendor/more_itertools/
Dmore.py1320 def split_at(iterable, pred, maxsplit=-1, keep_separator=False): argument
1343 if maxsplit == 0:
1354 if maxsplit == 1:
1358 maxsplit -= 1
1364 def split_before(iterable, pred, maxsplit=-1): argument
1380 if maxsplit == 0:
1389 if maxsplit == 1:
1393 maxsplit -= 1
1399 def split_after(iterable, pred, maxsplit=-1): argument
1416 if maxsplit == 0:
[all …]
/aosp_15_r20/external/python/setuptools/pkg_resources/_vendor/more_itertools/
Dmore.py1320 def split_at(iterable, pred, maxsplit=-1, keep_separator=False): argument
1343 if maxsplit == 0:
1354 if maxsplit == 1:
1358 maxsplit -= 1
1364 def split_before(iterable, pred, maxsplit=-1): argument
1380 if maxsplit == 0:
1389 if maxsplit == 1:
1393 maxsplit -= 1
1399 def split_after(iterable, pred, maxsplit=-1): argument
1416 if maxsplit == 0:
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567b/python3/lib/python3.11/site-packages/pkg_resources/_vendor/more_itertools/
Dmore.py1320 def split_at(iterable, pred, maxsplit=-1, keep_separator=False): argument
1343 if maxsplit == 0:
1354 if maxsplit == 1:
1358 maxsplit -= 1
1364 def split_before(iterable, pred, maxsplit=-1): argument
1380 if maxsplit == 0:
1389 if maxsplit == 1:
1393 maxsplit -= 1
1399 def split_after(iterable, pred, maxsplit=-1): argument
1416 if maxsplit == 0:
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567/python3/lib/python3.11/site-packages/pkg_resources/_vendor/more_itertools/
Dmore.py1320 def split_at(iterable, pred, maxsplit=-1, keep_separator=False): argument
1343 if maxsplit == 0:
1354 if maxsplit == 1:
1358 maxsplit -= 1
1364 def split_before(iterable, pred, maxsplit=-1): argument
1380 if maxsplit == 0:
1389 if maxsplit == 1:
1393 maxsplit -= 1
1399 def split_after(iterable, pred, maxsplit=-1): argument
1416 if maxsplit == 0:
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r522817/python3/lib/python3.11/site-packages/pkg_resources/_vendor/more_itertools/
Dmore.py1320 def split_at(iterable, pred, maxsplit=-1, keep_separator=False): argument
1343 if maxsplit == 0:
1354 if maxsplit == 1:
1358 maxsplit -= 1
1364 def split_before(iterable, pred, maxsplit=-1): argument
1380 if maxsplit == 0:
1389 if maxsplit == 1:
1393 maxsplit -= 1
1399 def split_after(iterable, pred, maxsplit=-1): argument
1416 if maxsplit == 0:
[all …]
/aosp_15_r20/external/python/cpython3/Objects/
Dbytearrayobject.c1439 Py_ssize_t maxsplit) in bytearray_split_impl() argument
1447 if (maxsplit < 0) in bytearray_split_impl()
1448 maxsplit = PY_SSIZE_T_MAX; in bytearray_split_impl()
1451 return stringlib_split_whitespace((PyObject*) self, s, len, maxsplit); in bytearray_split_impl()
1459 (PyObject*) self, s, len, sub, n, maxsplit in bytearray_split_impl()
1550 Py_ssize_t maxsplit) in bytearray_rsplit_impl() argument
1558 if (maxsplit < 0) in bytearray_rsplit_impl()
1559 maxsplit = PY_SSIZE_T_MAX; in bytearray_rsplit_impl()
1562 return stringlib_rsplit_whitespace((PyObject*) self, s, len, maxsplit); in bytearray_rsplit_impl()
1570 (PyObject*) self, s, len, sub, n, maxsplit in bytearray_rsplit_impl()
/aosp_15_r20/external/python/cpython3/Lib/test/
Dstring_tests.py456 'a|b|c|d', 'split', '|', maxsplit=1)
458 'a|b|c|d', 'split', sep='|', maxsplit=1)
460 'a|b|c|d', 'split', maxsplit=1, sep='|')
462 'a b c d', 'split', maxsplit=1)
532 'a b c d', 'rsplit', sep=None, maxsplit=1)
534 'a|b|c|d', 'rsplit', '|', maxsplit=1)
536 'a|b|c|d', 'rsplit', sep='|', maxsplit=1)
538 'a|b|c|d', 'rsplit', maxsplit=1, sep='|')
540 'a b c d', 'rsplit', maxsplit=1)
/aosp_15_r20/external/python/cpython3/Lib/importlib/metadata/
D_text.py97 def split(self, splitter=' ', maxsplit=0): argument
99 return pattern.split(self, maxsplit)
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567/python3/lib/python3.11/site-packages/setuptools/_vendor/importlib_metadata/
D_text.py97 def split(self, splitter=' ', maxsplit=0): argument
99 return pattern.split(self, maxsplit)
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r536225/python3/lib/python3.11/importlib/metadata/
D_text.py97 def split(self, splitter=' ', maxsplit=0): argument
99 return pattern.split(self, maxsplit)

12345678