summaryrefslogtreecommitdiff
path: root/src/lib/util.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-04-02 23:44:58 +0200
committerCarl Hetherington <cth@carlh.net>2021-04-04 20:48:35 +0200
commit48bfa4b2040d2bacd6befdab6c12b2ee3e9be5a1 (patch)
tree8a7ae3f46a2f2034d069fceadf67958949a6da8a /src/lib/util.cc
parentb0c9c0470708d0822631b82915f4ed67e5fc7c1b (diff)
Add to_upper() method to util.{cc,h}
Diffstat (limited to 'src/lib/util.cc')
-rw-r--r--src/lib/util.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/util.cc b/src/lib/util.cc
index 24ea42b8f..d3511e8c7 100644
--- a/src/lib/util.cc
+++ b/src/lib/util.cc
@@ -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;
+}
+