comparison runtime/doc/eval.txt @ 10617:9a75c8a1b8b1

Update runtime files. commit https://github.com/vim/vim/commit/369b6f57c426b4bf39b4a0cac8d21ed1b5f7de4d Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jan 17 12:22:32 2017 +0100 Update runtime files.
author Christian Brabandt <cb@256bit.org>
date Tue, 17 Jan 2017 12:30:05 +0100
parents bac9cec298ed
children 7598ce51bf2a
comparison
equal deleted inserted replaced
10616:db8a2a027ef7 10617:9a75c8a1b8b1
1 *eval.txt* For Vim version 8.0. Last change: 2017 Jan 08 1 *eval.txt* For Vim version 8.0. Last change: 2017 Jan 14
2 2
3 3
4 VIM REFERENCE MANUAL by Bram Moolenaar 4 VIM REFERENCE MANUAL by Bram Moolenaar
5 5
6 6
5254 JSON and Vim values. 5254 JSON and Vim values.
5255 The decoding is permissive: 5255 The decoding is permissive:
5256 - A trailing comma in an array and object is ignored. 5256 - A trailing comma in an array and object is ignored.
5257 - More floating point numbers are recognized, e.g. "1." for 5257 - More floating point numbers are recognized, e.g. "1." for
5258 "1.0". 5258 "1.0".
5259 However, a duplicate key in an object is not allowed. *E938*
5259 The result must be a valid Vim type: 5260 The result must be a valid Vim type:
5260 - An empty object member name is not allowed. 5261 - An empty object member name is not allowed.
5261 - Duplicate object member names are not allowed. 5262 - Duplicate object member names are not allowed.
5262 5263
5263 json_encode({expr}) *json_encode()* 5264 json_encode({expr}) *json_encode()*
7247 < 7248 <
7248 strcharpart({src}, {start}[, {len}]) *strcharpart()* 7249 strcharpart({src}, {start}[, {len}]) *strcharpart()*
7249 Like |strpart()| but using character index and length instead 7250 Like |strpart()| but using character index and length instead
7250 of byte index and length. 7251 of byte index and length.
7251 When a character index is used where a character does not 7252 When a character index is used where a character does not
7252 exist it is assumed to be one byte. For example: > 7253 exist it is assumed to be one character. For example: >
7253 strcharpart('abc', -1, 2) 7254 strcharpart('abc', -1, 2)
7254 < results in 'a'. 7255 < results in 'a'.
7255 7256
7256 strdisplaywidth({expr}[, {col}]) *strdisplaywidth()* 7257 strdisplaywidth({expr}[, {col}]) *strdisplaywidth()*
7257 The result is a Number, which is the number of display cells 7258 The result is a Number, which is the number of display cells