添加项目文件。

This commit is contained in:
UnknownObject
2026-06-30 17:46:34 +08:00
parent 415124601e
commit d7ce0fe00a
75 changed files with 9723 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
#pragma once
#include <string>
namespace urlcodec
{
// 编码函数:将输入字符串进行 URL 编码
// 类似于 Python 的 urllib.parse.quote
// 输入:原始字符串
// 输出:编码后的字符串
std::string url_encode(const std::string& input);
// 解码函数:将 URL 编码的字符串解码为原始字符串
// 类似于 Python 的 urllib.parse.unquote
// 输入:编码后的字符串
// 输出:原始字符串
// 返回值:true 表示解码成功,false 表示解码过程中出现错误
bool url_decode(const std::string& input, std::string& output);
}