String member reference
July 17, 2023 · View on GitHub
Functions returning integer
| Name | Type | Result |
|---|---|---|
s.length | integer | The number of characters in s |
s1.compareto(s2) | integer | Negative if s1 is alphabetically < s2, 0 if equal, positive if > |
s1.indexof(s2) | integer | The position of s2 within s1, -1 if not found |
Functions returning string
| Name | Type | Result |
|---|---|---|
s.slice(pos,count) | string | count characters from s, starting at pos. If pos is negative, the position is relative to the end of the string, with -1 being the last character of the string. count may be completely omitted, in which case characters from pos until the end of the string is returned. |
s.upper | string | Upper case version of s |
s.lower | string | Lower case version of s |
Further reading
- Introduction, goals and background
- Invoking the assembler and basic syntax
- Symbols and labels
- Control structures like
INCLUDE,MACROs and conditional assembling. - Expressions and how they're built
- Printing diagnostic messages, warnings and errors
- Organising code into sections. How to define data.
- The linker