msgid ""
msgstr ""
"Project-Id-Version: Chinese (Simplified Han script) (Boost Json Translation "
"(zh_Hans))\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-06-06 13:36+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: Chinese (Simplified Han script) <https://"
"insights.cppalliance.org/weblate/projects/boost-json-documentation-zh_Hans/"
"doc-pages-dom-string-adoc/zh_Hans/>\n"
"Language: zh_Hans\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0;\n"
"X-Generator: Weblate 2026.5\n"

#: :13
#, safe-html, strict-same
msgid "= `string`"
msgstr "= `string`"

#: :15
#, safe-html, strict-same
msgid ""
"Modifiable sequences of characters are represented using objects of type "
"<<ref_string>>."
msgstr "可修改的字符序列通过 &lt;<ref_string>&gt; 类型的对象表示。</ref_string>"

#: :18
#, safe-html, strict-same
msgid ""
"The interface and functionality of <<ref_string>> is the same as "
"{std_string} except that:"
msgstr ""
"&lt;<ref_string>&gt; 的接口和功能与 {std_string} 相同，但有以下例外：</"
"ref_string>"

#: :21
#, safe-html, strict-same
msgid "<<ref_string>> is not a class template,"
msgstr "&lt;<ref_string>&gt;不是一个类模板，</ref_string>"

#: :22
#, safe-html, strict-same
msgid "<<ref_string>> uses `char` as its character type,"
msgstr "&lt;<ref_string>&gt; 使用`char`作为其字符类型，</ref_string>"

#: :23
#, safe-html, strict-same
msgid "redundant overloads for string operations have been replaced"
msgstr "字符串操作中冗余的重载已被"

#: :24
#, safe-html, strict-same
msgid "with a <<ref_string_view>>-based interface,"
msgstr "基于 &lt;<ref_string_view>&gt; 的接口所取代，</ref_string_view>"

#: :25
#, safe-html, strict-same
msgid "access to characters in the range `[size(), capacity())` is permitted,"
msgstr "允许访问`[size(), capacity())`范围内的字符，"

#: :26
#, safe-html, strict-same
msgid "<<ref_storage_ptr>> is used instead of {req_Allocator}, and"
msgstr "使用&lt;<ref_storage_ptr>&gt;代替{req_Allocator}，且</ref_storage_ptr>"

#: :27
#, safe-html, strict-same
msgid ""
"small buffer optimisation is guaranteed, which avoids allocating memory for"
msgstr "保证采用小缓冲区优化，从而避免为短字符串分配内存。"

#: :28
#, safe-html, strict-same
msgid "small strings."
msgstr "(短字符串)"

#: :30
#, safe-html, strict-same
msgid ""
"With augmented interface, operations requiring an input string are "
"implemented as a single overload with a parameter of type <<ref_string_view>>"
", and can accept most string-like objects. Objects such as null terminated "
"character pointers, `std::string`, <<ref_string>>, subranges of strings, and "
"objects convertible to <<ref_string_view>> can all be passed to these "
"functions."
msgstr ""
"通过增强的接口，所有需要输入字符串的操作均以单一重载形式实现，其参数类型为 "
"&lt;<ref_string_view>&gt;，并可接受大多数类字符串对象。诸如以空字符结尾的字符"
"指针、`std::string`、&lt;<ref_string>&gt;、字符串子范围以及可转换为 "
"&lt;<ref_string_view>&gt; 的对象，均可传递给这些函数。</ref_string_view></"
"ref_string></ref_string_view>"

#: :41
#, safe-html, strict-same
msgid ""
"More formally, `std::string` member function overloads that accept any of "
"the following parameter combinations as an input string:"
msgstr "更正式地说，`std::string` 类的成员函数支持以下任意一种参数组合作为输入字符串:"

#: :44
#, safe-html, strict-same
msgid "a `std::string` parameter, or"
msgstr "一个`std::string`参数，或"

#: :45
#, safe-html, strict-same
msgid "a `std::string` parameter and two `size_type` parameters that specify a"
msgstr ""
"一个 `std::string` 类型的参数以及两个 `size_type` 类型的参数，它们用于指定一"
"个"

#: :46
#, safe-html, strict-same
msgid "substring, or"
msgstr "子字符串，或"

#: :47
#, safe-html, strict-same
msgid "a parameter of a type convertible to <<ref_string_view>>, or"
msgstr "一个可转换为 &lt;<ref_string_view>&gt; 类型的参数，或</ref_string_view>"

#: :48
#, safe-html, strict-same
msgid "a parameter of a type convertible to <<ref_string_view>> and two"
msgstr "一个可转换为 &lt;<ref_string_view>&gt; 类型的参数以及两个</ref_string_view>"

#: :49
#, safe-html, strict-same
msgid "`size_type` parameters that specify a substring, or"
msgstr "用于指定子字符串的`size_type` 类型的参数，或"

#: :50
#, safe-html, strict-same
msgid "a `const_pointer` parameter, or"
msgstr "一个`const_pointer`参数，或"

#: :51
#, safe-html, strict-same
msgid "a parameter of type `const_pointer` and a `size_type` parameter that"
msgstr "一个`const_pointer`类型的参数和一个`size_type`参数，该参数用于"

#: :52
#, safe-html, strict-same
msgid "specifies the length of the string"
msgstr "指定字符串的长度,"

#: :54
#, safe-html, strict-same
msgid ""
"are replaced with an overload accepting a <<ref_string_view>> parameter."
msgstr "被一个接受 &lt;<ref_string_view>&gt; 参数的重载所替代。</ref_string_view>"

#: :56
#, safe-html, strict-same
msgid ""
"This design removes several redundant overloads from the interface. For "
"example, the 11 overloads of `std::string::insert` are reduced to just 3 in "
"<<ref_string>>, while still providing identical functionality. In addition "
"to these changes, overloads taking a `std::initializer_list<char>` parameter "
"have been removed. Such overloads have little use, as they serve as little "
"more than wrappers for arrays with an inefficient syntax:"
msgstr ""
"这一设计从接口中移除了多个冗余的重载。例如，`std::string::insert` 原本有 11 "
"个重载，而在 &lt;<ref_string>&gt; 中被减少到仅 3 个，同时仍提供完全相同的功能"
"。除此之外，接受 `std::initializer_list<char>` 参数的重载也被移除。这类重载用"
"途有限，因为它们本质上只是对字符数组的封装，且语法效率低下：</char></"
"ref_string>"

#: :68
#, safe-html, strict-same
msgid ""
"With the removal of overloads that specify parameters for a substring, a "
"member function `subview` that returns a <<ref_string_view>> is provided to "
"facilitate cheap substring operations:"
msgstr ""
"随着用于指定子字符串参数的重载被移除，库提供了一个成员函数`subview`， 用于返"
"回一个 &lt;<ref_string_view>&gt;，从而支持高效的子字符串操作：</"
"ref_string_view>"

#: :77
#, safe-html, strict-same
msgid ""
"A <<ref_string>> may be constructed using the "
"<<default_memory_resource,default memory resource>> without incurring any "
"memory allocations. Alternatively, a <<ref_storage_ptr>> can be provided "
"explicitly:"
msgstr ""
"&lt;<ref_string>&gt; 可使用 &lt;<default_memory_resource,default memory=\"\" "
"resource=\"\">&gt;（默认构造资源） 进行构造，且不会产生任何内存分配。或者，也"
"可以显式提供一个 &lt;<ref_storage_ptr>&gt;：</ref_storage_ptr></"
"default_memory_resource,default></ref_string>"

#: :86
#, safe-html, strict-same
msgid "Formatted Output"
msgstr "格式化输出"

#: :88
#, safe-html, strict-same
msgid ""
"When a <<ref_string>> is formatted to a {std_ostream}, the result is a valid "
"JSON. That is, the result will be double quoted and the contents properly "
"escaped per the JSON specification."
msgstr ""
"当&lt;<ref_string>&gt;被格式化到{std_ostream}时，结果是一个有效的JSON。即输出"
"结果将被双引号括起来，并且内容会根据JSON规范进行正确转义。</ref_string>"

#: :92
#, safe-html, strict-same
msgid "Accessing Storage Beyond `size()`"
msgstr "访问超出`size()`范围的存储空间"

#: :94
#, safe-html, strict-same
msgid ""
"<<ref_string>> directly supports access to its storage in the range `[size()"
", capacity())`. This can be used for efficient assembly of a string from "
"several parts. After the string is assembled, use the member function "
"<<ref_string_grow>> to update the string's size and insert the null "
"terminator. For example:"
msgstr ""
"&lt;<ref_string>&gt; 直接支持访问其在`[size(), capacity())`范围内的存储空间。"
"这可用于高效地将字符串从多个部分组装起来。字符串组装完成后，可调用成员函数 "
"&lt;<ref_string_grow>&gt; 来更新字符串的大小并插入空终止符。例如：</"
"ref_string_grow></ref_string>"
