Skip to content

Commit 12f9d22

Browse files
committed
better help for strquote and strunquote
1 parent 866c73b commit 12f9d22

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

NppExec/src/DlgConsole.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1447,10 +1447,12 @@ const tCmdItemInfo CONSOLE_CMD_INFO[] = {
14471447
_T(" set s ~ strstrip 0x23 ` \\n abc \\n ` // \"\\n abc \\n\"") _T_RE_EOL \
14481448
_T(" // strquote") _T_RE_EOL \
14491449
_T(" set s ~ strquote a b c // \"a b c\"") _T_RE_EOL \
1450-
_T(" set s ~ strquote \"a b c\" // \"a b c\"") _T_RE_EOL \
1450+
_T(" set s ~ strquote \"a b c\" // \"a b c\" (already quoted)") _T_RE_EOL \
1451+
_T(" set s ~ strquote `a b c` // `a b c` (already quoted)") _T_RE_EOL \
14511452
_T(" // strunquote") _T_RE_EOL \
14521453
_T(" set s ~ strunquote \"a b c\" // a b c") _T_RE_EOL \
14531454
_T(" set s ~ strunquote a b c // a b c") _T_RE_EOL \
1455+
_T(" set s ~ strunquote `a b c` // a b c") _T_RE_EOL \
14541456
_T(" // strescape & strunescape") _T_RE_EOL \
14551457
_T(" set local TAB ~ chr 0x09 // <TAB> = '\\t'") _T_RE_EOL \
14561458
_T(" set local LF ~ chr 0x0A // <LF> = '\\n'") _T_RE_EOL \

docs/NppExec_HelpAll.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1245,10 +1245,12 @@ EXAMPLES:
12451245
set s ~ strstrip 0x23 ` \n abc \n ` // "\n abc \n"
12461246
// strquote
12471247
set s ~ strquote a b c // "a b c"
1248-
set s ~ strquote "a b c" // "a b c"
1248+
set s ~ strquote "a b c" // "a b c" (already quoted)
1249+
set s ~ strquote `a b c` // `a b c` (already quoted)
12491250
// strunquote
12501251
set s ~ strunquote "a b c" // a b c
12511252
set s ~ strunquote a b c // a b c
1253+
set s ~ strunquote `a b c` // a b c
12521254
// strescape & strunescape
12531255
set local TAB ~ chr 0x09 // <TAB> = '\t'
12541256
set local LF ~ chr 0x0A // <LF> = '\n'

0 commit comments

Comments
 (0)