Home
last modified time | relevance | path

Searched refs:string (Results 1 – 25 of 474) sorted by relevance

12345678910>>...19

/vim-8.2.3635/src/testdir/
H A Dtest_float_func.vim8 call assert_equal('1.23', string(abs(1.23)))
9 call assert_equal('1.23', string(abs(-1.23)))
10 eval -1.23->abs()->string()->assert_equal('1.23')
12 call assert_equal('0.0', string(abs(0.0)))
15 call assert_equal('inf', string(abs(1.0/0.0)))
18 call assert_equal('12', string(abs('12abc')))
26 call assert_equal('0.0', string(sqrt(0.0)))
36 call assert_equal('0.0', string(log(1.0)))
39 call assert_equal('-inf', string(log(0.0)))
187 let res = string(fmod(1.0, 1.0/0.0))
[all …]
H A Dtest_vim9_builtin.vim38 def RetListString(): list<string>
50 def RetDictString(): dict<string>
150 var l: list<string> = ['a']
157 var l: list<string>
458 # test empty string argument for ch_getbufnr()
1567 var s1: string = getreg('"')
1568 var s2: string = getreg('"', 1)
1569 var s3: list<string> = getreg('"', 1, 1)
1785 var ans: string = inputsecret('Pass:', '123')
2059 def MapOne(i: number, v: string): string argument
[all …]
H A Dtest_vim9_func.vim479 def MyVarargs(arg: string, ...rest: list<string>): string argument
589 def Nested(arg: string): string argument
1377 def WithReservedNames(firstline: string, lastline: string): string argument
2186 def ExtendRef(Ref: func(string): list<string>, add: string) argument
2263 def Closure(arg: string): string argument
2404 def F(head: string): func(string): func(string): string argument
2405 return (sep: string): func(string): string => ((tail: string): string => {
2417 def F(text: string): func(string): func(string): string argument
2418 return (arg: string): func(string): string => ((sep: string): string => {
3081 def F1(x: string): string argument
[all …]
H A Dvim9.vim59 def CheckScriptFailure(lines: list<string>, error: string, lnum = -3) argument
72 def CheckScriptFailureList(lines: list<string>, errors: list<string>, lnum = -3) argument
105 def CheckDefAndScriptFailure(lines: list<string>, error: string, lnum = -3) argument
112 lines: list<string>,
113 errorDef: string,
114 errorScript: string,
122 def CheckDefExecAndScriptFailure(lines: list<string>, error: string, lnum = -3) argument
129 lines: list<string>,
130 errorDef: string,
131 errorScript: string,
[all …]
H A Dtest_lua.vim61 \ "[string \"vim chunk\"]:1: bad argument #1 to 'format' (string expected, got no value)")
80 " lua.eval with a string
119 \ "[string \"vim chunk\"]:1: bad argument #1 to 'eval' (string expected, got nil)")
121 \ "[string \"vim chunk\"]:1: bad argument #1 to 'eval' (string expected, got boolean)")
123 \ "[string \"vim chunk\"]:1: bad argument #1 to 'eval' (string expected, got table)")
125 \ "[string \"vim chunk\"]:1: bad argument #1 to 'eval' (string expected, got function)")
127 \ "[string \"vim chunk\"]:1: bad argument #1 to 'eval' (string expected, got userdata)")
480 call assert_fails('lua vim.list("x")', '[string "vim chunk"]:1: table expected, got string')
637 call assert_fails('lua b:add(nil)', '[string "vim chunk"]:1: string expected, got nil')
639 call assert_fails('lua b:add({})', '[string "vim chunk"]:1: string expected, got table')
[all …]
H A Dtest_vim9_assign.vim413 var y: string
421 var z: string
428 var y: string
429 var z: string
671 var a: string
674 var s: string
1000 var v1: string
1121 def Mess(): string
1722 var name:string
1971 var x: string 'string'
[all …]
H A Dtest_python2.vim147 call append( 1, string( lnum ) )
192 call append( 1, string( lnum ) )
962 " operatorfunc: string, global
965 " colorcolumn: string, window-local
966 " statusline: string, window-local/global
969 " omnifunc: string, buffer-local
985 let gval = string(eval('&g:' .. a:opt))
1391 " unset a global-local string option
1442 " Append a non-string item
2164 return vim.Function('string')(v)
[all …]
H A Dtest_substitute.vim50 let ln = 'Testing string'
73 \ { 'cmd': ':s/t/r/i', 'exp': 'resting string' },
77 \ { 'cmd': ':s//r/ir', 'exp': 'Testr string' },
85 \ { 'cmd': ':s//r/Ir', 'exp': 'Testr string' },
88 \ { 'cmd': ':s//r/ri', 'exp': 'Testr string' },
89 \ { 'cmd': ':s//r/rI', 'exp': 'Testr string' },
91 \ { 'cmd': ':s//r/rp', 'exp': 'Testr string' },
92 \ { 'cmd': ':s//r/rl', 'exp': 'Testr string' },
93 \ { 'cmd': ':s//r/r', 'exp': 'Testr string' },
731 " Set the last replace string to empty
[all …]
H A Dtest_true_false.vim14 call assert_true(false, 'zero string is false')
36 call assert_true(false, 'one string is true')
40 call assert_true(false, 'one in string is true')
45 call assert_fails('if function("string")', 'E703:')
54 …t_equal(a:false_val, r, 'result for ' . v . ' is not ' . string(a:false_val) . ' but ' . string(r))
58 …ert_equal(a:true_val, r, 'result for ' . v . ' is not ' . string(a:true_val) . ' but ' . string(r))
144 call assert_equal('v', r, 'result for ' . string(v) . ' is not "v" but ' . r)
146 call assert_equal('v', r, 'result for ' . string(v) . ' is not "v" but ' . r)
H A Dtest_partial.vim189 call assert_equal("function('MyFunc')", string(F))
191 call assert_equal("function('MyFunc', ['foo'])", string(F))
193 call assert_equal("function('MyFunc', ['foo', 'bar'])", string(F))
196 call assert_equal("function('MyFunc', {'one': 1})", string(F))
198 call assert_equal("function('MyFunc', ['foo'], {'one': 1})", string(F))
199 call assert_equal("function('')", string(test_null_function()))
200 call assert_equal("function('')", string(test_null_partial()))
220 call string(d.test3)
255 let Pt = function('string', [l])
264 let Pt = function('string', [d])
[all …]
H A Dtest_vim9_expr.vim7 def FuncOne(arg: number): string
1684 var ls: list<string> = ['a', <string>g:string_empty]
1691 <string>
1769 # string constant
2083 var Func = (s: string): string => {
2210 var RefOne: func(number): string = (a: number): string => 'x'
2763 var sval: string = &path
2955 def LegacyReturn(): string
2962 def GetLocal(): string
2985 def Echo(arg: any): string
[all …]
/vim-8.2.3635/runtime/autoload/
H A Dphpcomplete.vim1501 " set the string mark
1520 " the empty string represents the completion base (which happen to be an empty string)
2775string $str, string $charlist | string','addslashes(':'string $str | string','bin2hex(':'string $s…
2780string $data [, bool $strict = false] | string','base64_encode(':'string $data | string','get_head…
2781string $path [, string $suffix] | string','chgrp(':'string $filename, mixed $group | bool','chmod(…
2787string $host [, string $type = "MX"] | bool','closelog(':'void | bool','define_syslog_variables(':…
2793string $arg | string','escapeshellcmd(':'string $command | string','exec(':'string $command [, arr…
2794 …l']={'ezmlm_hash(':'string $addr | int','mail(':'string $to, string $subject, string $message [, s…
2800string $type = "all"] | mixed','iconv_mime_decode_headers(':'string $encoded_headers [, int $mode …
2803string $var = NULL [, string $encoding = mb_internal_encoding()]] | bool','mb_convert_case(':'stri…
[all …]
/vim-8.2.3635/runtime/syntax/
H A Dmonk.vim73 syn keyword monkFunc symbol? symbol->string string->symbol number? complex?
80 syn keyword monkFunc inexact->exact number->string string->number char=?
86 syn keyword monkFunc string? make-string string string-length string-ref
87 syn keyword monkFunc string-set! string=? string-ci=? string<? string-ci<?
88 syn keyword monkFunc string>? string-ci>? string<=? string-ci<=? string>=?
89 syn keyword monkFunc string-ci>=? substring string-append vector? make-vector
97 syn keyword monkFunc list-tail string->list list->string string-copy
122 syn keyword monkFunc julian->standard leap-year? map-string not-empty-string?
124 syn keyword monkFunc string-contains? string-ends-with? string-search-from-left
125 syn keyword monkFunc string-search-from-right string->ssn strip-punct
[all …]
H A Dscheme.vim300 syn keyword schemeFunction make-string
347 syn keyword schemeFunction read-string
360 syn keyword schemeFunction string
379 syn keyword schemeFunction string-map
380 syn keyword schemeFunction string-ref
383 syn keyword schemeFunction string<=?
384 syn keyword schemeFunction string<?
385 syn keyword schemeFunction string=?
386 syn keyword schemeFunction string>=?
387 syn keyword schemeFunction string>?
[all …]
H A Dxpm.vim34 if s != "" " does line contain a string?
36 if n == 0 " first string is the Values string
46 " Highlight the Values string as normal string (no pixel string).
55 elseif n <= colors " string is a color specification
57 " get chars = <cpp> length string representing the pixels
94 " highlight the color string as normal string (no pixel string)
119 break " no more color string
H A Dxpm2.vim41 if s != "" " does line contain a string?
43 if n == 0 " first string is the Values string
53 " Highlight the Values string as normal string (no pixel string).
62 elseif n <= colors " string is a color specification
64 " get chars = <cpp> length string representing the pixels
105 " highlight the color string as normal string (no pixel string)
128 break " no more color string
H A Dlatte.vim53 syn keyword latteSyntax string-append string-ge? string-greater-equal? contained
54 syn keyword latteSyntax string-greater? string-gt? string-le? contained
55 syn keyword latteSyntax string-less-equal? string-less? string-lt? contained
56 syn keyword latteSyntax string? subseq substr subtract contained
H A Dlisp.vim82 syn keyword lispFunc // float prin1-to-string
140 syn keyword lispFunc base-string ignorable remove-if
202 syn keyword lispFunc char= listen simple-string
250 syn keyword lispFunc complement make-instance string
252 syn keyword lispFunc complexp make-list string<=
255 syn keyword lispFunc concatenate make-method string>=
260 syn keyword lispFunc conjugate make-string string-downcase
261 syn keyword lispFunc cons make-string-input-stream string-equal
262 syn keyword lispFunc consp make-string-output-stream string-greaterp
271 syn keyword lispFunc copy-seq mapcon string-stream
[all …]
H A Dlua.vim203 syn match luaFunc /\<string\.byte\>/
204 syn match luaFunc /\<string\.char\>/
205 syn match luaFunc /\<string\.dump\>/
206 syn match luaFunc /\<string\.find\>/
208 syn match luaFunc /\<string\.gsub\>/
209 syn match luaFunc /\<string\.len\>/
210 syn match luaFunc /\<string\.lower\>/
211 syn match luaFunc /\<string\.rep\>/
212 syn match luaFunc /\<string\.sub\>/
213 syn match luaFunc /\<string\.upper\>/
[all …]
/vim-8.2.3635/src/proto/
H A Dstrings.pro2 char_u *vim_strsave(char_u *string);
3 char_u *vim_strnsave(char_u *string, size_t len);
4 char_u *vim_strsave_escaped(char_u *string, char_u *esc_chars);
5 char_u *vim_strsave_escaped_ext(char_u *string, char_u *esc_chars, int cc, int bsl);
7 char_u *vim_strsave_shellescape(char_u *string, int do_special, int do_newline);
8 char_u *vim_strsave_up(char_u *string);
9 char_u *vim_strnsave_up(char_u *string, size_t len);
17 char_u *vim_strchr(char_u *string, int c);
18 char_u *vim_strbyte(char_u *string, int c);
19 char_u *vim_strrchr(char_u *string, int c);
/vim-8.2.3635/src/
H A Dos_macosx.m74 NSString *string = nil;
90 string = obj;
95 if (!string)
119 string = mstring;
127 char_u *str = (char_u*)[string UTF8String];
128 int len = [string lengthOfBytesUsingEncoding:NSUTF8StringEncoding];
177 NSString *string = [[NSString alloc]
192 NSArray *plist = [NSArray arrayWithObjects:motion, string, nil];
196 [pb setString:string forType:NSPasteboardTypeString];
198 [pb setString:string forType:NSStringPboardType];
[all …]
H A Dgui_x11.c829 string = p; in gui_x11_key_hit_cb()
847 string = p; in gui_x11_key_hit_cb()
855 len = XLookupString(ev_press, (char *)string, sizeof(string), in gui_x11_key_hit_cb()
876 string[0] = Ctrl__; in gui_x11_key_hit_cb()
883 string[0] = TAB; in gui_x11_key_hit_cb()
894 string[1] = KS_EXTRA; in gui_x11_key_hit_cb()
907 string[0] = CSI; in gui_x11_key_hit_cb()
929 string[0] += 0x40; in gui_x11_key_hit_cb()
941 key = TO_SPECIAL(string[1], string[2]); in gui_x11_key_hit_cb()
944 string[len] = NUL; in gui_x11_key_hit_cb()
[all …]
H A Dmisc1.c110 ++string; in get_leader_len()
112 for (j = 0; string[j] != NUL && string[j] == line[i + j]; ++j) in get_leader_len()
114 if (string[j] != NUL) in get_leader_len()
192 char_u *string; in get_last_leader_offset() local
223 com_leader = string; in get_last_leader_offset()
236 ++string; in get_last_leader_offset()
238 for (j = 0; string[j] != NUL && string[j] == line[i + j]; ++j) in get_last_leader_offset()
240 if (string[j] != NUL) in get_last_leader_offset()
307 ++string; in get_last_leader_offset()
309 ++string; in get_last_leader_offset()
[all …]
/vim-8.2.3635/runtime/doc/
H A Dusr_46.txt39 export def GetMessage(): string
47 def GetPart(nr: number): string
58 The `export def GetMessage(): string` line starts with `export`, meaning that
63 In the `export def GetMessage(): string` line you will notice the colon and
90 If you try to assign a string to this variable, you will get an error: >
100 let word: string
126 arguments to numbers, and any string without a number results in zero!
132 def ExtendAndReturn(add: string): string
141 E1013: type mismatch, expected number but got string
151 def ReportResult(result: string)
[all …]
/vim-8.2.3635/runtime/pack/dist/opt/matchit/autoload/
H A Dmatchit.vim198 let skip = 's:comment\|string'
366 fun! s:Wholematch(string, pat, start) argument
369 let len = strlen(a:string)
382 " Two arguments: s:Ref(string, d, "foo", "bar") returns a string to be
386 fun! s:Ref(string, d, ...) argument
387 let len = strlen(a:string)
392 let match = a:string
430 " s:Count(string, pattern).
431 fun! s:Count(string, pattern, ...) argument
440 let foo = a:string
[all …]

12345678910>>...19