Add rstrip encoder for use in %rename.
This is like the strip encoder but strips the symbol's suffix instead of the prefix.
This commit is contained in:
parent
3000824c94
commit
4a3e1fd44c
6 changed files with 72 additions and 0 deletions
|
|
@ -1888,6 +1888,13 @@ and a more descriptive one, but the two functions are otherwise equivalent:
|
|||
literally, e.g. <tt>%rename("strip:[wx]")</tt></td>
|
||||
<td><tt>wxPrint</tt></td><td><tt>Print</tt></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt>rstrip:[suffix]</tt></td>
|
||||
<td>String without the given suffix or the original string if it doesn't
|
||||
end with this suffix. Note that square brackets should be used
|
||||
literally, e.g. <tt>%rename("rstrip:[Cls]")</tt></td>
|
||||
<td><tt>PrintCls</tt></td><td><tt>Print</tt></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span style="white-space: nowrap;"><tt>regex:/pattern/subst/</tt></span></td>
|
||||
<td>String after (Perl-like) regex substitution operation. This function
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue