]> git.lyx.org Git - lyx.git/blobdiff - src/tabular_funcs.C
fix compilation bug
[lyx.git] / src / tabular_funcs.C
index dcb87be80161cbbd4c4e9b4400bd4ae8dc399026..919e09143ea08799c99c9f981416af39f7398726 100644 (file)
@@ -1,26 +1,25 @@
 /* This file is part of
- * ====================================================== 
- * 
+ * ======================================================
+ *
  *           LyX, The Document Processor
- *      
+ *
  *           Copyright 2000-2001 The LyX Team.
  *
  *           @author: Jürgen Vigna
  *
- * ====================================================== 
+ * ======================================================
  */
 
 #include <config.h>
 
-#ifdef __GNUG__
-#pragma implementation
-#endif
-
 #include "tabular_funcs.h"
 
-#include "support/lstrings.h"
 #include "support/LIstream.h"
 
+#ifndef CXX_GLOBAL_CSTD
+using std::strlen;
+#endif
+
 using std::istream;
 using std::getline;
 
@@ -34,7 +33,7 @@ string const write_attribute(string const & name, bool const & b)
        // file format bloat for tabulars.
        if (!b)
                return string();
-       
+
        return write_attribute(name, tostr(b));
 }
 
@@ -45,7 +44,7 @@ string const write_attribute(string const & name, int const & i)
        // file format bloat for tabulars.
        if (!i)
                return string();
-       
+
        return write_attribute(name, tostr(i));
 }
 
@@ -55,7 +54,7 @@ string const write_attribute(string const & name, LyXLength const & value)
        // we write only the value if we really have one same reson as above.
        if (value.zero())
                return string();
-       
+
        return write_attribute(name, value.asString());
 }
 
@@ -238,7 +237,7 @@ bool getTokenValue(string const & str, const char * token, bool & flag)
        if (!getTokenValue(str, token, tmp))
                return false;
        return string2type(tmp, flag);
-}    
+}
 
 
 bool getTokenValue(string const & str, const char * token, LyXLength & len)
@@ -250,7 +249,7 @@ bool getTokenValue(string const & str, const char * token, LyXLength & len)
        if (!getTokenValue(str, token, tmp))
                return false;
        return isValidLength(tmp, &len);
-}    
+}
 
 
 void l_getline(istream & is, string & str)