]> git.lyx.org Git - lyx.git/blobdiff - src/support/lstrings.C
the convert patch
[lyx.git] / src / support / lstrings.C
index 65c238ecfc6596eec8f7f3d03b46bd20d702e06c..fb7af0a7328a373cd9c33ce41dcba1598c88b39a 100644 (file)
@@ -37,7 +37,6 @@ using std::string;
 using std::vector;
 
 #ifndef CXX_GLOBAL_CSTD
-using std::atof;
 using std::isdigit;
 using std::tolower;
 using std::toupper;
@@ -158,32 +157,6 @@ bool isStrUnsignedInt(string const & str)
 }
 
 
-int strToInt(string const & str)
-{
-       if (isStrInt(str)) {
-               // Remove leading and trailing white space chars.
-               string const tmpstr = trim(str);
-               // Do the conversion proper.
-               return atoi(tmpstr);
-       } else {
-               return 0;
-       }
-}
-
-
-unsigned int strToUnsignedInt(string const & str)
-{
-       if (isStrUnsignedInt(str)) {
-               // Remove leading and trailing white space chars.
-               string const tmpstr = trim(str);
-               // Do the conversion proper.
-               return atoi(tmpstr);
-       } else {
-               return 0;
-       }
-}
-
-
 bool isStrDbl(string const & str)
 {
        if (str.empty()) return false;
@@ -214,19 +187,6 @@ bool isStrDbl(string const & str)
 }
 
 
-double strToDbl(string const & str)
-{
-       if (isStrDbl(str)) {
-               // Remove leading and trailing white space chars.
-               string const tmpstr = trim(str);
-               // Do the conversion proper.
-               return ::atof(tmpstr.c_str());
-       } else {
-               return 0.0;
-       }
-}
-
-
 char lowercase(char c)
 {
        return char(tolower(c));