comparison runtime/doc/eval.txt @ 697:f08390485cd3 v7.0210

updated for version 7.0210
author vimboss
date Wed, 01 Mar 2006 00:01:28 +0000
parents 07d199fe02ed
children 2fae45239fb3
comparison
equal deleted inserted replaced
696:f0a9ef4db025 697:f08390485cd3
1 *eval.txt* For Vim version 7.0aa. Last change: 2006 Feb 27 1 *eval.txt* For Vim version 7.0aa. Last change: 2006 Feb 28
2 2
3 3
4 VIM REFERENCE MANUAL by Bram Moolenaar 4 VIM REFERENCE MANUAL by Bram Moolenaar
5 5
6 6
3373 < result is "3". 3373 < result is "3".
3374 For a String, if {start} > 0 then it is like the string starts 3374 For a String, if {start} > 0 then it is like the string starts
3375 {start} bytes later, thus "^" will match there. 3375 {start} bytes later, thus "^" will match there.
3376 For a String, if {start} < 0, it will be set to 0. For a list 3376 For a String, if {start} < 0, it will be set to 0. For a list
3377 the index is counted from the end. 3377 the index is counted from the end.
3378 If {start} is out of range (> strlen({expr} for a String or 3378 If {start} is out of range ({start} > strlen({expr}) for a
3379 > len({expr} for a |List|) -1 is returned. 3379 String or {start} > len({expr}) for a |List|) -1 is returned.
3380 3380
3381 When {count} is given use the {count}'th match. When a match 3381 When {count} is given use the {count}'th match. When a match
3382 is found in a String the search for the next one starts on 3382 is found in a String the search for the next one starts one
3383 character further. Thus this example results in 1: > 3383 character further. Thus this example results in 1: >
3384 echo match("testing", "..", 0, 2) 3384 echo match("testing", "..", 0, 2)
3385 < In a |List| the search continues in the next item. 3385 < In a |List| the search continues in the next item.
3386 3386
3387 See |pattern| for the patterns that are accepted. 3387 See |pattern| for the patterns that are accepted.