refactor: rename encoding/stlcvt to encoding/stl

This commit is contained in:
2025-08-12 09:45:44 +08:00
parent 51d288ac4b
commit a34bab07c1
3 changed files with 6 additions and 6 deletions

View File

@ -15,7 +15,7 @@ PRIVATE
yycc/string/op.cpp yycc/string/op.cpp
yycc/patch/fopen.cpp yycc/patch/fopen.cpp
yycc/rust/panic.cpp yycc/rust/panic.cpp
yycc/encoding/stlcvt.cpp yycc/encoding/stl.cpp
yycc/encoding/windows.cpp yycc/encoding/windows.cpp
yycc/encoding/iconv.cpp yycc/encoding/iconv.cpp
#yycc/encoding/pycodec.cpp #yycc/encoding/pycodec.cpp
@ -53,7 +53,7 @@ FILES
yycc/windows/import_guard_tail.hpp yycc/windows/import_guard_tail.hpp
yycc/constraint.hpp yycc/constraint.hpp
yycc/constraint/builder.hpp yycc/constraint/builder.hpp
yycc/encoding/stlcvt.hpp yycc/encoding/stl.hpp
yycc/encoding/windows.hpp yycc/encoding/windows.hpp
yycc/encoding/iconv.hpp yycc/encoding/iconv.hpp
yycc/encoding/pycodec.hpp yycc/encoding/pycodec.hpp

View File

@ -1,7 +1,7 @@
#include "stlcvt.hpp" #include "stl.hpp"
#include <locale> #include <locale>
namespace yycc::encoding::stlcvt { namespace yycc::encoding::stl {
#pragma region Generic Converter #pragma region Generic Converter

View File

@ -3,7 +3,7 @@
#include <string_view> #include <string_view>
#include <expected> #include <expected>
namespace yycc::encoding::stlcvt { namespace yycc::encoding::stl {
/// @brief Possible convertion error occurs in this module. /// @brief Possible convertion error occurs in this module.
struct ConvError {}; struct ConvError {};
@ -38,6 +38,6 @@ namespace yycc::encoding::stlcvt {
* @param src * @param src
* @return * @return
*/ */
ConvResult<std::u8string> utf8(const std::u32string_view& src); ConvResult<std::u8string> to_utf8(const std::u32string_view& src);
} }