]> git.lyx.org Git - lyx.git/blobdiff - src/support/lstrings.h
small changes + patch from Dekel
[lyx.git] / src / support / lstrings.h
index 963a5779fd157d7ca1790126e3078a05512f6f0e..bffbc0d865ccd4514300d36ce2bd18752605bc7f 100644 (file)
@@ -44,9 +44,15 @@ int compare(char const * a, char const * b, unsigned int len)
 ///
 bool isStrInt(string const & str);
 
+/// does the string represent an unsigned integer value ?
+bool isStrUnsignedInt(string const & str);
+
 ///
 int strToInt(string const & str);
 
+/// convert string to an unsigned integer
+unsigned int strToUnsignedInt(string const & str);
+
 ///
 bool isStrDbl(string const & str);
 
@@ -86,7 +92,15 @@ string const tostr(bool const & b)
 {
        return (b ? "true" : "false");
 }
-       
+
+///
+template<>
+inline
+string const tostr(string const & s)
+{
+       return s;
+}
+
 /// Does the string start with this prefix?
 bool prefixIs(string const &, char const *);