@@ -1511,60 +1511,71 @@ msgid ""
15111511"not be treated as an error. Those bytes will not be decoded and the number "
15121512"of bytes that have been decoded will be stored in *consumed*."
15131513msgstr ""
1514+ "如果 *consumed* 为 ``NULL``,则行为类似于 :c:func:`PyUnicode_DecodeUTF7`。 如果 "
1515+ "*consumed* 不为 ``NULL``,则末尾的不完整 UTF-7 base-64 部分将不被视为错误。 "
1516+ "这些字节将不会被解码并且已被解码的字节数将存储在 *consumed* 中。"
15141517
15151518#: ../../c-api/unicode.rst:1131
15161519msgid "Unicode-Escape Codecs"
15171520msgstr "Unicode-Escape 编解码器"
15181521
15191522#: ../../c-api/unicode.rst:1133
15201523msgid "These are the \" Unicode Escape\" codec APIs:"
1521- msgstr ""
1524+ msgstr "以下是 \" Unicode Escape \" 编解码器的 API: "
15221525
15231526#: ../../c-api/unicode.rst:1139
15241527msgid ""
15251528"Create a Unicode object by decoding *size* bytes of the Unicode-Escape "
15261529"encoded string *s*. Return ``NULL`` if an exception was raised by the "
15271530"codec."
15281531msgstr ""
1532+ "通过解码 Unicode-Escape 编码的字节串 *s* 的 *size* 个字节创建一个 Unicode 对象。 如果编解码器引发了异常则返回 "
1533+ "``NULL``。"
15291534
15301535#: ../../c-api/unicode.rst:1145
15311536msgid ""
15321537"Encode a Unicode object using Unicode-Escape and return the result as a "
15331538"bytes object. Error handling is \" strict\" . Return ``NULL`` if an "
15341539"exception was raised by the codec."
15351540msgstr ""
1541+ "使用 Unicode-Escape 编码 Unicode 对象并将结果作为字节串对象返回。 错误处理方式为 \" strict\" 。 "
1542+ "如果编解码器引发了异常则将返回 ``NULL``。"
15361543
15371544#: ../../c-api/unicode.rst:1151
15381545msgid "Raw-Unicode-Escape Codecs"
1539- msgstr ""
1546+ msgstr "Raw-Unicode-Escape 编解码器 "
15401547
15411548#: ../../c-api/unicode.rst:1153
15421549msgid "These are the \" Raw Unicode Escape\" codec APIs:"
1543- msgstr ""
1550+ msgstr "以下是 \" Raw Unicode Escape \" 编解码器的 API: "
15441551
15451552#: ../../c-api/unicode.rst:1159
15461553msgid ""
15471554"Create a Unicode object by decoding *size* bytes of the Raw-Unicode-Escape "
15481555"encoded string *s*. Return ``NULL`` if an exception was raised by the "
15491556"codec."
15501557msgstr ""
1558+ "通过解码 Raw-Unicode-Escape 编码的字节串 *s* 的 *size* 个字节创建一个 Unicode 对象。 "
1559+ "如果编解码器引发了异常则返回 ``NULL``。"
15511560
15521561#: ../../c-api/unicode.rst:1165
15531562msgid ""
15541563"Encode a Unicode object using Raw-Unicode-Escape and return the result as a "
15551564"bytes object. Error handling is \" strict\" . Return ``NULL`` if an "
15561565"exception was raised by the codec."
15571566msgstr ""
1567+ "使用 Raw-Unicode-Escape 编码 Unicode 对象并将结果作为字节串对象返回。 错误处理方式为 \" strict\" 。 "
1568+ "如果编解码器引发了异常则将返回 ``NULL``。"
15581569
15591570#: ../../c-api/unicode.rst:1171
15601571msgid "Latin-1 Codecs"
1561- msgstr ""
1572+ msgstr "Latin-1 编解码器 "
15621573
15631574#: ../../c-api/unicode.rst:1173
15641575msgid ""
15651576"These are the Latin-1 codec APIs: Latin-1 corresponds to the first 256 "
15661577"Unicode ordinals and only these are accepted by the codecs during encoding."
1567- msgstr ""
1578+ msgstr "以下是 Latin-1 编解码器的 API: Latin-1 对应于前 256 个 Unicode 码位且编码器在编码期间只接受这些码位。 "
15681579
15691580#: ../../c-api/unicode.rst:1179
15701581msgid ""
0 commit comments