]> git.lyx.org Git - lyx.git/blobdiff - src/tabular_funcs.C
"Inter-word Space"
[lyx.git] / src / tabular_funcs.C
index dcb87be80161cbbd4c4e9b4400bd4ae8dc399026..ac2e2fbfe2e02a3618548d5ae2238bb387699423 100644 (file)
@@ -1,25 +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"
+#include "support/lstrings.h"
+
+#ifndef CXX_GLOBAL_CSTD
+using std::strlen;
+#endif
 
 using std::istream;
 using std::getline;
@@ -34,7 +34,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 +45,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,10 +55,11 @@ 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());
 }
 
+
 string const tostr(LyXAlignment const & num)
 {
        switch (num) {
@@ -238,7 +239,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 +251,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)