Repository navigation
Category String Functions
Paul Squires edited this page Oct 19, 2026
·
2 revisions
Home › All Categories › String Functions
Grouped by task. Text lists them beside the rest of the area.
| Function | What it does | From |
|---|---|---|
| InStr | Returns the position of the first match, or 0 if there is none. | built-in |
| InStrRev | Returns the position of the last match, or 0 if there is none. | built-in |
| Function | What it does | From |
|---|---|---|
| Len | Returns the length of a string, or the size of a type. | built-in |
| Function | What it does | From |
|---|---|---|
| Left | Returns the first n characters. | built-in |
| Right | Returns the last n characters. | built-in |
| Mid | Returns the characters from a position, optionally for a given length. | built-in |
| Function | What it does | From |
|---|---|---|
| UCase | Returns an upper-case copy of the string. | built-in |
| LCase | Returns a lower-case copy of the string. | built-in |
| Function | What it does | From |
|---|---|---|
| Trim | Removes spaces, or the given characters, from both ends. | built-in |
| LTrim | Removes spaces, or the given characters, from the start. | built-in |
| RTrim | Removes spaces, or the given characters, from the end. | built-in |
| LSet | Copies a string into another, left-justified and padded with spaces. | built-in |
| RSet | Copies a string into another, right-justified and padded with spaces. | built-in |
| Function | What it does | From |
|---|---|---|
| Mid (statement) | Overwrites part of a string in place with other text. | built-in |
| Function | What it does | From |
|---|---|---|
| Space | Returns a string of n spaces. | built-in |
| WSpace | Returns a wide string of n spaces. | built-in |
| String | Returns a string of n copies of one character. | built-in |
| WString | Returns a wide string of n copies of one character. | built-in |
| Function | What it does | From |
|---|---|---|
| Asc | Returns the character code at a position in a string. | built-in |
| Chr | Returns a string made from one or more character codes. | built-in |
| WChr | Returns a wide string made from one or more Unicode code points. | built-in |
| Function | What it does | From |
|---|---|---|
| Format | Formats a number with a picture string such as "#,##0.00". | string.bi |
| Hex | Returns a number as hexadecimal text. | built-in |
| WHex | Returns a number as hexadecimal wide-string text. | built-in |
| Bin | Returns a number as binary text. | built-in |
| WBin | Returns a number as binary wide-string text. | built-in |
| Oct | Returns a number as octal text. | built-in |
| WOct | Returns a number as octal wide-string text. | built-in |
| Function | What it does | From |
|---|---|---|
| MKI | Copies an integer's bytes into a string. | built-in |
| MKL | Copies a Long's bytes into a 4-byte string. | built-in |
| MKShort | Copies a Short's bytes into a 2-byte string. | built-in |
| MKLongInt | Copies a LongInt's bytes into an 8-byte string. | built-in |
| MKS | Copies a Single's bytes into a 4-byte string. | built-in |
| MKD | Copies a Double's bytes into an 8-byte string. | built-in |
| CVI | Reads an integer back from a string of its bytes. | built-in |
| CVL | Reads a Long back from a 4-byte string. | built-in |
| CVShort | Reads a Short back from a 2-byte string. | built-in |
| CVLongInt | Reads a LongInt back from an 8-byte string. | built-in |
| CVS | Reads a Single back from a 4-byte string. | built-in |
| CVD | Reads a Double back from an 8-byte string. | built-in |
tiko-lang · Home · Feature Index · Keyword Index · License
FreeBASIC manual pages reproduced under the GNU FDL 1.3.
- Home
- What Is tiko-lang
- Quick Start
- Installing on macOS
- Debugging
- Feature Index
- Compatibility
- FAQ
- AI Cheatsheet
- Generics
- Interfaces
- For Each
- Iterators
- Tuples
- Array Results
- Defer
- Lambdas
- Block Strings
- Partial Types
- String Slices
- Embed
- Typed Variadics
- C Header Import
- Foreign Library Linking
- UString
- Fixed-Width Types
- Nullptr
- String Library
- Format
- Array
- Map
- Set
- LinkedList
- OrderedMap
- OrderedSet
- Sorting
- Optional
- Result
- Smart Pointers
- Date and Time (Chrono)
- Time Zones
- Filesystem
- File Streams
- Config (INI and TOML)
- Codec
- Hash
- UUID
- OS
- Process
- Net
- HTTP and TLS
- Math Library
- Finance
- Logging
- Terminal TUI Library
- PsControls
- tkControls
- sys/win
- Goroutines and Channels
- LLVM Backend
- tiko build
- TIKO_COMPILER
- Variable Declarations
- Standard Data Types
- User Defined Types
- Procedures
- Operators
- Control Flow Statements
- Converting Data Types
- Array Functions
- String Functions
- Mathematical Functions
- Bit Manipulation
- Date and Time Functions
- File I/O Functions
- Console Functions
- User Input (Runtime Library)
- User Input Functions (Graphics Library)
- Screen Functions
- 2D Drawing Functions
- Graphics Library Reference
- Graphics Keyword List
- Memory Functions
- Threading Support Functions
- Error Handling Functions
- Operating System Functions
- Preprocessor
- Intrinsic Defines
- Miscellaneous Keywords
- Modularizing