std::text_encoding::name - cppreference.com 来自cppreference.com constexpr const char* name() const noexcept; (C++26 起) 返回 *this 的首选名称。等价于 return name_;。 在范围 [name(), name() + std::strlen(name()) + 1) 之外访问 name_ 的元素是未定义行为。 参数 (无) 返回值 空终止字节字符串表示的首选名称 name_。 示例