mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 23:33:05 +04:00
operator<< handles keys starting with underscore
This commit is contained in:
@@ -5217,7 +5217,7 @@ FileStorage& operator << (FileStorage& fs, const String& str)
|
||||
}
|
||||
else if( fs.state == NAME_EXPECTED + INSIDE_MAP )
|
||||
{
|
||||
if( !cv_isalpha(*_str) )
|
||||
if (!cv_isalpha(*_str) && *_str != '_')
|
||||
CV_Error_( CV_StsError, ("Incorrect element name %s", _str) );
|
||||
fs.elname = str;
|
||||
fs.state = VALUE_EXPECTED + INSIDE_MAP;
|
||||
|
||||
Reference in New Issue
Block a user