Home
last modified time | relevance | path

Searched refs:length (Results 1 – 25 of 214) sorted by relevance

123456789

/vim-8.2.3635/src/testdir/
H A Dtest_textprop.vim162 unlet result.length
174 unlet result.length
177 unlet result.length
196 unlet result.length
211 unlet result.length
323 " Prop without length or end column is zero length
753 let expect.length = 5
758 let expect.length = 2
793 let expect1.length = 8
796 let expect3.length = 9
[all …]
H A Dtest_quotestar.vim85 let length = 262044
86 let sample = 'a' . repeat('b', length - 2) . 'c'
88 call WaitFor('remote_expr("' . name . '", "len(@*) >= ' . length . '", "", 1)')
90 call assert_equal(length, len(res))
91 " Check length to prevent a large amount of output at assertion failure.
92 if length == len(res)
H A Dtest_popupwin_textprop.vim19 \ length: 7,
67 \ length: 6,
128 \ length: 6,
H A Dtest_tagjump.vim367 call assert_equal(0, gettagstack(1).length)
398 call assert_equal(3, gettagstack().length)
410 call assert_equal(0, gettagstack().length)
413 call assert_equal(0, gettagstack().length)
416 call assert_equal(0, gettagstack().length)
419 call assert_equal(0, gettagstack().length)
445 call assert_equal(9, t.length)
451 call assert_equal(4, t.length)
459 call assert_equal(1, t.length)
472 call assert_equal(1, gettagstack().length)
[all …]
H A Dtest_ruby.vim64 \ 'ArgumentError: array length must be 2')
68 " Test buffer.count and buffer.length (number of lines in buffer)
73 call assert_equal(3, rubyeval('$curbuf.length'))
414 " "SyntaxError: array length must be 2"
/vim-8.2.3635/runtime/doc/
H A Dmakehtml.awk430 atag=substr(atag,1,length(atag)-1);
458 atag=substr(atag,2,length(atag)-2);
471 last2=substr(atag,length(atag)-1,2);
475 atag=substr(atag,3,length(atag)-4);
488 atag=substr(atag,1,length(atag)-2);
500 atag=substr(atag,1,length(atag)-2);
512 last6=substr(atag,length(atag)-5,6);
534 atag=substr(atag,7,length(atag)-6);
683 lata=length(ata);
711 && length(p[npp]) > length(atag) \
[all …]
H A Dtextprop.txt39 length. The property can span multiple lines.
71 call prop_add(11, 12, {'length': 3, 'type': 'number'})
72 call prop_add(11, 32, {'length': 4, 'type': 'number'})
129 length length of text in bytes, can only be used
134 "length" is present; when {col} and "end_col"
144 It is an error when both "length" and "end_lnum" or "end_col"
145 are given. Either use "length" or "end_col" for a property
148 When neither "length" nor "end_col" are given the property
241 length length in bytes, one more if line break is
/vim-8.2.3635/runtime/tools/
H A Dxcmdsrv_client.c73 Window window, Atom property, char *value, int length);
109 int length; in sendToVim() local
169 length = strlen(name) + strlen(cmd) + 10; in sendToVim()
170 if (length <= STATIC_SPACE) in sendToVim()
173 property = (char *) malloc((unsigned) length); in sendToVim()
183 sprintf(property + length, "%c-r %x %d", 0, (uint) commWindow, serial); in sendToVim()
184 length += strlen(property + length + 1) + 1; in sendToVim()
187 res = AppendPropCarefully(dpy, w, commProperty, property, length + 1); in sendToVim()
188 if (length > STATIC_SPACE) in sendToVim()
543 int length) /* How much to append */ in AppendPropCarefully() argument
[all …]
/vim-8.2.3635/src/
H A Dif_xcmdsrv.c380 int length; in serverSendToVim() local
443 length = STRLEN(name) + STRLEN(p_enc) + STRLEN(cmd) + 14; in serverSendToVim()
444 property = alloc(length + 30); in serverSendToVim()
452 sprintf((char *)property + length, "%c-r %x %d", in serverSendToVim()
455 length += STRLEN(property + length + 1) + 1; in serverSendToVim()
738 int length; in serverSendReply() local
751 length = STRLEN(p_enc) + STRLEN(str) + 14; in serverSendReply()
752 if ((property = alloc(length + 30)) != NULL) in serverSendReply()
757 length += STRLEN(property + length); in serverSendReply()
1491 int length) // How much to append in AppendPropCarefully() argument
[all …]
H A Dwinclip.c622 int length; in enc_to_utf16() local
635 &ret, &length); in enc_to_utf16()
654 length = utf8_to_utf16(str, *lenp, NULL, NULL); in enc_to_utf16()
655 ret = ALLOC_MULT(WCHAR, length + 1); in enc_to_utf16()
659 ret[length] = 0; in enc_to_utf16()
665 *lenp = length; in enc_to_utf16()
693 int length; in utf16_to_enc() local
696 (LPSTR *)&enc_str, &length, 0, 0); in utf16_to_enc()
697 *lenp = length; in utf16_to_enc()
H A Dgui_at_sb.c253 floor = sbw->scrollbar.length - margin + 2; in FillArea()
351 tzl = sbw->scrollbar.length - 2 * margin; in PaintThumb()
387 if ((int)thickness * 2 > (int)sbw->scrollbar.length) in PaintArrows()
389 size = sbw->scrollbar.length / 2; in PaintArrows()
405 point[3].y = sbw->scrollbar.length - size; in PaintArrows()
407 point[4].y = sbw->scrollbar.length - size; in PaintArrows()
510 sbw->scrollbar.length = sbw->core.height; in SetDimensions()
515 sbw->scrollbar.length = sbw->core.width; in SetDimensions()
535 ? sbw->scrollbar.thickness : sbw->scrollbar.length; in Initialize()
637 sbw->scrollbar.topLoc = -(sbw->scrollbar.length + 1); in Redisplay()
[all …]
H A Dsha256.c192 sha256_update(context_sha256_T *ctx, char_u *input, UINT32_T length) in sha256_update() argument
196 if (length == 0) in sha256_update()
202 ctx->total[0] += length; in sha256_update()
205 if (ctx->total[0] < length) in sha256_update()
208 if (left && length >= fill) in sha256_update()
212 length -= fill; in sha256_update()
217 while (length >= 64) in sha256_update()
220 length -= 64; in sha256_update()
224 if (length) in sha256_update()
225 memcpy((void *)(ctx->buffer + left), (void *)input, length); in sha256_update()
H A Dclipboard.c1402 long_u *length, in clip_x11_convert_selection_cb() argument
1440 *length = i; in clip_x11_convert_selection_cb()
1459 (*length)++; in clip_x11_convert_selection_cb()
1463 *length += STRLEN(p_enc) + 2; in clip_x11_convert_selection_cb()
1465 if (save_length < *length || save_length / 2 >= *length) in clip_x11_convert_selection_cb()
1475 save_length = *length; in clip_x11_convert_selection_cb()
1490 string_nt[*length] = NUL; in clip_x11_convert_selection_cb()
1499 *length = text_prop.nitems; in clip_x11_convert_selection_cb()
1503 save_length = *length; in clip_x11_convert_selection_cb()
1603 long_u *length, in clip_x11_request_selection_cb() argument
[all …]
H A Dos_mac_conv.c203 r.length = CFStringGetLength(cfstr); in macroman2enc()
204 if (r.length != CFStringGetBytes(cfstr, r, in macroman2enc()
256 r.length = CFStringGetLength(cfstr); in enc2macroman()
257 if (r.length != CFStringGetBytes(cfstr, r, in enc2macroman()
553 result = ALLOC_MULT(UniChar, convertRange.length); in mac_utf8_to_utf16()
560 *actualLen = convertRange.length * sizeof(UniChar); in mac_utf8_to_utf16()
H A Dops.c2369 int length; in op_addsub() local
2388 length = bd.textlen; in op_addsub()
2470 int length, in do_addsub() argument
2620 if (length == 0) in do_addsub()
2705 : length); in do_addsub()
2717 --length; in do_addsub()
2771 length++; in do_addsub()
2781 todel = length; in do_addsub()
2788 --length; in do_addsub()
2819 --length; in do_addsub()
[all …]
H A Dstrings.c78 unsigned length; in vim_strsave_escaped_ext() local
93 ++length; // count a backslash in vim_strsave_escaped_ext()
94 ++length; // count an ordinary char in vim_strsave_escaped_ext()
96 escaped_string = alloc(length); in vim_strsave_escaped_ext()
151 unsigned length; in vim_strsave_shellescape() local
191 ++length; // " -> "" in vim_strsave_shellescape()
198 length +=2; // ' => '' in vim_strsave_shellescape()
200 length += 3; // ' => '\'' in vim_strsave_shellescape()
205 ++length; // insert backslash in vim_strsave_shellescape()
207 ++length; // insert backslash in vim_strsave_shellescape()
[all …]
H A Dos_qnx.c91 clip_length = clip_header->length - 1; in clip_mch_request_selection()
130 clip_header[0].length = sizeof(vim_clip); in clip_mch_set_selection()
134 clip_header[1].length = len + 1; in clip_mch_set_selection()
H A Dif_perl.xs1043 STRLEN length; in ex_perl() local
1103 err = SvPV(GvSV(PL_errgv), length); in ex_perl()
1108 if (!length) in ex_perl()
1401 STRLEN length; in ex_perldo() local
1423 length = strlen((char *)eap->arg); in ex_perldo()
1426 sv_catpvn(sv, (char *)eap->arg, length); in ex_perldo()
1430 str = SvPV(GvSV(PL_errgv), length); in ex_perldo()
1431 if (length) in ex_perldo()
1447 str = SvPV(GvSV(PL_errgv), length); in ex_perldo()
1448 if (length || curbuf != was_curbuf) in ex_perldo()
[all …]
H A Dtextprop.c234 long length; // in bytes in prop_add_one() local
251 length = end_col - col; in prop_add_one()
253 length = (int)textlen - col + 1; in prop_add_one()
254 if (length > (long)textlen) in prop_add_one()
255 length = (int)textlen; // can include the end-of-line in prop_add_one()
256 if (length < 0) in prop_add_one()
257 length = 0; // zero-width property in prop_add_one()
281 tmp_prop.tp_len = length; in prop_add_one()
419 long length = dict_get_number(dict, (char_u *)"length"); in prop_add_common() local
421 if (length < 0 || end_lnum > start_lnum) in prop_add_common()
[all …]
H A Dos_vms.c41 char length; member
154 newmode.x.y.length = row; in set_tty()
184 tt_mode.x.y.length = 0; in get_tty()
200 Rows = tmode.x.y.length; in mch_get_shellsize()
H A Dif_ole.cpp512 static void GUIDtochar(const GUID &guid, char *GUID, int length);
632 static void GUIDtochar(const GUID &guid, char *GUID, int length) in GUIDtochar() argument
639 wcstombs(GUID, wGUID, length); in GUIDtochar()
H A Dgui_gtk_x11.c1345 int length; in selection_get_cb() local
1377 length = MIN(tmplen, (long_u)(G_MAXINT - 1)); in selection_get_cb()
1381 tmpbuf = alloc(length + 1); in selection_get_cb()
1388 ++length; in selection_get_cb()
1412 tmpbuf = alloc(length + 2); in selection_get_cb()
1417 mch_memmove(tmpbuf + 2, string, (size_t)length); in selection_get_cb()
1420 length += 2; in selection_get_cb()
1430 string, length); in selection_get_cb()
1440 tmpbuf = alloc(length + l + 2); in selection_get_cb()
1446 length += l + 2; in selection_get_cb()
[all …]
/vim-8.2.3635/src/xxd/
H A Dxxd.c466 long length = -1, n = 0, seekoff = 0; in main() local
594 length = strtol(pp + 2, (char **)NULL, 0); in main()
599 length = strtol(argv[2], (char **)NULL, 0); in main()
740 while ((length < 0 || p < length) && (c = getc(fp)) != EOF) in main()
777 while ((length < 0 || n < length) && (e = getc(fp)) != EOF) in main()
810 while ((length < 0 || n < length) && (e = getc(fp)) != EOF) in main()
/vim-8.2.3635/runtime/autoload/
H A Djavascriptcomplete.vim52 let arrayprop = ['constructor', 'index', 'input', 'length', 'prototype']
80 let funcprop = ['arguments', 'arguments.callee', 'arguments.caller', 'arguments.length',
81 \ 'arity', 'constructor', 'length', 'prototype']
115 let striprop = ['constructor', 'length', 'prototype']
194 let formprop = ['elements', 'acceptCharset', 'action', 'encoding', 'enctype', 'id', 'length',
211 let histprop = ['length']
313 let seleprop = ['options', 'disabled', 'form', 'id', 'length', 'multiple', 'name',
369 \ 'length', 'location', 'name', 'onload', 'opener', 'parent', 'screen', 'self',
408 let xdomnliss = ['length', 'item(']
/vim-8.2.3635/runtime/autoload/xml/
H A Dxsd.vim65 …sive', 'minInclusive', 'maxInclusive', 'totalDigits', 'fractionDigits', 'length', 'minLength', 'ma…
85 \ 'length' : [

123456789