PgScriptIter

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

Constructors

this
this(PangoScriptIter* pangoScriptIter, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this(string text, int length)

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 Script.iterFree.

Destructor

A destructor is present on this object, but not explicitly documented in the source.

Members

Functions

free
void free()

Frees a PangoScriptIter created with Script.iterNew.

getPgScriptIterStruct
PangoScriptIter* getPgScriptIterStruct(bool transferOwnership)

Get the main Gtk struct

getRange
void getRange(string start, string end, PangoScript script)

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)

getStruct
void* getStruct()

the main Gtk struct as a void*

next
bool next()

Advances a PangoScriptIter to the next range. If iter is already at the end, it is left unchanged and FALSE is returned.

Variables

pangoScriptIter
PangoScriptIter* pangoScriptIter;

the main Gtk struct