| 29 | */ |
| 30 | template<class String> |
| 31 | constexpr bool matchesAtOffset(QStringView view, qsizetype offset, String str) |
| 32 | { |
| 33 | Q_ASSERT(offset >= 0); |
| 34 | const auto strSize = str.size(); |
| 35 | return offset + strSize <= view.size() && view.sliced(offset, strSize) == str; |
| 36 | } |
| 37 | |
| 38 | /** |
| 39 | * @copydoc matchesAtOffset(QStringView,qsizetype,String) |