Skip to content

Commit 7f08509

Browse files
committed
Update builtin.{txt,jax}
1 parent 46de40b commit 7f08509

File tree

2 files changed

+20
-12
lines changed

2 files changed

+20
-12
lines changed

doc/builtin.jax

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*builtin.txt* For Vim バージョン 9.1. Last change: 2025 Feb 17
1+
*builtin.txt* For Vim バージョン 9.1. Last change: 2025 Feb 23
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -1377,10 +1377,12 @@ blob2str({blob} [, {options}]) *blob2str()*
13771377
encoding このエンコーディングを使用して {blob} 内のバイ
13781378
ト列をデコードする。値は |String| である。サ
13791379
ポートされている値については |encoding-names|
1380-
を参照。
1380+
を参照 (および特殊値 "none")
13811381
*E1515*
1382-
{blob} で無効なバイトシーケンスが検出された場合はエラーが発生
1383-
し、空のリストが返される。
1382+
現在の 'encoding' が "utf-8" の場合、{blob} で無効なバイトシー
1383+
ケンスが検出されるとエラーが発生し、空のリストが返される。この
1384+
検証を抑制して無効な可能性のある文字列を取得するには、{options}
1385+
の "encoding" を "none" に設定する。
13841386

13851387
blob が空の場合は空のリストが返される。
13861388

@@ -10429,9 +10431,10 @@ str2blob({list} [, {options}]) *str2blob()*
1042910431
して文字をバイト列に変換する。
1043010432

1043110433
引数 {options} は |Dict| であり、次の項目をサポートする:
10432-
encoding このエンコーディングを使用して文字をエンコード
10433-
する。値は |String| である。サポートされている
10434-
値については|encoding-names| を参照。
10434+
encoding Blob を作成する前に、このエンコーディングを使
10435+
用して文字を変換する。
10436+
値は |String| である。サポートされている値につ
10437+
いては |encoding-names| を参照。
1043510438

1043610439
文字エンコードが失敗した場合はエラーが発生し、空の blob が返さ
1043710440
れる。

en/builtin.txt

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*builtin.txt* For Vim version 9.1. Last change: 2025 Feb 17
1+
*builtin.txt* For Vim version 9.1. Last change: 2025 Feb 23
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1309,10 +1309,14 @@ blob2str({blob} [, {options}]) *blob2str()*
13091309
items:
13101310
encoding Decode the bytes in {blob} using this
13111311
encoding. The value is a |String|. See
1312-
|encoding-names| for the supported values.
1312+
|encoding-names| for the supported values
1313+
(plus the special value "none").
13131314
*E1515*
1314-
An error is given and an empty List is returned if
1315-
an invalid byte sequence is encountered in {blob},
1315+
When current 'encoding' is "utf-8", an error is given and an
1316+
empty List is returned if an invalid byte sequence is
1317+
encountered in {blob}. To suppress this validation and get
1318+
potentially invalid string, set "encoding" in {options} to
1319+
"none".
13161320

13171321
Returns an empty List if blob is empty.
13181322

@@ -10645,7 +10649,8 @@ str2blob({list} [, {options}]) *str2blob()*
1064510649

1064610650
The argument {options} is a |Dict| and supports the following
1064710651
items:
10648-
encoding Encode the characters using this encoding.
10652+
encoding Convert the characters using this encoding
10653+
before making the Blob.
1064910654
The value is a |String|. See |encoding-names|
1065010655
for the supported values.
1065110656

0 commit comments

Comments
 (0)