mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
(mc_search__cond_struct_new_regex_ci_str): add documentation.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
d078ae4713
commit
c0abaa6508
@ -195,6 +195,19 @@ mc_search__cond_struct_new_regex_accum_append (const char *charset, GString * st
|
||||
|
||||
/* --------------------------------------------------------------------------------------------- */
|
||||
|
||||
/**
|
||||
* Creates a case-insensitive version of a regex pattern.
|
||||
*
|
||||
* For example (assuming ASCII charset): given "\\bHello!\\xAB", returns
|
||||
* "\\b[Hh][Ee][Ll][Ll][Oo]!\\xAB" (this example is for easier reading; in
|
||||
* reality hex codes are used instead of letters).
|
||||
*
|
||||
* This function knows not to ruin special regex symbols.
|
||||
*
|
||||
* This function is used when working with non-UTF-8 charsets: GLib's
|
||||
* regex engine doesn't understand such charsets and therefore can't do
|
||||
* this job itself.
|
||||
*/
|
||||
static GString *
|
||||
mc_search__cond_struct_new_regex_ci_str (const char *charset, const GString * astr)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user