blob: ade490d981218ed2afc95cdb9b17a800b5cf1e42 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
/*!
\qmltype String
\inqmlmodule QtQml
\brief The String object represents a string value.
The QML String object extends the JS String object with
the arg() function.
\sa {ECMA-262}{ECMAScript Language Specification}
*/
/*!
\qmlmethod string String::arg(value)
Returns a copy of this string with the lowest numbered place marker replaced by \a value,
i.e., %1, %2, ..., %99. The following example prints "There are 20 items":
\code
var message = "There are %1 items"
var count = 20
console.log(message.arg(count))
\endcode
*/
|