Gjsify LogoGjsify Logo

A PangoScriptIter is used to iterate through a string and identify ranges in different scripts.

record

Hierarchy

  • ScriptIter

Index

Constructors

Properties

Methods

Constructors

  • new ScriptIter(text: string, length: number): ScriptIter
  • Create a new PangoScriptIter, used to break a string of Unicode text into runs by Unicode script.

    No copy is made of text, so the caller needs to make sure it remains valid until the iterator is freed with [methodPango.ScriptIter.free].

    Parameters

    • text: string

      a UTF-8 string

    • length: number

      length of text, or -1 if text is nul-terminated

    Returns ScriptIter

Properties

name: string

Methods

  • free(): void
  • Gets information about the range to which iter currently points.

    The range is the set of locations p where *start <= p < *end. (That is, it doesn't include the character stored at *end)

    Note that while the type of the script argument is declared as PangoScript, as of Pango 1.18, this function simply returns GUnicodeScript values. Callers must be prepared to handle unknown values.

    Returns [string, string, Pango.Script]

  • next(): boolean
  • Advances a PangoScriptIter to the next range.

    If iter is already at the end, it is left unchanged and %FALSE is returned.

    Returns boolean

  • Create a new PangoScriptIter, used to break a string of Unicode text into runs by Unicode script.

    No copy is made of text, so the caller needs to make sure it remains valid until the iterator is freed with [methodPango.ScriptIter.free].

    Parameters

    • text: string

      a UTF-8 string

    • length: number

      length of text, or -1 if text is nul-terminated

    Returns ScriptIter

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method