File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- {"translation" : " 92.51%" , "updated_at" : " 2023-11-25T05 :55:58Z " }
1+ {"translation" : " 92.51%" , "updated_at" : " 2023-11-25T06 :55:34Z " }
Original file line number Diff line number Diff line change @@ -1175,6 +1175,11 @@ msgid ""
11751175"null characters, which would cause the string to be truncated when used with"
11761176" most C functions."
11771177msgstr ""
1178+ "将 Unicode 对象内容拷贝到 :c:type:`wchar_t` 缓冲区 *w* 中。 至多拷贝 *size* 个 "
1179+ ":c:type:`wchar_t` 字符(不包括可能存在于末尾的空结束字符)。 返回拷贝的 :c:type:`wchar_t` "
1180+ "字符数量或者在发生错误时返回 ``-1``。 请注意结果 :c:expr:`wchar_t*` 字符可能有或没有表示结束的空值。 "
1181+ "调用方需要负责在应用程序有此要求时确保 :c:expr:`wchar_t*` 字符串是以空值结束的。 此外,还要注意 "
1182+ ":c:expr:`wchar_t*` 字符串可能包含空字符,这将导致在大多数 C 函数中使用时字符串被截断。"
11781183
11791184#: ../../c-api/unicode.rst:874
11801185msgid ""
@@ -1187,13 +1192,19 @@ msgid ""
11871192":c:expr:`wchar_t*` string contains null characters a :exc:`ValueError` is "
11881193"raised."
11891194msgstr ""
1195+ "将 Unicode 对象转换为宽字符串。 输出字符串将总是以空字符结尾。 如果 *size* 不为 "
1196+ "``NULL``,则会将宽字符的数量(不包括结尾空字符)写入到 *\\ *size* 中。 请注意结果 :c:type:`wchar_t` "
1197+ "字符串可能包含空字符,这将导致在大多数 C 函数中使用时字符串被截断。 如果 *size* 为 ``NULL`` 并且 "
1198+ ":c:expr:`wchar_t*` 字符串包含空字符则将引发 :exc:`ValueError`。"
11901199
11911200#: ../../c-api/unicode.rst:882
11921201msgid ""
11931202"Returns a buffer allocated by :c:macro:`PyMem_New` (use :c:func:`PyMem_Free`"
11941203" to free it) on success. On error, returns ``NULL`` and *\\ *size* is "
11951204"undefined. Raises a :exc:`MemoryError` if memory allocation is failed."
11961205msgstr ""
1206+ "成功时返回由 :c:macro:`PyMem_New` 分配的缓冲区(使用 :c:func:`PyMem_Free` 来释放它)。 发生错误时,则返回 "
1207+ "``NULL`` 并且 *\\ *size* 将是未定义的。 如果内存分配失败则会引发 :exc:`MemoryError`。"
11971208
11981209#: ../../c-api/unicode.rst:889
11991210msgid ""
You can’t perform that action at this time.
0 commit comments