Proper fix for waterfall tiles
[supertux.git] / src / util / string_util.hpp
index d5f9ae1..f548393 100644 (file)
@@ -1,5 +1,5 @@
 //  SuperTux
-//  Copyright (C) 2009 Ingo Ruhnke <grumbel@gmx.de>
+//  Copyright (C) 2009 Ingo Ruhnke <grumbel@gmail.com>
 //
 //  This program is free software: you can redistribute it and/or modify
 //  it under the terms of the GNU General Public License as published by
@@ -23,6 +23,10 @@ class StringUtil
 {
 public:
   static bool has_suffix(const std::string& data, const std::string& suffix);
+
+  /** Compare two strings according to their numeric value, similar to
+      what 'sort -n' does. */
+  static bool numeric_less(const std::string& lhs, const std::string& rhs);
 };
 
 #endif