diff options
author | pgen <p.gen.progs@gmail.com> | 2018-09-24 00:48:12 +0200 |
---|---|---|
committer | pgen <p.gen.progs@gmail.com> | 2018-10-01 19:36:56 +0200 |
commit | 84c6aa41b1dca154b2b215fddecf37da1d900908 (patch) | |
tree | e51a6a420aaa2700df0c11fbb034e1cb4495a1a6 /smenu.1 | |
parent | cd5ad5c056b6e8f3121adc886e8e7f5daeca6010 (diff) |
Improve the o sub-option of the -D option
The offset sub-option can give more latitude to find the number to
extract by allowing a '+' after its numeric value.
Diffstat (limited to 'smenu.1')
-rw-r--r-- | smenu.1 | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -887,6 +887,16 @@ The default value for this directive is '\f(CBkeep\fP'. \f(CBo\fP (\fB-F\fP option) Here \fBy\fP is the \fIo\fPffset of the first multibyte character of the number to extract from the word (defaults to \f(CB0\fP). + +If this offset if immediately followed by the character '\f(CB+\fP', +then the parser will look for the first number (if any) after the given +offset instead of using its absolute value to extract the number. + +Note that when the '\f(CB+\fP' is used, it is necessary that the length +of all the numbers to extract have the same size as the algorithm looks +for a digit to identify the beginning of the number to extract. +Hence, for example, \fB1\fP should appear as \fB01\fP in the input is +\f(CBn\fP is set to \f(CB2\fP. . .TP \f(CBn\fP (\fB-F\fP option) |