diff python/utils.py @ 745:3d0321abb564 dev

merged
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Thu, 10 Sep 2015 15:49:13 -0400
parents fe71639f1ee7
children 10dbab1e871d
line wrap: on
line diff
--- a/python/utils.py	Thu Sep 10 15:48:01 2015 -0400
+++ b/python/utils.py	Thu Sep 10 15:49:13 2015 -0400
@@ -13,6 +13,15 @@
 datetimeFormat = "%Y-%m-%d %H:%M:%S"
 
 #########################
+# Strings
+#########################
+
+def upperCaseFirstLetter(s):
+    words = s.split(' ')
+    lowerWords = [w[0].upper()+w[1:].lower() for w in words]
+    return ' '.join(lowerWords)
+
+#########################
 # Enumerations
 #########################