Hierarchy

  • TextUtils

Index

Methods

Static getWordWrapTextLines

  • getWordWrapTextLines(st: string, font: Font, needWidthAlign: boolean, textW: number): string[]
  • Parameters

    • st: string
    • font: Font
    • needWidthAlign: boolean
    • textW: number

    Returns string[]

Static splitString

  • splitString(inputString: string, removeControl: boolean): string[]
  • Parameters

    • inputString: string
    • removeControl: boolean

    Returns string[]

Static trimEndWhiteSpace

  • trimEndWhiteSpace(inputString: string): string
  • Parameters

    • inputString: string

    Returns string

Static trimEndWhiteSpace2

  • trimEndWhiteSpace2(inputString: string, removeControl: boolean): string
  • Parameters

    • inputString: string
    • removeControl: boolean

    Returns string

Generated using TypeDoc