MCPcopy Create free account
hub / github.com/creatale/node-dv / icv_strtod

Function icv_strtod

deps/opencv/modules/core/src/persistence.cpp:954–973  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

952
953
954static double icv_strtod( CvFileStorage* fs, char* ptr, char** endptr )
955{
956 double fval = strtod( ptr, endptr );
957 if( **endptr == '.' )
958 {
959 char* dot_pos = *endptr;
960 *dot_pos = ',';
961 double fval2 = strtod( ptr, endptr );
962 *dot_pos = '.';
963 if( *endptr > dot_pos )
964 fval = fval2;
965 else
966 *endptr = dot_pos;
967 }
968
969 if( *endptr == ptr || cv_isalpha(**endptr) )
970 icvProcessSpecialDouble( fs, ptr, &fval, endptr );
971
972 return fval;
973}
974
975
976/****************************************************************************************\

Callers 2

icvYMLParseValueFunction · 0.85
icvXMLParseValueFunction · 0.85

Calls 2

cv_isalphaFunction · 0.85
icvProcessSpecialDoubleFunction · 0.85

Tested by

no test coverage detected