Performance testing branch is merged back into trunk
This commit is contained in:
@@ -72,7 +72,7 @@ vector<string> split_string(const string& str, const string& delimiters)
|
||||
return res;
|
||||
}
|
||||
|
||||
CommandLineParser::CommandLineParser(int argc, const char* argv[], const char* keys)
|
||||
CommandLineParser::CommandLineParser(int argc, const char* const argv[], const char* keys)
|
||||
{
|
||||
|
||||
std::string keys_buffer;
|
||||
@@ -272,7 +272,7 @@ bool CommandLineParser::get<bool>(const std::string& name, bool space_delete)
|
||||
return true;
|
||||
}
|
||||
template<>
|
||||
std::string CommandLineParser::analizeValue<std::string>(const std::string& str, bool space_delete)
|
||||
std::string CommandLineParser::analyzeValue<std::string>(const std::string& str, bool space_delete)
|
||||
{
|
||||
if (space_delete)
|
||||
{
|
||||
@@ -287,25 +287,31 @@ std::string CommandLineParser::analizeValue<std::string>(const std::string& str,
|
||||
}
|
||||
|
||||
template<>
|
||||
int CommandLineParser::analizeValue<int>(const std::string& str, bool /*space_delete*/)
|
||||
int CommandLineParser::analyzeValue<int>(const std::string& str, bool /*space_delete*/)
|
||||
{
|
||||
return fromStringNumber<int>(str);
|
||||
}
|
||||
|
||||
template<>
|
||||
unsigned int CommandLineParser::analizeValue<unsigned int>(const std::string& str, bool /*space_delete*/)
|
||||
unsigned int CommandLineParser::analyzeValue<unsigned int>(const std::string& str, bool /*space_delete*/)
|
||||
{
|
||||
return fromStringNumber<unsigned int>(str);
|
||||
}
|
||||
|
||||
template<>
|
||||
float CommandLineParser::analizeValue<float>(const std::string& str, bool /*space_delete*/)
|
||||
uint64 CommandLineParser::analyzeValue<uint64>(const std::string& str, bool /*space_delete*/)
|
||||
{
|
||||
return fromStringNumber<uint64>(str);
|
||||
}
|
||||
|
||||
template<>
|
||||
float CommandLineParser::analyzeValue<float>(const std::string& str, bool /*space_delete*/)
|
||||
{
|
||||
return fromStringNumber<float>(str);
|
||||
}
|
||||
|
||||
template<>
|
||||
double CommandLineParser::analizeValue<double>(const std::string& str, bool /*space_delete*/)
|
||||
double CommandLineParser::analyzeValue<double>(const std::string& str, bool /*space_delete*/)
|
||||
{
|
||||
return fromStringNumber<double>(str);
|
||||
}
|
||||
|
@@ -134,7 +134,7 @@ cv::string cv::FileStorage::getDefaultObjectName(const string& _filename)
|
||||
|
||||
namespace cv
|
||||
{
|
||||
#ifndef ANDROID //unsuported wcstombs on android
|
||||
#if !defined(ANDROID) || defined(_GLIBCXX_USE_WCHAR_T)
|
||||
string fromUtf16(const WString& str)
|
||||
{
|
||||
cv::AutoBuffer<char> _buf(str.size()*4 + 1);
|
||||
@@ -2160,6 +2160,7 @@ icvXMLParse( CvFileStorage* fs )
|
||||
ptr = icvXMLSkipSpaces( fs, ptr, CV_XML_INSIDE_TAG );
|
||||
|
||||
if( memcmp( ptr, "<?xml", 5 ) != 0 )
|
||||
|
||||
CV_PARSE_ERROR( "Valid XML should start with \'<?xml ...?>\'" );
|
||||
|
||||
ptr = icvXMLParseTag( fs, ptr, &key, &list, &tag_type );
|
||||
|
Reference in New Issue
Block a user