]> git.lyx.org Git - features.git/commitdiff
Some more debugging stuff.
authorTommaso Cucinotta <tommaso@lyx.org>
Sat, 20 Nov 2010 11:03:24 +0000 (11:03 +0000)
committerTommaso Cucinotta <tommaso@lyx.org>
Sat, 20 Nov 2010 11:03:24 +0000 (11:03 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36404 a592a061-630c-0410-9148-cb99ea01b6c8

src/lyxfind.cpp

index 921c25d59b885c20f137bcbb9831d5a9849c5151..0834d7cb6e80704c446024cb4553ea3d1fda8429 100644 (file)
@@ -766,7 +766,9 @@ int MatchStringAdv::findAux(DocIterator const & cur, int len, bool at_begin) con
        string str = normalize(docstr);
        LYXERR(Debug::FIND, "After normalization: '" << str << "'");
        if (! opt.regexp) {
+               LYXERR(Debug::FIND, "Searching in normal mode: par_as_string='" << par_as_string << "', str='" << str << "'");
                if (at_begin) {
+                       LYXERR(Debug::FIND, "size=" << par_as_string.size() << ", substr='" << str.substr(0, par_as_string.size()) << "'");
                        if (str.substr(0, par_as_string.size()) == par_as_string)
                                return par_as_string.size();
                } else {
@@ -775,6 +777,7 @@ int MatchStringAdv::findAux(DocIterator const & cur, int len, bool at_begin) con
                                return par_as_string.size();
                }
        } else {
+               LYXERR(Debug::FIND, "Searching in regexp mode");
                // Try all possible regexp matches, 
                //until one that verifies the braces match test is found
                regex const *p_regexp = at_begin ? &regexp : &regexp2;