doc: finish documentation of StringHelper

This commit is contained in:
yyc12345 committed 2024-07-17 14:18:54 +08:00
1 parent b13bb445e4
commit 94386c93aa
5 files changed
+102 -6

No files matched your search

+1 -1
View File
@@ -84,7 +84,7 @@ namespace YYCC::ParserHelper {
return yycc_u8string(buffer.data(), EncodingHelper::ToUTF8(ptr) - buffer.data());
} else if (ec == std::errc::value_too_large) {
// too short buffer
// this should not happend
// this should not happened
throw std::out_of_range("ToString() buffer is not sufficient.");
} else {
// unreachable