| 952 | |
| 953 | |
| 954 | static 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 | /****************************************************************************************\ |
no test coverage detected