forked from AuroraMiddleware/gtk
1a8f3e2462
'win.lines' contains the same content as the GtkTextBuffer, so to find @match_start, forward_chars_with_skipping() is called with skip_decomp=FALSE (the last parameter). So far so good. On the other hand, the content 'lines' (the needle split in lines) is casefolded and normalized for a case insensitive search. So, forward_chars_with_skipping(..., skip_decomp=TRUE) must be called only for the portion of text containing the needle. Since 'start_tmp' contains the location at the start of the match, we can simply begin at that location to find the end of the match. Unit tests are added. https://bugzilla.gnome.org/show_bug.cgi?id=758698 |
||
---|---|---|
.. | ||
file-chooser-test-dir | ||
icons | ||
icons2 | ||
ui | ||
accel.c | ||
accessible.c | ||
action.c | ||
adjustment.c | ||
bitmask.c | ||
builder.c | ||
builderparser.c | ||
cellarea.c | ||
check-icon-names.c | ||
clipboard.c | ||
cssprovider.c | ||
defaultvalue.c | ||
displayclose.c | ||
entry.c | ||
filtermodel.c | ||
firefox-stylecontext.c | ||
floating.c | ||
focus.c | ||
gestures.c | ||
grid.c | ||
gtkmenu.c | ||
gtktreemodelrefcount.c | ||
gtktreemodelrefcount.h | ||
icontheme.c | ||
keyhash.c | ||
listbox.c | ||
liststore.c | ||
Makefile.am | ||
modelrefcount.c | ||
no-gtk-init.c | ||
notify.c | ||
object.c | ||
objects-finalize.c | ||
papersize.c | ||
rbtree.c | ||
recentmanager.c | ||
regression-tests.c | ||
sortmodel.c | ||
spinbutton.c | ||
stylecontext.c | ||
templates.c | ||
textbuffer.c | ||
textiter.c | ||
treemodel.c | ||
treemodel.h | ||
treepath.c | ||
treestore.c | ||
treeview.c | ||
typename.c | ||
window.c |