From 2b18e5804007d5e504719618e33334ba85e7c8a1 Mon Sep 17 00:00:00 2001 From: anders_k Date: Fri, 4 Oct 2019 19:54:56 +0000 Subject: [PATCH] Better IntFmt format specification syntax documentation. git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7123 212acab6-be3b-0410-9dea-997c60f758d6 --- Docs/src/int.but | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Docs/src/int.but b/Docs/src/int.but index b0f247e0..e7db05f7 100644 --- a/Docs/src/int.but +++ b/Docs/src/int.but @@ -4,15 +4,17 @@ \c user_var(output) format numberstring -Formats the number in "numberstring" using the format "format", and sets the output to user variable $x. Example format strings include "%08X" "%u" +Formats the number in "numberstring" using the format "format", and sets the output to user variable $x. The format string supports the same syntax as \W{https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-wsprintfw}{wsprintf} except that the \cw{I[32|64]} length fields and the \cw{p} type are not supported. Example format strings include "%08X" and "%u". \c IntFmt $0 "0x%08X" 195948557 -\c IntFmt $0 "%c" 0x41 +\c IntFmt $1 "%c" 0x41 \S2{int64fmt} Int64Fmt \c user_var(output) format numberstring +Supports the \cw{I} and \cw{I64} length fields and the \cw{p} type in addition to the syntax supported by \cw{IntFmt}. + \NsisFuncReq64 \c Int64Fmt $0 "%I64x" 244837743786702