Mercurial > vim
annotate src/proto/search.pro @ 33888:cb88e5c589d0 v9.0.2153
patch 9.0.2153: no support to build on OpenVMS
Commit: https://github.com/vim/vim/commit/1c8e233cb8357b4f218bfa777f6d81456d0b43a2
Author: Zoltan Arpadffy <zoltan.arpadffy@gmail.com>
Date: Tue Dec 5 16:04:23 2023 +0100
patch 9.0.2153: no support to build on OpenVMS
Problem: no support to build on OpenVMS
Solution: Add OpenVMS X86_64 platform port
closes: #13623
Co-authored-by: errael <errael@raelity.com>
Co-authored-by: K.Takata <kentkt@csc.jp>
Signed-off-by: Zoltan Arpadffy <zoltan.arpadffy@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 10 Dec 2023 15:16:25 +0100 |
parents | 06562c9307dd |
children | dd8f5311cee5 |
rev | line source |
---|---|
7 | 1 /* search.c */ |
31519
0e92ffdd9ea7
patch 9.0.1092: search error message doesn't show used pattern
Bram Moolenaar <Bram@vim.org>
parents:
28415
diff
changeset
|
2 int search_regcomp(char_u *pat, char_u **used_pat, int pat_save, int pat_use, int options, regmmatch_T *regmatch); |
7668
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
6991
diff
changeset
|
3 char_u *get_search_pat(void); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
6991
diff
changeset
|
4 void save_re_pat(int idx, char_u *pat, int magic); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
6991
diff
changeset
|
5 void save_search_patterns(void); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
6991
diff
changeset
|
6 void restore_search_patterns(void); |
13963 | 7 void free_search_patterns(void); |
12720
37c384802df4
patch 8.0.1238: incremental search only shows one match
Christian Brabandt <cb@256bit.org>
parents:
11521
diff
changeset
|
8 void save_last_search_pattern(void); |
37c384802df4
patch 8.0.1238: incremental search only shows one match
Christian Brabandt <cb@256bit.org>
parents:
11521
diff
changeset
|
9 void restore_last_search_pattern(void); |
12855
3c09e451af3a
patch 8.0.1304: CTRL-G/CTRL-T don't work with incsearch and empty pattern
Christian Brabandt <cb@256bit.org>
parents:
12720
diff
changeset
|
10 char_u *last_search_pattern(void); |
7668
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
6991
diff
changeset
|
11 int ignorecase(char_u *pat); |
9913
bb00c661b3a4
commit https://github.com/vim/vim/commit/66e29d7112e437b2b50efe1f82c7e892736d23e4
Christian Brabandt <cb@256bit.org>
parents:
7668
diff
changeset
|
12 int ignorecase_opt(char_u *pat, int ic_in, int scs); |
7668
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
6991
diff
changeset
|
13 int pat_has_uppercase(char_u *pat); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
6991
diff
changeset
|
14 char_u *last_csearch(void); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
6991
diff
changeset
|
15 int last_csearch_forward(void); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
6991
diff
changeset
|
16 int last_csearch_until(void); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
6991
diff
changeset
|
17 void set_last_csearch(int c, char_u *s, int len); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
6991
diff
changeset
|
18 void set_csearch_direction(int cdir); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
6991
diff
changeset
|
19 void set_csearch_until(int t_cmd); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
6991
diff
changeset
|
20 char_u *last_search_pat(void); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
6991
diff
changeset
|
21 void reset_search_dir(void); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
6991
diff
changeset
|
22 void set_last_search_pat(char_u *s, int idx, int magic, int setlast); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
6991
diff
changeset
|
23 void last_pat_prog(regmmatch_T *regmatch); |
18358
34d5cd432cac
patch 8.1.2173: searchit() has too many arguments
Bram Moolenaar <Bram@vim.org>
parents:
17476
diff
changeset
|
24 int searchit(win_T *win, buf_T *buf, pos_T *pos, pos_T *end_pos, int dir, char_u *pat, long count, int options, int pat_use, searchit_arg_T *extra_arg); |
7668
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
6991
diff
changeset
|
25 void set_search_direction(int cdir); |
19475
5512aa74cb62
patch 8.2.0295: highlighting for :s wrong when using different separator
Bram Moolenaar <Bram@vim.org>
parents:
19384
diff
changeset
|
26 int do_search(oparg_T *oap, int dirc, int search_delim, char_u *pat, long count, int options, searchit_arg_T *sia); |
7668
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
6991
diff
changeset
|
27 int search_for_exact_line(buf_T *buf, pos_T *pos, int dir, char_u *pat); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
6991
diff
changeset
|
28 int searchc(cmdarg_T *cap, int t_cmd); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
6991
diff
changeset
|
29 pos_T *findmatch(oparg_T *oap, int initc); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
6991
diff
changeset
|
30 pos_T *findmatchlimit(oparg_T *oap, int initc, int flags, int maxtravel); |
26516
9596c652420b
patch 8.2.3787: no proper formatting of a C line comment after a statement
Bram Moolenaar <Bram@vim.org>
parents:
24547
diff
changeset
|
31 int check_linecomment(char_u *line); |
7668
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
6991
diff
changeset
|
32 void showmatch(int c); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
6991
diff
changeset
|
33 int current_search(long count, int forward); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
6991
diff
changeset
|
34 int linewhite(linenr_T lnum); |
21b0a39d13ed
commit https://github.com/vim/vim/commit/ef26954a35207c3f17d6ed35d9a40c918d974892
Christian Brabandt <cb@256bit.org>
parents:
6991
diff
changeset
|
35 void find_pattern_in_path(char_u *ptr, int dir, int len, int whole, int skip_comments, int type, long count, int action, linenr_T start_lnum, linenr_T end_lnum); |
18358
34d5cd432cac
patch 8.1.2173: searchit() has too many arguments
Bram Moolenaar <Bram@vim.org>
parents:
17476
diff
changeset
|
36 spat_T *get_spat(int idx); |
17476
d4b2a212fa2f
patch 8.1.1736: viminfo support is spread out
Bram Moolenaar <Bram@vim.org>
parents:
15239
diff
changeset
|
37 int get_spat_last_idx(void); |
20647
8a2b86a39ef4
patch 8.2.0877: cannot get the search statistics
Bram Moolenaar <Bram@vim.org>
parents:
20209
diff
changeset
|
38 void f_searchcount(typval_T *argvars, typval_T *rettv); |
24547
192058cad081
patch 8.2.2813: cannot grep using fuzzy matching
Bram Moolenaar <Bram@vim.org>
parents:
22355
diff
changeset
|
39 int fuzzy_match(char_u *str, char_u *pat_arg, int matchseq, int *outScore, int_u *matches, int maxMatches); |
22232
f22acf6472da
patch 8.2.1665: cannot do fuzzy string matching
Bram Moolenaar <Bram@vim.org>
parents:
20647
diff
changeset
|
40 void f_matchfuzzy(typval_T *argvars, typval_T *rettv); |
22355
0491b9cafd44
patch 8.2.1726: fuzzy matching only works on strings
Bram Moolenaar <Bram@vim.org>
parents:
22232
diff
changeset
|
41 void f_matchfuzzypos(typval_T *argvars, typval_T *rettv); |
27875
ae38d2e81fca
patch 8.2.4463: completion only uses strict matching
Bram Moolenaar <Bram@vim.org>
parents:
26516
diff
changeset
|
42 int fuzzy_match_str(char_u *str, char_u *pat); |
28415
813660733869
patch 8.2.4732: duplicate code to free fuzzy matches
Bram Moolenaar <Bram@vim.org>
parents:
28405
diff
changeset
|
43 void fuzmatch_str_free(fuzmatch_str_T *fuzmatch, int count); |
813660733869
patch 8.2.4732: duplicate code to free fuzzy matches
Bram Moolenaar <Bram@vim.org>
parents:
28405
diff
changeset
|
44 int fuzzymatches_to_strmatches(fuzmatch_str_T *fuzmatch, char_u ***matches, int count, int funcsort); |
7 | 45 /* vim: set ft=c : */ |