Searched refs:charidx (Results 1 – 9 of 9) sorted by relevance
| /vim-8.2.3635/src/testdir/ |
| H A D | test_functions.vim | 1227 " Test for charidx() 1230 call assert_equal(0, charidx(a, 0)) 1231 call assert_equal(1, charidx(a, 3)) 1232 call assert_equal(2, charidx(a, 4)) 1233 call assert_equal(3, charidx(a, 7)) 1234 call assert_equal(-1, charidx(a, 8)) 1235 call assert_equal(-1, charidx(a, -1)) 1236 call assert_equal(-1, charidx('', 0)) 1240 call assert_equal(0, charidx(a, 0, 1)) 1241 call assert_equal(2, charidx(a, 2, 1)) [all …]
|
| H A D | test_vim9_builtin.vim | 611 …CheckDefAndScriptFailure2(['charidx(0z10, 1)'], 'E1013: Argument 1: type mismatch, expected string… 612 …CheckDefAndScriptFailure2(['charidx("a", "b")'], 'E1013: Argument 2: type mismatch, expected numbe… 613 …CheckDefAndScriptFailure2(['charidx("a", 1, "")'], 'E1013: Argument 3: type mismatch, expected boo… 614 charidx('', 0)->assert_equal(-1) 615 charidx('', 1)->assert_equal(-1)
|
| /vim-8.2.3635/src/ |
| H A D | strings.c | 1025 int charidx; in f_strgetchar() local 1039 charidx = (int)tv_get_number_chk(&argvars[1], &error); in f_strgetchar() 1043 while (charidx >= 0 && byteidx < len) in f_strgetchar() 1045 if (charidx == 0) in f_strgetchar() 1050 --charidx; in f_strgetchar()
|
| H A D | eval.c | 5200 buf_charidx_to_byteidx(buf_T *buf, int lnum, int charidx) in buf_charidx_to_byteidx() argument 5217 while (*t != NUL && --charidx > 0) in buf_charidx_to_byteidx()
|
| /vim-8.2.3635/src/proto/ |
| H A D | eval.pro | 59 int buf_charidx_to_byteidx(buf_T *buf, int lnum, int charidx);
|
| /vim-8.2.3635/runtime/syntax/ |
| H A D | vim.vim | 83 …istid assert_exception assert_notequal balloon_gettext bufadd bufnr call charidx ch_evalraw ch_ope…
|
| /vim-8.2.3635/runtime/doc/ |
| H A D | eval.txt | 2574 charidx({string}, {idx} [, {countcc}]) 3748 *charidx()* 3749 charidx({string}, {idx} [, {countcc}]) 3767 echo charidx('áb́ć', 3) returns 1 3768 echo charidx('áb́ć', 6, 1) returns 4 3769 echo charidx('áb́ć', 16) returns -1 3772 GetName()->charidx(idx)
|
| H A D | usr_41.txt | 639 charidx() character index of a byte in a string
|
| H A D | tags | 5822 charidx() eval.txt /*charidx()*
|