Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
src_corelib_text_qstringview.cpp
Go to the documentation of this file.
1// Copyright (C) 2018 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3
5 void myfun1(QStringView sv); // preferred
6 void myfun2(const QStringView &sv); // compiles and works, but slower
8
10 void fun(QChar ch) { fun(QStringView(&ch, 1)); }
\inmodule QtCore
Definition qchar.h:48
\inmodule QtCore
Definition qstringview.h:76
void myfun1(QStringView sv)
[0]
void myfun2(const QStringView &sv)
QJSValue fun
[0]