Beispiel #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);
}
Beispiel #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
	}
Beispiel #3
0
	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);
 }