Add locale independent and thread safe string conversion API with tests
[ardour.git] / libs / pbd / shortpath.cc
index d283631cde18ba15feebf36b43ab385584e528a0..3d33611b87caccb090ff88c29a34a0b38cefd80a 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2000-2007 Paul Davis 
+    Copyright (C) 2000-2007 Paul Davis
 
     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
@@ -17,6 +17,7 @@
 
 */
 
+#include <stdint.h>
 #include "pbd/shortpath.h"
 
 using namespace Glib;
@@ -56,7 +57,7 @@ short_path (const Glib::ustring& path, ustring::size_type target_characters)
                        return path;
                }
        }
-       
+
        uint32_t so_far = (len - last_sep);
        uint32_t space_for = target_characters - so_far;
 
@@ -70,6 +71,6 @@ short_path (const Glib::ustring& path, ustring::size_type target_characters)
                res += path.substr (last_sep - space_for, len - last_sep + space_for - 3);
                res += "...";
                return res;
-               
+
        }
 }