Options
All
  • Public
  • Public/Protected
  • All
Menu

Tools related to strings manipulation, for events generated code.

Index

Functions

  • fromCodePoint(codePoint: any): string
  • newLine(): string
  • strAt(str: string, start: number): string
  • strFind(str: string, what: string): number
  • Search the first occurrence in a string (return the position of the result, from the beginning of the string, or -1 if not found)

    Parameters

    • str: string
    • what: string

    Returns number

  • strFindFrom(str: string, what: string, pos: number): number
  • Search the first occurrence in a string, starting from a specified position (return the position of the result, from the beginning of the string, or -1 if not found)

    Parameters

    • str: string
    • what: string
    • pos: number

    Returns number

  • strFindLast(str: string, what: string): number
  • Search the last occurrence in a string (return the position of the result, from the beginning of the string, or -1 if not found)

    Parameters

    • str: string
    • what: string

    Returns number

  • strFindLastFrom(str: string, what: string, pos: number): number
  • Search the last occurrence in a string, starting from a specified position (return the position of the result, from the beginning of the string, or -1 if not found)

    Parameters

    • str: string
    • what: string
    • pos: number

    Returns number

  • strLen(str: string): number
  • strRFind(str: string, what: string): number
  • strRFindFrom(str: string, what: string, pos: number): number
  • strRepeat(str: string, count: number): string
  • strReplaceAll(str: string, pattern: string, replacement: string): string
  • Return a new string with the content of str where all occurrences of pattern are replaced by replacement.

    Parameters

    • str: string
    • pattern: string
    • replacement: string

    Returns string

  • strReplaceOne(str: string, pattern: string, replacement: string): string
  • Return a new string with the content of str where the first occurrence of pattern is replaced by replacement.

    Parameters

    • str: string
    • pattern: string
    • replacement: string

    Returns string

  • subStr(str: string, start: number, len: number): string
  • toLowerCase(str: string): string
  • toUpperCase(str: string): string

Generated using TypeDoc