forked from AuroraMiddleware/gtk
doc: improve documentation of gtk_text_iter_inside_word()
There is a possible confusion with the sentence: "@iter is inside a natural-language word" The iter should be viewed here as the pointed character (i.e. on the right of the iter), not as a position between two characters. Instead of improving the documentation, another solution would have been to change the implementation so it is interpreted as an iter position inside a word, i.e. between two characters that are part of a natural-language word. But maybe some applications rely on the current implementation. https://bugzilla.gnome.org/show_bug.cgi?id=727908
This commit is contained in:
parent
704a178abb
commit
22ce03fd94
@ -3402,12 +3402,15 @@ gtk_text_iter_ends_word (const GtkTextIter *iter)
|
||||
/**
|
||||
* gtk_text_iter_inside_word:
|
||||
* @iter: a #GtkTextIter
|
||||
*
|
||||
* Determines whether @iter is inside a natural-language word (as
|
||||
* opposed to say inside some whitespace). Word breaks are determined
|
||||
* by Pango and should be correct for nearly any language (if not, the
|
||||
* correct fix would be to the Pango word break algorithms).
|
||||
*
|
||||
*
|
||||
* Determines whether the character pointed by @iter is part of a
|
||||
* natural-language word (as opposed to say inside some whitespace). Word
|
||||
* breaks are determined by Pango and should be correct for nearly any language
|
||||
* (if not, the correct fix would be to the Pango word break algorithms).
|
||||
*
|
||||
* Note that if gtk_text_iter_starts_word() returns %TRUE, then this function
|
||||
* returns %TRUE too, since @iter points to the first character of the word.
|
||||
*
|
||||
* Returns: %TRUE if @iter is inside a word
|
||||
**/
|
||||
gboolean
|
||||
|
Loading…
Reference in New Issue
Block a user