PgScriptIter

The functions in this section are used to identify the writing system, or script of individual characters and of ranges within a larger text string.

Constructors

this
this(PangoScriptIter* pangoScriptIter)

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 into runs by text. No copy is made of text, so the caller needs to make sure it remains valid until the iterator is freed with pango_script_iter_free(). Since 1.4

Members

Functions

free
void free()

Frees a PangoScriptIter created with pango_script_iter_new(). Since 1.4

getPgScriptIterStruct
PangoScriptIter* getPgScriptIterStruct()
Undocumented in source. Be warned that the author may not have intended to support it.
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) Since 1.4

getStruct
void* getStruct()

the main Gtk struct as a void*

next
int next()

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

Variables

pangoScriptIter
PangoScriptIter* pangoScriptIter;

the main Gtk struct

Meta