Esempio n. 1
0
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);
}
Esempio n. 2
0
	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
	}
Esempio n. 3
0
	FilePath CommandLine::GetSwitchValuePath(
		const std::string& switch_string) const {
			return FilePath(GetSwitchValueNative(switch_string));
	}
Esempio n. 4
0
 std::wstring CommandLine::GetSwitchValuePath(
     const std::string& switch_string) const
 {
     return GetSwitchValueNative(switch_string);
 }