• Michael Stahl's avatar
    i18npool: fix spurious regex ^ matching in TextSearch::searchForward() · 9aae521b
    Michael Stahl yazdı
    Thanks to Eike for finding this:
    
    The anchors ^ and $ now anchor at the selection boundary because the
    only text the regex matcher gets passed is the selected text. This in
    two paragraphs
    
     aaa bbb aaa bbb
     aaa bbb aaa bbb
    
    when the selection spans from the second aaa to the third bbb, for
    "^aaa" finds the second aaa, where previously it found the third aaa at
    the real paragraph start.
    
    This may not be expected by the user, because the behavior of ^ is
    described as "Match at the beginning of a line" (or paragraph in our
    case), which the previous implementation did.
    
    (regression from 806ced87)
    
    Unfortunately it's not obvious how to implement the same in
    searchBackward().
    
    Change-Id: I07f7a8476b672d9511fa74ca473c32eea427698f
    9aae521b
Adı
Son kayıt (commit)
Son güncelleme
..
inc Loading commit data...
qa/cppunit Loading commit data...
source Loading commit data...
util Loading commit data...
CppunitTest_i18npool_test_breakiterator.mk Loading commit data...
CppunitTest_i18npool_test_characterclassification.mk Loading commit data...
CppunitTest_i18npool_test_ordinalsuffix.mk Loading commit data...
CppunitTest_i18npool_test_textsearch.mk Loading commit data...
CustomTarget_breakiterator.mk Loading commit data...
CustomTarget_collator.mk Loading commit data...
CustomTarget_indexentry.mk Loading commit data...
CustomTarget_localedata.mk Loading commit data...
CustomTarget_textconversion.mk Loading commit data...
Executable_gencoll_rule.mk Loading commit data...
Executable_genconv_dict.mk Loading commit data...
Executable_gendict.mk Loading commit data...
Executable_genindex_data.mk Loading commit data...
Executable_saxparser.mk Loading commit data...
Library_collator_data.mk Loading commit data...
Library_dict_ja.mk Loading commit data...
Library_dict_zh.mk Loading commit data...
Library_i18npool.mk Loading commit data...
Library_i18nsearch.mk Loading commit data...
Library_index_data.mk Loading commit data...
Library_localedata_en.mk Loading commit data...
Library_localedata_es.mk Loading commit data...
Library_localedata_euro.mk Loading commit data...
Library_localedata_others.mk Loading commit data...
Library_textconv_dict.mk Loading commit data...
Makefile Loading commit data...
Module_i18npool.mk Loading commit data...
README Loading commit data...
Rdb_saxparser.mk Loading commit data...