diff options
author | Marc Mutz <[email protected]> | 2022-11-24 10:51:46 +0100 |
---|---|---|
committer | Marc Mutz <[email protected]> | 2022-12-08 18:00:16 +0000 |
commit | 41a994db063e4dc7796c0a33d3f1baf2c30366f6 (patch) | |
tree | eee589a860b3d8f7fccdbcf53fd0836972423eef /src/network/access/qnetworkreplywasmimpl.cpp | |
parent | 270a2f7ee2b1f02a240dfc7be4fc893d4d432d3e (diff) |
QAnyStringView: add substringing operations
Add the full set of substringing operations:
- mid/left/right (old-style)
- sliced/first/last (new style)
- chop/chopped/truncate
The implementation is copied from QUtf8StringView, adjusted to use
sliced() instead of the (ptr, n) ctor, so we need to deal with the tag
twiddling only once, in sliced().
The documentation is also copied from QUtf8StringView.
[ChangeLog][QtCore][QAnyStringView] Added substring functions
sliced(), first(), last(), chop()/chopped(), truncate().
Change-Id: Ief454e9694519e97d9146fa84bc05dda1dded046
Reviewed-by: MÃ¥rten Nordheim <[email protected]>
Reviewed-by: Mate Barany <[email protected]>
Reviewed-by: Ivan Solovev <[email protected]>
Reviewed-by: Thiago Macieira <[email protected]>
Diffstat (limited to 'src/network/access/qnetworkreplywasmimpl.cpp')
0 files changed, 0 insertions, 0 deletions