void CommandLine::AppendSwitchASCII(const std::string& switch_string, const std::string& value_string) { #if defined(OS_WIN) AppendSwitchNative(switch_string, ASCIIToWide(value_string)); #elif defined(OS_POSIX) AppendSwitchNative(switch_string, value_string); #endif }
void CommandLine::CopySwitchesFrom(const CommandLine& source, const char* const switches[], size_t count) { for (size_t i = 0; i < count; ++i) { if (source.HasSwitch(switches[i])) AppendSwitchNative(switches[i], source.GetSwitchValueNative(switches[i])); } }
void CommandLine::AppendSwitchPath(const std::string& switch_string, const FilePath& path) { AppendSwitchNative(switch_string, path.value()); }
void CommandLine::AppendSwitch(const std::string& switch_string) { AppendSwitchNative(switch_string, StringType()); }
void CommandLine::AppendSwitchASCII(const std::string& switch_string, const std::string& value_string) { AppendSwitchNative(switch_string, ASCIIToWide(value_string)); }
void CommandLine::AppendSwitchPath(const std::string& switch_string, const std::wstring& path) { AppendSwitchNative(switch_string, path); }