Home
last modified time | relevance | path

Searched refs:removeprefix (Results 1 – 6 of 6) sorted by relevance

/third_party/json/tools/gdb_pretty_printer/
Dnlohmann-json.py24 union_val = val['m_value'][t.removeprefix('detail::value_t::')]
/third_party/python/Lib/ensurepip/
D__init__.py56 version = filename.removeprefix(prefix).partition('-')[0]
/third_party/python/Lib/collections/
D__init__.py1412 def removeprefix(self, prefix, /): member in UserString
1415 return self.__class__(self.data.removeprefix(prefix))
/third_party/python/Doc/library/
Dstdtypes.rst1873 See :meth:`str.removeprefix` for a method that will remove a single prefix
1878 >>> 'Arthur: three!'.removeprefix('Arthur: ')
1905 .. method:: str.removeprefix(prefix, /)
1911 >>> 'TestHook'.removeprefix('Test')
1913 >>> 'BaseTestCase'.removeprefix('Test')
2676 .. method:: bytes.removeprefix(prefix, /)
2677 bytearray.removeprefix(prefix, /)
2683 >>> b'TestHook'.removeprefix(b'Test')
2685 >>> b'BaseTestCase'.removeprefix(b'Test')
2971 :term:`bytes-like object`. See :meth:`~bytes.removeprefix` for a method
[all …]
/third_party/python/Misc/NEWS.d/
D3.9.0a6.rst250 Added str.removeprefix and str.removesuffix methods and corresponding bytes,
/third_party/python/Doc/whatsnew/
D3.9.rst167 :meth:`str.removeprefix(prefix)<str.removeprefix>` and