String.parse_radix_str
String.parse_radix_str
Function
Parses the current whitespace-delimited byte text into a UTF-8 string in the specified base.
Syntax
string.parse_radix_str(radix)
Parameters
| Parameters | Type | Required | Default value | Description |
|---|---|---|---|---|
| radix | Int | No | 10 | Base. |
Return value
| Type | Description |
|---|---|
| String/Null | Parse and convert to UTF-8. Return string if successful; return Null if failed. |
Example
result = '42 54'.parse_radix_str(16) // Output: BT print result
Notes
- A single byte must be able to parse 0 to 255.
- The original string will not be modified.