Header menu logo B2R2

String Module

Provides useful functions for handling string values.

Functions and values

Function or value Description

String.fromAsciiBytes bs

Full Usage: String.fromAsciiBytes bs

Parameters:
    bs : byte[]

Returns: string

Decodes an ASCII byte array to a string. Bytes outside the ASCII range (0–127) are replaced with '?'.

bs : byte[]
Returns: string

String.fromUtf8Bytes bs

Full Usage: String.fromUtf8Bytes bs

Parameters:
    bs : byte[]

Returns: string

Decodes a UTF-8 byte array to a string.

bs : byte[]
Returns: string

String.toAsciiBytes str

Full Usage: String.toAsciiBytes str

Parameters:
    str : string

Returns: byte[]

Encodes a string to an ASCII byte array. Throws an exception if the string contains non-ASCII characters.

str : string
Returns: byte[]

String.toUtf8Bytes str

Full Usage: String.toUtf8Bytes str

Parameters:
    str : string

Returns: byte[]

Encodes a string to a UTF-8 byte array.

str : string
Returns: byte[]

String.wrapAngleBracket s

Full Usage: String.wrapAngleBracket s

Parameters:
    s : string

Returns: string

Wraps a string with a pair of angle brackets.

s : string
Returns: string

String.wrapParen s

Full Usage: String.wrapParen s

Parameters:
    s : string

Returns: string

Wraps a string with a pair of parentheses.

s : string
Returns: string

String.wrapSquareBracket s

Full Usage: String.wrapSquareBracket s

Parameters:
    s : string

Returns: string

Wraps a string with a pair of square brackets.

s : string
Returns: string

Type something to start searching.