StringVariable | String to double chop. Can be either a value or @VarName (will upvar and read/write). |
Count | Optional. How many characters to remove from the right and how many to remove from the left. Default is 1. |
Note that arguments of the form XxxVariable can take either a normal value or the name of a variable to read/write, prefixed by @. See About Using @ for details.
% set MyString "{something}"
{something}
% DoubleChop $MyString
something
% set MyString "{{something}}"
{something}
% DoubleChop @MyString 2
something
% puts $MyString
something