checkprinting: avoid incorrect replacement of split values

Authored by habacker on Dec 21 2019, 12:26 PM.

Description

checkprinting: avoid incorrect replacement of split values

Template parameters for split values are now replaced in descending order.
If we replace the template parameter 'SPLITVALUE1' before 'SPLITVALUE10',
the latter is erroneously overwritten with the value from the former,
followed by '0'.

Cherry picked from commit 9ae5d7c17654dc57b396571ddd630305674ff3a2
CCBUG:415411
Reviewed By: tbaumgart
Differential Revision: https://phabricator.kde.org/D26134