Repository navigation
String Functions
Home › String Functions › String Functions
Statements and Procedures that work with strings.
Description
These statements and procedures provide many ways to create and manipulate strings and substrings. Numbers can be converted to strings and vice-versa. Procedures are also provided to aid in serialization of numeric data, perhaps for persistent storage.
Creating Strings
String data types and procedures that create new strings.
Character Conversions
Procedures that convert from character codes to strings and back.
Numeric/Boolean to String Conversions
Procedures that convert numeric values to strings.
String to Numeric Conversions
Procedures that convert strings to numeric values.
Numeric Serializations
Procedures that convert raw numeric data to and from strings suitable for storage.
Working with Substrings
Procedures that return subsets of strings, or that modify subsets of strings.
Creating Strings
Standard data type: 8 bit character string.
Returns a String of multiple characters.
Standard data type: null terminated 8 bit character string.
Standard data type: wide character string.
Returns a WString of multiple characters.
Returns a String consisting of spaces.
Returns a WString consisting of spaces.
Returns the length of a string in characters.
Character Conversion
Returns an Integer representation of an character.
Returns a string of one or more characters from their ASCII Integer representation.
Returns a WString of one or more characters from their Unicode Integer representation.
Numeric/Boolean to String Conversions
Returns a binary String representation of an integral value.
Returns a binary WString representation of an integral value.
Returns a hexadecimal String representation of an integral value.
Returns a hexadecimal WString representation of an integral value.
Returns an octal String representation of an integral value.
Returns an octal WString representation of an integral value.
Returns the String representation of numeric value or boolean.
Returns the WString representation of numeric value.
Returns a formatted String representation of a Double.
String to Numeric Conversions
Returns the Double conversion of a numeric string.
Returns the Integer conversion of a numeric string.
Returns the Long conversion of a numeric string.
Returns the UInteger conversion of a numeric string.
Returns the ULong conversion of a numeric string.
Numeric Serialization
Returns an eight character String representation of a Double.
Returns a four character String representation of a Integer.
Returns a four character String representation of a Long.
Returns an eight character String representation of a LongInt.
Returns a four character String representation of a Single.
Returns a two character String representation of a Short.
Returns a Double representation of an eight character String.
Returns an Integer representation of a four character String.
Returns a Long representation of a four character String.
Returns a LongInt representation of an eight character String.
Returns a Single representation of a four character String.
Returns a Short representation of a two character String.
Working with Substrings
Returns a substring of the leftmost characters in a string.
Returns a substring of a string.
Returns a substring of the rightmost characters in a string.
Returns a copy of a string converted to lowercase alpha characters.
Returns a copy of a string converted to uppercase alpha characters.
Removes surrounding substrings or characters on the left side of a string.
Removes surrounding substrings or characters on the right side of a string.
Removes surrounding substrings or characters on the left and right side of a string.
Returns the first occurrence of a substring or character within a string.
Returns the last occurrence of a substring or character within a string.
Copies a substring to a substring of a string.
Left-justifies a string.
Right-justifies a string.
Category: String Functions
Reproduced from the FreeBASIC Wiki Manual under the GNU Free Documentation License 1.3 — with no Invariant Sections, no Front-Cover Texts and no Back-Cover Texts. Copyright © the FreeBASIC project and wiki contributors. See License.
tiko-lang · Home · Feature Index · Keyword Index · License
FreeBASIC manual pages reproduced under the GNU FDL 1.3.
- 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)
- 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