mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
Merge branch 'm-utf-8' of ssh://angel_il@midnight-commander.org:2222/git/mc into m-utf-8
This commit is contained in:
commit
28425d427f
@ -513,7 +513,7 @@ str_8bit_search_first (const char *text, const char *search, int case_sen)
|
|||||||
size_t offsset;
|
size_t offsset;
|
||||||
|
|
||||||
fold_text = (case_sen) ? (char *) text : g_strdown (g_strdup (text));
|
fold_text = (case_sen) ? (char *) text : g_strdown (g_strdup (text));
|
||||||
fold_search = (case_sen) ? (char *) text : g_strdown (g_strdup (search));
|
fold_search = (case_sen) ? (char *) search : g_strdown (g_strdup (search));
|
||||||
|
|
||||||
match = g_strstr_len (fold_text, -1, fold_search);
|
match = g_strstr_len (fold_text, -1, fold_search);
|
||||||
if (match != NULL)
|
if (match != NULL)
|
||||||
@ -540,7 +540,7 @@ str_8bit_search_last (const char *text, const char *search, int case_sen)
|
|||||||
size_t offsset;
|
size_t offsset;
|
||||||
|
|
||||||
fold_text = (case_sen) ? (char *) text : g_strdown (g_strdup (text));
|
fold_text = (case_sen) ? (char *) text : g_strdown (g_strdup (text));
|
||||||
fold_search = (case_sen) ? (char *) text : g_strdown (g_strdup (search));
|
fold_search = (case_sen) ? (char *) search : g_strdown (g_strdup (search));
|
||||||
|
|
||||||
match = g_strrstr_len (fold_text, -1, fold_search);
|
match = g_strrstr_len (fold_text, -1, fold_search);
|
||||||
if (match != NULL)
|
if (match != NULL)
|
||||||
|
Loading…
Reference in New Issue
Block a user