07.05.2015 Views

Download - True BASIC

Download - True BASIC

Download - True BASIC

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

424 <strong>True</strong> <strong>BASIC</strong> Language System<br />

CHARUNION$ Function<br />

Library:<br />

Syntax:<br />

Usage:<br />

Summary:<br />

Details:<br />

Example:<br />

Exceptions:<br />

See also:<br />

CONTROL$ Function<br />

Library:<br />

Syntax:<br />

Usage:<br />

Summary:<br />

Details:<br />

Example:<br />

Exceptions:<br />

See also:<br />

DELCHAR$ Function<br />

Library:<br />

Syntax:<br />

Usage:<br />

Summary:<br />

Details:<br />

STRLIB.TRC<br />

CHARUNION$ (strex, strex)<br />

LET union$ = CHARUNION$ (a$, b$)<br />

Returns the set of characters contained within the values of either a$ or b$.<br />

The CHARUNION$ function returns a string containing the union of the sets of characters<br />

represented by the values of its arguments a$ and b$.<br />

That is, the CHARUNION$ function returns a string which contains one of each character<br />

which appears in the value of either of its arguments. The characters will be organized<br />

within the resulting string in ascending order by their ASCII codes. Thus, uppercase letters<br />

will be listed before all lowercase letters.<br />

The following program:<br />

LIBRARY "StrLib.trc"<br />

DECLARE DEF CharUnion$<br />

LET a$ = "Now is the time"<br />

LET b$ = "for all good men"<br />

PRINT CharUnion$ (a$, b$)<br />

END<br />

produces the following output:<br />

Nadefghilmnorstw<br />

(Note: there is a space before the 'N'.)<br />

None<br />

CHARINT$, CHARDIFF$, CHARS$, UNIQ$<br />

STRLIB.TRC<br />

CONTROL$<br />

LET set$ = CONTROL$<br />

Returns the set of control characters.<br />

The CONTROL$ function returns a string containing the set of control characters,<br />

arranged in ascending order according to their ASCII codes. (For a table of the ASCII codes<br />

and their corresponding characters, see Appendix A.)<br />

That is, it returns a string composed of those characters with ASCII codes between 0 and 31,<br />

inclusive.<br />

None.<br />

None<br />

DIGITS$, LETTERS$, ALPHANUM$, UPPER$, LOWER$, PUNCT$<br />

STRLIB.TRC<br />

DELCHAR$ (strex, strex)<br />

LET a$ = DELCHAR$ (text$, oldchars$)<br />

Returns the value of text$ with all characters appearing in oldchars$ removed.<br />

The DELCHAR$ function removes from text$ all characters which are members of the<br />

character set represented by the value of oldchars$. That is, it returns the value of<br />

text$ after having deleted any occurrences of characters appearing in the value of<br />

oldchars$.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!