search 200 lib/search.h mc_search_line_t mc_search_get_line_type (const mc_search_t *search); search 1127 lib/search/regex.c mc_search_get_line_type (const mc_search_t *search) search 1131 lib/search/regex.c if (search->search_type == MC_SEARCH_T_REGEX) search 1133 lib/search/regex.c if (search->original.str->str[0] == '^') search 1136 lib/search/regex.c if (search->original.str->str[search->original.str->len - 1] == '$') search 431 lib/search/search.c mc_search_t *search; search 436 lib/search/search.c search = mc_search_new (pattern, pattern_charset); search 437 lib/search/search.c if (search == NULL) search 440 lib/search/search.c search->search_type = type; search 441 lib/search/search.c search->is_case_sensitive = TRUE; search 444 lib/search/search.c search->is_entire_line = TRUE; search 446 lib/search/search.c ret = mc_search_run (search, str, 0, strlen (str), NULL); search 447 lib/search/search.c mc_search_free (search); search 806 lib/strutil/strutil.c str_search_first (const char *text, const char *search, gboolean case_sen) search 808 lib/strutil/strutil.c return used_class.search_first (text, search, case_sen); search 814 lib/strutil/strutil.c str_search_last (const char *text, const char *search, gboolean case_sen) search 816 lib/strutil/strutil.c return used_class.search_last (text, search, case_sen); search 602 lib/strutil/strutil8bit.c str_8bit_search_first (const char *text, const char *search, gboolean case_sen) search 609 lib/strutil/strutil8bit.c fold_search = case_sen ? (char *) search : str_8bit_strdown (search); search 632 lib/strutil/strutil8bit.c str_8bit_search_last (const char *text, const char *search, gboolean case_sen) search 639 lib/strutil/strutil8bit.c fold_search = case_sen ? (char *) search : str_8bit_strdown (search); search 583 lib/strutil/strutilascii.c str_ascii_search_first (const char *text, const char *search, gboolean case_sen) search 590 lib/strutil/strutilascii.c fold_search = case_sen ? (char *) search : g_ascii_strdown (search, -1); search 613 lib/strutil/strutilascii.c str_ascii_search_last (const char *text, const char *search, gboolean case_sen) search 620 lib/strutil/strutilascii.c fold_search = case_sen ? (char *) search : g_ascii_strdown (search, -1); search 993 lib/strutil/strutilutf8.c str_utf8_search_first (const char *text, const char *search, gboolean case_sen) search 1011 lib/strutil/strutilutf8.c search_len = strlen (search); search 1016 lib/strutil/strutilutf8.c match = g_strstr_len (match, -1, search); search 1045 lib/strutil/strutilutf8.c str_utf8_search_last (const char *text, const char *search, gboolean case_sen) search 1063 lib/strutil/strutilutf8.c search_len = strlen (search); search 1067 lib/strutil/strutilutf8.c match = g_strrstr_len (deco_text, -1, search); search 142 src/diffviewer/internal.h } search; search 138 src/diffviewer/search.c g_free (dview->search.last_string); search 139 src/diffviewer/search.c dview->search.last_string = exp; search 151 src/diffviewer/search.c if (dview->search.last_accessed_num_line < 0) search 153 src/diffviewer/search.c dview->search.last_accessed_num_line = -1; search 157 src/diffviewer/search.c if ((size_t) dview->search.last_accessed_num_line >= dview->a[dview->ord]->len) search 158 src/diffviewer/search.c dview->search.last_accessed_num_line = (ssize_t) dview->a[dview->ord]->len; search 160 src/diffviewer/search.c for (ind = --dview->search.last_accessed_num_line; ind >= 0; ind--) search 168 src/diffviewer/search.c if (mc_search_run (dview->search.handle, p->p, 0, p->u.len, NULL)) search 170 src/diffviewer/search.c dview->skip_rows = dview->search.last_found_line = search 171 src/diffviewer/search.c dview->search.last_accessed_num_line = ind; search 186 src/diffviewer/search.c if (dview->search.last_accessed_num_line < 0) search 187 src/diffviewer/search.c dview->search.last_accessed_num_line = -1; search 188 src/diffviewer/search.c else if ((size_t) dview->search.last_accessed_num_line >= dview->a[dview->ord]->len) search 190 src/diffviewer/search.c dview->search.last_accessed_num_line = (ssize_t) dview->a[dview->ord]->len; search 194 src/diffviewer/search.c for (ind = (size_t) ++dview->search.last_accessed_num_line; ind < dview->a[dview->ord]->len; search 203 src/diffviewer/search.c if (mc_search_run (dview->search.handle, p->p, 0, p->u.len, NULL)) search 205 src/diffviewer/search.c dview->skip_rows = dview->search.last_found_line = search 206 src/diffviewer/search.c dview->search.last_accessed_num_line = (ssize_t) ind; search 235 src/diffviewer/search.c dview->search.last_found_line = -1; search 256 src/diffviewer/search.c mc_search_free (dview->search.handle); search 258 src/diffviewer/search.c dview->search.handle = mc_search_new (dview->search.last_string, cp_source); search 260 src/diffviewer/search.c dview->search.handle = mc_search_new (dview->search.last_string, NULL); search 263 src/diffviewer/search.c if (dview->search.handle == NULL) search 266 src/diffviewer/search.c dview->search.handle->search_type = mcdiffview_search_options.type; search 268 src/diffviewer/search.c dview->search.handle->is_all_charsets = mcdiffview_search_options.all_codepages; search 270 src/diffviewer/search.c dview->search.handle->is_case_sensitive = mcdiffview_search_options.case_sens; search 271 src/diffviewer/search.c dview->search.handle->whole_words = mcdiffview_search_options.whole_words; search 283 src/diffviewer/search.c else if (dview->search.handle == NULL) search 1804 src/diffviewer/ydiff.c mc_search_free (dview->search.handle); search 1805 src/diffviewer/ydiff.c dview->search.handle = NULL; search 1806 src/diffviewer/ydiff.c MC_PTR_FREE (dview->search.last_string); search 2434 src/diffviewer/ydiff.c dview->search.handle = NULL; search 2435 src/diffviewer/ydiff.c dview->search.last_string = NULL; search 2436 src/diffviewer/ydiff.c dview->search.last_found_line = -1; search 2437 src/diffviewer/ydiff.c dview->search.last_accessed_num_line = -1; search 2575 src/diffviewer/ydiff.c if (i == (size_t) dview->search.last_found_line) search 2789 src/diffviewer/ydiff.c dview->skip_rows = dview->search.last_accessed_num_line = last; search 2791 src/diffviewer/ydiff.c dview->skip_rows = dview->search.last_accessed_num_line = 0; search 2935 src/diffviewer/ydiff.c dview->skip_rows = dview->search.last_accessed_num_line = (ssize_t) i; search 3099 src/diffviewer/ydiff.c dview->skip_rows = dview->search.last_accessed_num_line = search 3103 src/diffviewer/ydiff.c dview->skip_rows = dview->search.last_accessed_num_line = search 3130 src/diffviewer/ydiff.c dview->skip_rows = dview->search.last_accessed_num_line = 0; search 3133 src/diffviewer/ydiff.c dview->skip_rows = dview->search.last_accessed_num_line = dview->a[DIFF_LEFT]->len - 1; search 3139 src/diffviewer/ydiff.c dview->search.last_accessed_num_line = dview->skip_rows; search 3144 src/diffviewer/ydiff.c dview->search.last_accessed_num_line = dview->skip_rows; search 3150 src/diffviewer/ydiff.c dview->search.last_accessed_num_line = dview->skip_rows; search 3157 src/diffviewer/ydiff.c dview->search.last_accessed_num_line = dview->skip_rows; search 3289 src/diffviewer/ydiff.c dview->search.last_accessed_num_line = dview->skip_rows; search 433 src/editor/editsearch.c mc_search_set_error (edit->search, MC_SEARCH_E_NOTFOUND, "%s", _(STR_E_NOTFOUND)); search 453 src/editor/editsearch.c mc_search_set_error (edit->search, MC_SEARCH_E_NOTFOUND, "%s", _(STR_E_NOTFOUND)); search 475 src/editor/editsearch.c if (search_end > (off_t) (search_start + edit->search->original.str->len) search 476 src/editor/editsearch.c && mc_search_is_fixed_search_str (edit->search)) search 477 src/editor/editsearch.c search_end = search_start + edit->search->original.str->len; search 479 src/editor/editsearch.c ok = mc_search_run (edit->search, (void *) esm, search_start, search_end, len); search 481 src/editor/editsearch.c if (ok && edit->search->normal_offset == search_start) search 486 src/editor/editsearch.c if (!ok && edit->search->error != MC_SEARCH_E_NOTFOUND) search 497 src/editor/editsearch.c mc_search_set_error (edit->search, MC_SEARCH_E_NOTFOUND, "%s", _(STR_E_NOTFOUND)); search 507 src/editor/editsearch.c return mc_search_run (edit->search, (void *) esm, search_start, end_mark, len); search 553 src/editor/editsearch.c if (edit->search->error == MC_SEARCH_E_NOTFOUND) search 555 src/editor/editsearch.c else if (edit->search->error_str != NULL) search 556 src/editor/editsearch.c edit_query_dialog (title, edit->search->error_str); search 568 src/editor/editsearch.c assert (edit->search != NULL); search 588 src/editor/editsearch.c while (mc_search_run (edit->search, (void *) &esm, q, edit->buffer.size, &len)) search 591 src/editor/editsearch.c edit->search_start = edit->search->normal_offset; search 594 src/editor/editsearch.c l += edit_buffer_count_lines (&edit->buffer, q, edit->search->normal_offset); search 598 src/editor/editsearch.c q = edit->search->normal_offset + 1; search 618 src/editor/editsearch.c edit->found_start = edit->search_start = edit->search->normal_offset; search 658 src/editor/editsearch.c edit->search = mc_search_new (str, cp_source); search 660 src/editor/editsearch.c edit->search = mc_search_new (str, NULL); search 663 src/editor/editsearch.c if (edit->search == NULL) search 666 src/editor/editsearch.c edit->search->search_type = edit_search_options.type; search 668 src/editor/editsearch.c edit->search->is_all_charsets = edit_search_options.all_codepages; search 670 src/editor/editsearch.c edit->search->is_case_sensitive = edit_search_options.case_sens; search 671 src/editor/editsearch.c edit->search->whole_words = edit_search_options.whole_words; search 672 src/editor/editsearch.c edit->search->search_fn = edit_search_cmd_callback; search 673 src/editor/editsearch.c edit->search->update_fn = edit_search_update_callback; search 675 src/editor/editsearch.c edit->search_line_type = mc_search_get_line_type (edit->search); search 687 src/editor/editsearch.c mc_search_free (edit->search); search 848 src/editor/editsearch.c mc_search_free (edit->search); search 849 src/editor/editsearch.c edit->search = NULL; search 855 src/editor/editsearch.c if (edit->search == NULL && !edit_search_init (edit, input1)) search 882 src/editor/editsearch.c if (!(edit->search->error == MC_SEARCH_E_OK || search 883 src/editor/editsearch.c (once_found && edit->search->error == MC_SEARCH_E_NOTFOUND))) search 890 src/editor/editsearch.c edit->search_start = edit->search->normal_offset; search 945 src/editor/editsearch.c repl_str = mc_search_prepare_replace_str (edit->search, input2_str); search 947 src/editor/editsearch.c if (edit->search->error != MC_SEARCH_E_OK) search 80 src/editor/editwidget.h mc_search_t *search; search 763 src/filemanager/ext.c mc_search_t *search; search 765 src/filemanager/ext.c search = mc_search_new (ptr, DEFAULT_CHARSET); search 766 src/filemanager/ext.c if (search != NULL) search 768 src/filemanager/ext.c search->search_type = MC_SEARCH_T_REGEX; search 769 src/filemanager/ext.c search->is_case_sensitive = !case_insense; search 770 src/filemanager/ext.c found = mc_search_run (search, content_string + content_shift, 0, -1, NULL); search 771 src/filemanager/ext.c mc_search_free (search); search 997 src/filemanager/ext.c mc_search_t *search; search 1000 src/filemanager/ext.c search = mc_search_new (pattern, DEFAULT_CHARSET); search 1003 src/filemanager/ext.c if (search != NULL) search 1005 src/filemanager/ext.c search->search_type = MC_SEARCH_T_REGEX; search 1006 src/filemanager/ext.c search->is_case_sensitive = !ignore_case; search 1007 src/filemanager/ext.c found = mc_search_run (search, filename, 0, filename_len, NULL); search 1008 src/filemanager/ext.c mc_search_free (search); search 418 src/filemanager/find.c mc_search_t *search; search 421 src/filemanager/find.c search = mc_search_new (r, NULL); search 423 src/filemanager/find.c if (search != NULL) search 425 src/filemanager/find.c search->search_type = MC_SEARCH_T_REGEX; search 426 src/filemanager/find.c regexp_ok = mc_search_prepare (search); search 427 src/filemanager/find.c mc_search_free (search); search 2121 src/filemanager/panel.c mc_search_t *search; search 2138 src/filemanager/panel.c search = mc_search_new (reg_exp, NULL); search 2139 src/filemanager/panel.c search->search_type = MC_SEARCH_T_REGEX; search 2140 src/filemanager/panel.c search->is_case_sensitive = FALSE; search 2149 src/filemanager/panel.c if (!mc_search_run (search, fe->fname->str, 0, fe->fname->len, NULL)) search 2155 src/filemanager/panel.c mc_search_free (search); search 2664 src/filemanager/panel.c mc_search_t *search; search 2698 src/filemanager/panel.c search = mc_search_new (reg_exp, NULL); search 2699 src/filemanager/panel.c search->search_type = shell_patterns ? MC_SEARCH_T_GLOB : MC_SEARCH_T_REGEX; search 2700 src/filemanager/panel.c search->is_entire_line = TRUE; search 2701 src/filemanager/panel.c search->is_case_sensitive = case_sens; search 2708 src/filemanager/panel.c if (!mc_search_prepare (search)) search 2711 src/filemanager/panel.c mc_search_free (search); search 2724 src/filemanager/panel.c return search; search 2733 src/filemanager/panel.c mc_search_t *search; search 2737 src/filemanager/panel.c search = panel_select_unselect_files_dialog (&panels_options.select_flags, title, history_name, search 2739 src/filemanager/panel.c if (search == NULL || search == SELECT_RESET || search == SELECT_ERROR) search 2752 src/filemanager/panel.c (search, panel->dir.list[i].fname->str, 0, panel->dir.list[i].fname->len, NULL)) search 2756 src/filemanager/panel.c mc_search_free (search); search 2828 src/filemanager/panel.c mc_search_t *search; search 2869 src/filemanager/panel.c search = mc_search_new (esc_str, NULL); search 2870 src/filemanager/panel.c search->search_type = MC_SEARCH_T_GLOB; search 2871 src/filemanager/panel.c search->is_entire_line = TRUE; search 2876 src/filemanager/panel.c search->is_case_sensitive = TRUE; search 2879 src/filemanager/panel.c search->is_case_sensitive = FALSE; search 2882 src/filemanager/panel.c search->is_case_sensitive = panel->sort_info.case_sensitive; search 2898 src/filemanager/panel.c (search, panel->dir.list[i].fname->str, 0, panel->dir.list[i].fname->len, NULL)) search 2918 src/filemanager/panel.c mc_search_free (search); search 167 src/viewer/internal.h mc_search_t *search; search 245 src/viewer/lib.c view->search = NULL; search 178 src/viewer/search.c if (search_end > search_start + (off_t) view->search->original.str->len search 179 src/viewer/search.c && mc_search_is_fixed_search_str (view->search)) search 180 src/viewer/search.c search_end = search_start + view->search->original.str->len; search 182 src/viewer/search.c ok = mc_search_run (view->search, (void *) ssm, search_start, search_end, len); search 183 src/viewer/search.c if (ok && view->search->normal_offset == search_start) search 186 src/viewer/search.c view->search->normal_offset++; search 192 src/viewer/search.c if (!ok && view->search->error != MC_SEARCH_E_NOTFOUND) search 201 src/viewer/search.c mc_search_set_error (view->search, MC_SEARCH_E_NOTFOUND, "%s", _(STR_E_NOTFOUND)); search 211 src/viewer/search.c return mc_search_run (view->search, (void *) ssm, search_start, search_end, len); search 223 src/viewer/search.c ? mcview__get_nroff_real_len (view, view->search->start_buffer, search 224 src/viewer/search.c view->search->normal_offset - view->search->start_buffer) : 0; search 225 src/viewer/search.c view->search_start = view->search->normal_offset + nroff_len; search 304 src/viewer/search.c growbufsize = view->search->original.str->len; search 317 src/viewer/search.c if (view->search->error != MC_SEARCH_E_NOTFOUND) search 320 src/viewer/search.c search_start = growbufsize - view->search->original.str->len; search 325 src/viewer/search.c if (view->growbuf_in_use && !found && view->search->error == MC_SEARCH_E_NOTFOUND search 335 src/viewer/search.c if (orig_search_start != 0 && (!found && view->search->error == MC_SEARCH_E_NOTFOUND) search 373 src/viewer/search.c if (view->search->error == MC_SEARCH_E_NOTFOUND) search 375 src/viewer/search.c else if (view->search->error_str != NULL) search 376 src/viewer/search.c query_dialog (_("Search"), view->search->error_str, D_NORMAL, 1, _("&Dismiss")); search 390 src/viewer/search.c view->search = mc_search_new (view->last_search_string, cp_source); search 392 src/viewer/search.c view->search = mc_search_new (view->last_search_string, NULL); search 397 src/viewer/search.c if (view->search == NULL) search 400 src/viewer/search.c view->search->search_type = mcview_search_options.type; search 402 src/viewer/search.c view->search->is_all_charsets = mcview_search_options.all_codepages; search 404 src/viewer/search.c view->search->is_case_sensitive = mcview_search_options.case_sens; search 405 src/viewer/search.c view->search->whole_words = mcview_search_options.whole_words; search 406 src/viewer/search.c view->search->search_fn = mcview_search_cmd_callback; search 407 src/viewer/search.c view->search->update_fn = mcview_search_update_cmd_callback; search 409 src/viewer/search.c view->search_line_type = mc_search_get_line_type (view->search); search 419 src/viewer/search.c mc_search_free (view->search);