本文整理汇总了C++中SimpleString::URLEncodeUTF8方法的典型用法代码示例。如果您正苦于以下问题:C++ SimpleString::URLEncodeUTF8方法的具体用法?C++ SimpleString::URLEncodeUTF8怎么用?C++ SimpleString::URLEncodeUTF8使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SimpleString
的用法示例。
在下文中一共展示了SimpleString::URLEncodeUTF8方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: LaunchRIPTweet
void EldritchGame::LaunchRIPTweet()
{
STATICHASH( RIPFormat );
const SimpleString RIPFormat = ConfigManager::GetLocalizedString( sRIPFormat, "" );
STATICHASH( RIPURL );
const SimpleString RIPURL = ConfigManager::GetLocalizedString( sRIPURL, "" );
STATICHASH( RIPHashtags );
const SimpleString RIPHashtags = ConfigManager::GetLocalizedString( sRIPHashtags, "" );
STATICHASH( RIPTwitter );
const SimpleString RIPTwitter = ConfigManager::GetLocalizedString( sRIPTwitter, "" );
const SimpleString RIPDamage = GetRIPDamage();
const SimpleString RIPLevel = GetRIPLevel();
const SimpleString RIPFormatted = SimpleString::PrintF( RIPFormat.CStr(), RIPDamage.CStr(), RIPLevel.CStr() );
const SimpleString RIPEncoded = RIPFormatted.URLEncodeUTF8();
const SimpleString RIPTweet = SimpleString::PrintF( RIPTwitter.CStr(), RIPEncoded.CStr(), RIPHashtags.CStr(), RIPURL.CStr() );
#if BUILD_WINDOWS
ShellExecute( NULL, "open", RIPTweet.CStr(), NULL, NULL, SW_SHOWNORMAL );
#elif BUILD_MAC
const SimpleString Command = SimpleString::PrintF( "open %s", RIPTweet.CStr() );
system( Command.CStr() );
#elif BUILD_LINUX
const SimpleString Command = SimpleString::PrintF( "xdg-open %s", RIPTweet.CStr() );
system( Command.CStr() );
#endif
}