![]() |
STRING EXPAND WHITESPACEName:
The tab character is treated somewhat differently. Specifically, you can use the command
to specify how tab characters are handled. Specifically, if <value> is 0, then the tab character is retained in the string (no space is added). If <value> is a positive integer, the tab character will be replaced with <value> spaces. The non-printing characters are the ones with codes 0 to 31 and 127 in the ASCII collating sequence. Currently, Dataplot only checks for characters in the 0 - 127 range of the ASCII collating sequence.
where <sout> is the name of the resulting string; and <sorg> is the name of the original string.
In this case, STR will now contain the the string with all white space characters removed rather than the original string.
you need to do
LET SOUT = STRING EXPAND WHITESPACE SORG The name on the left hand side of the equal sign may be a previously existing string. However, if it is a previously existing parameter, variable, or matrix name, an error will be reported and the requested string will not be created.
set tab expand 3 read string tab.dat t let tout = string expand whitespace t print t toutThe following output is generated FUNCTIONS-- T --Text with several tab characters TOUT --Text with several tab characters
|
Privacy
Policy/Security Notice
NIST is an agency of the U.S.
Commerce Department.
Date created: 02/27/2019 |