Slava Zanko
75fe3bf3a8
Just identation of some source files
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-06-12 10:31:59 +03:00
Slava Zanko
786174fac8
Renamed function shell_is_char_escaped to strutils_is_char_escaped; removed function mc_search_is_char_escaped
...
* All calls of function mc_search_is_char_escaped replaced to strutils_is_char_escaped
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-06-12 10:31:59 +03:00
Slava Zanko
5834a9ed84
Fixed crash if replace group ${N} used into replace string
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-06-12 10:31:59 +03:00
Slava Zanko
facb94dc48
Fixed NULL acertion if replacement don't correct
...
Also fixed multiple usage of replacement pointers (such as \1\1).
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-06-12 10:31:58 +03:00
Slava Zanko
a0d56381e0
Search Replace now handled \U,\u,\L,\l and \E modificators.
...
Also function mc_search__regex_is_char_escaped() renamed to mc_search_is_char_escaped() and moved into global visibility scope.
2009-06-12 10:31:58 +03:00
Slava Zanko
5e6c14a928
Just identation of regex.c and search.h
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-06-12 10:31:58 +03:00
Slava Zanko
2d4ee6f616
search engine: Added new syntax for replace tokenks.
...
Now \<digit> handle just first 0-9 search groups.
If you need to access to more search groups, need to use
${digits} syntax.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-06-12 10:31:58 +03:00
Slava Zanko
0d76e9aa34
Search engine: if found_len parameter NULL, then mc_search_run don't try to fill them
2009-05-06 16:32:13 +03:00
Slava Zanko
9c38485130
Search engine: remove forgotten debug string and reindent file
2009-05-05 22:50:19 +03:00
Slava Zanko
0eb537d8d5
Search engine:
...
* fixed double-free memory
* changed logic of parce regexp-string for \x{HEX} token
* added template file hex.c for HEX search type
2009-05-05 22:28:27 +03:00
Slava Zanko
2276e9b513
Search engine: now used regexp external engines:
...
* glib
* pcre
* POSIX regex
External engine selected automatically, if present.
2009-05-05 16:19:32 +03:00
Slava Zanko
a802e51566
Search engine: regex replace now works correct
2009-04-30 10:32:45 +03:00
Andrew Borodin
a93716386c
src/search/regex.c (mc_search__regex_found_cond_one): convert GError message
...
to terminal charset.
(mc_search__cond_struct_new_init_regex): likewise.
2009-04-29 20:17:09 +04:00
Slava Zanko
def581b24d
Search engine:
...
* add function for prepare replacement string
edit/editcmd.c:
* changes for correct replace
WARNING! replace don't fully works!
2009-04-29 18:45:21 +03:00
Slava Zanko
d7f85d90d3
Search engine: fix core dump with invalid regex
2009-04-29 10:08:55 +03:00
Ilia Maslakov
d99c1def10
fix: broken building on glib < 2.14
2009-04-27 06:34:10 +00:00
Slava Zanko
f8deaf63bc
Search engine: regex search now worked in any charset
2009-04-25 16:51:37 +03:00
Slava Zanko
c2455b246c
Make search module more independ (and prepare for future mclib :) )
2009-04-25 11:09:47 +03:00