From 50e22c765343102c4e0acf1eee8a6ce6f6f39ccf Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Fri, 13 May 2016 16:53:01 +0200 Subject: add $$sorted() function. [ChangeLog][qmake] Added $$sorted() function. Change-Id: Ic069d3ef7c0b7a260c714c76eecc71c41417d01f Reviewed-by: Leena Miettinen Reviewed-by: Joerg Bornemann Reviewed-by: Lars Knoll Reviewed-by: Martin Smith --- qmake/doc/src/qmake-manual.qdoc | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'qmake/doc') diff --git a/qmake/doc/src/qmake-manual.qdoc b/qmake/doc/src/qmake-manual.qdoc index 5828d515e5..a173979117 100644 --- a/qmake/doc/src/qmake-manual.qdoc +++ b/qmake/doc/src/qmake-manual.qdoc @@ -2858,6 +2858,7 @@ See also \l{take_first()}, \l{fn_last}{last()}. + \target format_number() \section2 format_number(number[, options...]) Returns \c number in the format specified by \c options. You can specify the @@ -3074,6 +3075,14 @@ This is an internal function that you will typically not need. + \section2 sorted(variablename) + + Returns the list of values in \c variablename with entries sorted + in ascending ASCII order. + + Numerical sorting can be accomplished by zero-padding the values to + a fixed length with the help of the \l{format_number()} function. + \section2 split(variablename, separator) Splits the value of \c variablename into separate values, and returns them -- cgit v1.2.3