07.05.2015 Views

Download the PDF documentation - True BASIC

Download the PDF documentation - True BASIC

Download the PDF documentation - 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.

1<br />

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

String Handling Libraries<br />

In addition to <strong>the</strong> strings functions included in <strong>True</strong> <strong>BASIC</strong>, additional tools are provided in <strong>the</strong> library<br />

STRLIB.TRC. All of <strong>the</strong> string functions and subroutines are described below in alphabetical order.<br />

The operations provided by <strong>the</strong>se functions and subroutines include:<br />

Return sets of string constants<br />

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

RNDSTR$, UPPER$<br />

Return simple parts of strings<br />

LEFT$, MID$, RIGHT$<br />

Return date and time strings:<br />

NICEDATE$, NICETIME$, NOW$, SHORTDATE$, TODAY, WEEKDAY,<br />

WEEKDAY$<br />

Convert between numeric and o<strong>the</strong>r representations of numbers:<br />

DOLLARS$, DOLLARVAL, ENGLISHNUM$, EVAL, LVAL, ROMAN$,<br />

SUPERVAL<br />

Parse a string BREAKUP, EXPLODE, EXPLODEN, NEXTWORD<br />

Trim extra spaces INTRIM$, LTRIM$, RTRIM$, TRIM$, JUSTIFY$, NOSPACE$<br />

Format text CENTER$, FILLARRAY, FILLFROM, HEADER$, JUSTIFY$, JUSTIFYARRAY,<br />

JUSTIFYFROM, LJUST$, RJUST$<br />

Reverse a string REVERSE$<br />

Find shared or non-shared characters in two strings<br />

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

Remove or replace characters from strings<br />

DELCHAR$, DELMIX$, DELSTR$, KEEPCHAR$, MAPCHAR$, NPLUGCHAR$,<br />

NREPCHAR$, PLUGCHAR$, PLUGMIX$, PLUGSTR$, REPCHAR$, REPMIX$,<br />

REPSTR$<br />

ALPHANUM$ Function<br />

Library:<br />

Syntax:<br />

Usage:<br />

Summary:<br />

Details:<br />

Example:<br />

Exceptions:<br />

See also:<br />

BREAKUP Subroutine<br />

Library:<br />

Syntax:<br />

Usage:<br />

Summary:<br />

STRLIB.TRC<br />

ALPHANUM$<br />

LET set$ = ALPHANUM$<br />

Returns <strong>the</strong> set of alphabetic and digit characters.<br />

The ALPHANUM$ function returns a string containing <strong>the</strong> set of characters representing<br />

<strong>the</strong> letters of <strong>the</strong> alphabet, both uppercase and lowercase, as well as <strong>the</strong> digits, arranged in<br />

ascending order according to <strong>the</strong>ir ASCII codes. (For a table of <strong>the</strong> ASCII codes and <strong>the</strong>ir<br />

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

That is, it returns <strong>the</strong> equivalent of <strong>the</strong> string constant:<br />

“0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz”<br />

None.<br />

None<br />

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

STRLIB.TRC<br />

CALL BREAKUP (strex, strex, strex)<br />

CALL BREAKUP (phrase$, word$, delims$)<br />

Returns <strong>the</strong> next word, as delineated by a delimiter character, from <strong>the</strong> specified phrase.

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

Saved successfully!

Ooh no, something went wrong!