boost::urls::encode
返回百分号编码的字符串
概要
声明于 <boost/url/encode.hpp>
template<
string_token::StringToken StringToken = string_token::return_string,
grammar::CharSet CS>
StringToken::result_type
encode(
core::string_view s,
CS const& unreserved,
encoding_opts opt = {},
StringToken&& token = {}) noexcept;
示例
encoding_opts opt;
opt.space_as_plus = true;
std::string s = encode( "My Stuff", opt, pchars );
assert( s == "My+Stuff" );
另请参阅
使用 MrDocs 创建