std::string CommandLine::GetSwitchValueASCII( const std::string& switch_string) const { StringType value = GetSwitchValueNative(switch_string); if(!IsStringASCII(value)) { LOG(WARNING) << "Value of --" << switch_string << " must be ASCII."; return ""; } return WideToASCII(value); }
std::string CommandLine::GetSwitchValueASCII( const std::string& switch_string) const { StringType value = GetSwitchValueNative(switch_string); //if (!IsStringASCII(value)) { // DLOG(WARNING) << "Value of switch (" << switch_string << ") must be ASCII."; // return std::string(); //} #if defined(OS_WIN) return WideToASCII(value); #else return value; #endif }
FilePath CommandLine::GetSwitchValuePath( const std::string& switch_string) const { return FilePath(GetSwitchValueNative(switch_string)); }
std::wstring CommandLine::GetSwitchValuePath( const std::string& switch_string) const { return GetSwitchValueNative(switch_string); }