Add to_upper() method to util.{cc,h}
[dcpomatic.git] / src / lib / util.cc
index 24ea42b8f2e0e945a31488a414e42ca1f4017f57..d3511e8c7e34e0b1c5f5744147b18d83fb944837 100644 (file)
@@ -1167,3 +1167,12 @@ default_font_file ()
 
        return liberation_normal;
 }
+
+
+string
+to_upper (string s)
+{
+       transform (s.begin(), s.end(), s.begin(), ::toupper);
+       return s;
+}
+