Interface IText

Hierarchy

Index

Methods

Methods

public charCodeAt(position: number): number

Parameters

  • position: number

Returns

number

public copyTo(sourceIndex: number, destination: Array<number>, destinationIndex: number, count: number)

Parameters

  • sourceIndex: number
  • destination: Array<number>
  • destinationIndex: number
  • count: number

public getLineFromLineNumber(lineNumber: number): ITextLine

Parameters

  • lineNumber: number

Returns

ITextLine

public getLineFromPosition(position: number): ITextLine

Parameters

  • position: number

Returns

ITextLine

public getLineNumberFromPosition(position: number): number

Parameters

  • position: number

Returns

number

public getLinePosition(position: number): LineAndCharacter

Parameters

  • position: number

Returns

LineAndCharacter

public length(): number

Returns

number

public lineCount(): number

Returns

number

public lineMap(): LineMap

Returns

LineMap

public lines(): ITextLine[]

Returns

ITextLine[]

public subText(span: TextSpan): ISimpleText

Parameters

Returns

ISimpleText

public substr(start: number, length: number, intern: boolean): string

Parameters

  • start: number
  • length: number
  • intern: boolean

Returns

string

public toString(span?: TextSpan): string

Parameters

Returns

string