|
1 | | -*builtin.txt* For Vim version 9.1. Last change: 2025 Mar 18 |
| 1 | +*builtin.txt* For Vim version 9.1. Last change: 2025 Mar 22 |
2 | 2 |
|
3 | 3 |
|
4 | 4 | VIM REFERENCE MANUAL by Bram Moolenaar |
@@ -1323,9 +1323,11 @@ blob2str({blob} [, {options}]) *blob2str()* |
1323 | 1323 | See also |str2blob()| |
1324 | 1324 |
|
1325 | 1325 | Examples: > |
1326 | | - blob2str(0z6162) returns ["ab"] |
1327 | | - blob2str(0zC2ABC2BB) returns ["«»"] |
1328 | | - blob2str(0zABBB, {'encoding': 'latin1'}) returns ["«»"] |
| 1326 | + blob2str(0z6162) returns ['ab'] |
| 1327 | + blob2str(0zC2ABC2BB) returns ['«»'] |
| 1328 | + blob2str(0z610A62) returns ['a', 'b'] |
| 1329 | + blob2str(0z610062) returns ['a\nb'] |
| 1330 | + blob2str(0zABBB, {'encoding': 'latin1'}) returns ['«»'] |
1329 | 1331 | < |
1330 | 1332 | Can also be used as a |method|: > |
1331 | 1333 | GetBlob()->blob2str() |
@@ -10666,11 +10668,12 @@ str2blob({list} [, {options}]) *str2blob()* |
10666 | 10668 | See also |blob2str()| |
10667 | 10669 |
|
10668 | 10670 | Examples: > |
10669 | | - str2blob(["ab"]) returns 0z6162 |
10670 | | - str2blob(["«»"]) returns 0zC2ABC2BB |
10671 | | - str2blob(["a\nb"]) returns 0z610A62 |
10672 | | - str2blob(readfile('myfile.txt')) |
| 10671 | + str2blob(["ab"]) returns 0z6162 |
| 10672 | + str2blob(["«»"]) returns 0zC2ABC2BB |
| 10673 | + str2blob(["a\nb"]) returns 0z610062 |
| 10674 | + str2blob(["a","b"]) returns 0z610A62 |
10673 | 10675 | str2blob(["«»"], {'encoding': 'latin1'}) returns 0zABBB |
| 10676 | + str2blob(readfile('myfile.txt')) |
10674 | 10677 | < |
10675 | 10678 | Can also be used as a |method|: > |
10676 | 10679 | GetListOfStrings()->str2blob() |
|
0 commit comments