StringUtils

class Varwin.StringUtils

Bases: object

Provides extension methods for working with strings.

static GetLineBreak() str

Gets the appropriate line break string for the specified platform.

Example:

result = Varwin.StringUtils.GetLineBreak()
static Replace(source: str, oldSubstring: str, newSubstring: str) str

Replaces occurrences of a substring within a string.

Example:

result = Varwin.StringUtils.Replace("text", "text", "text")
static GetRandomLetter(source: str) str

Returns a random letter from a string.

Example:

result = Varwin.StringUtils.GetRandomLetter("text")