qt6-bb10/tests/auto/corelib/text/qstring
Thiago Macieira f0f2a9ef26 QString: ensure multi-arg arg() parses replacement like single-arg arg()
There was a discrepancy that the multi-arg arg() overload would accept
any number of digits in the placeholder, resolving up to value 999
(e.g., %000001 was interpreted as placeholder #1), but the single-arg
arg() overload only supported exactly one or two digits. The single-arg
behavior was documented, so use it.

[ChangeLog][Important Behavior Changes] The QString::arg() overload
taking multiple QString-like arguments is now fixed to interpret
placeholders like the other arg() overloads: it will find at most two
digits after the '%' character. That is, the sequence "%123" is now
interpreted as placeholder #12 followed by character '3' (verbatim).

Pick-to: 6.7
Fixes: QTBUG-118581
Change-Id: I455fe22ef4ad4b2f9b01fffd17c767a948d41138
Reviewed-by: Ahmad Samir <a.samirh78@gmail.com>
2024-04-21 06:48:11 -07:00
..
.gitignore Move text-related code out of corelib/tools/ to corelib/text/ 2019-07-10 17:05:30 +02:00
CMakeLists.txt QString: use comparison helper macros - trivial changes [1/3] 2024-03-02 00:12:53 +01:00
double_data.h Change license for tests files 2024-02-04 09:56:42 +01:00
tst_qstring.cpp QString: ensure multi-arg arg() parses replacement like single-arg arg() 2024-04-21 06:48:11 -07:00
tst_qstring_mac.mm Change license for tests files 2024-02-04 09:56:42 +01:00
tst_qstring_wasm.cpp Change license for tests files 2024-02-04 09:56:42 +01:00