Documentation fixes and clarifications

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6728 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
anders_k 2016-03-27 23:24:43 +00:00
parent 2b5baa3639
commit e7ac6581e4
39 changed files with 315 additions and 429 deletions

View file

@ -4,7 +4,7 @@
\c user_var(destination) str [maxlen] [start_offset]
Sets the user variable $x with str. Note that str can contain other variables, or the user variable being set (concatenating strings this way is possible, etc). If maxlen is specified, the string will be a maximum of maxlen characters (if maxlen is negative, the string will be truncated abs(maxlen) characters from the end). If start_offset is specified, the source is offset by it (if start_offset is negative, it will start abs(start_offset) from the end of the string).
Sets the user variable $x with str. str can contain variables (including the user variable being set (concatenating strings this way is possible, etc)). If maxlen is specified, the string will be a maximum of maxlen characters (if maxlen is negative, the string will be truncated abs(maxlen) characters from the end). If start_offset is specified, the source is offset by it (if start_offset is negative, it will start abs(start_offset) from the end of the string).
\c StrCpy $0 "a string" # = "a string"
\c StrCpy $0 "a string" 3 # = "a s"
@ -12,11 +12,12 @@ Sets the user variable $x with str. Note that str can contain other variables, o
\c StrCpy $0 "a string" "" 2 # = "string"
\c StrCpy $0 "a string" "" -3 # = "ing"
\c StrCpy $0 "a string" 3 -4 # = "rin"
\c StrCpy $0 "$0$0" # = "rinrin"
\S2{StrLen} StrLen
\c user_var(length output) str
Sets user variable $x with the length of str.
Sets user variable $x to the length of str.
\c StrLen $0 "123456" # = 6