StringSorter

gtk.string_sorter.StringSorter is a gtk.sorter.Sorter that compares strings.

It does the comparison in a linguistically correct way using the current locale by normalizing Unicode strings and possibly case-folding them before performing the comparison.

To obtain the strings to compare, this sorter evaluates a gtk.expression.Expression.

Constructors

this
this(gtk.expression.Expression expression)

Creates a new string sorter that compares items using the given expression.

Members

Functions

getCollation
gtk.types.Collation getCollation()

Gets which collation method the sorter uses.

getExpression
gtk.expression.Expression getExpression()

Gets the expression that is evaluated to obtain strings from items.

getIgnoreCase
bool getIgnoreCase()

Gets whether the sorter ignores case differences.

setCollation
void setCollation(gtk.types.Collation collation)

Sets the collation method to use for sorting.

setExpression
void setExpression(gtk.expression.Expression expression)

Sets the expression that is evaluated to obtain strings from items.

setIgnoreCase
void setIgnoreCase(bool ignoreCase)

Sets whether the sorter will ignore case differences.

Inherited Members

From Sorter

changed
void changed(gtk.types.SorterChange change)

Notifies all users of the sorter that it has changed.

compare
gtk.types.Ordering compare(gobject.object.ObjectG item1, gobject.object.ObjectG item2)

Compares two given items according to the sort order implemented by the sorter.

getOrder
gtk.types.SorterOrder getOrder()

Gets the order that self conforms to.

connectChanged
ulong connectChanged(T callback, Flag!"After" after)

Connect to Changed signal.