StringTools[ExpandTabs] - expand tabs to specified tab stops
|
Calling Sequence
|
|
ExpandTabs( s, tabs )
|
|
Parameters
|
|
s
|
-
|
Maple string; string to be expanded
|
tabs
|
-
|
{posint,list(posint)}; (optional) tab stop specification
|
|
|
|
|
Description
|
|
•
|
The procedure ExpandTabs replaces tab characters in a string with spaces according to a given tab stop specification.
|
•
|
A string is returned in which tabs in the original input string s have been replaced by spaces to the indicated tab stops; the input string is not modified.
|
|
|
Examples
|
|
>
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
>
|
|
| (4) |
>
|
|
| (5) |
>
|
|
| (6) |
The following are errors because the lists of tab stops are not strictly increasing.
>
|
|
>
|
|
|
|
Download Help Document
Was this information helpful?