adding mixedCase()
authorVolker Birk <vb@pep.foundation>
Sat, 03 Jun 2017 19:30:27 +0200
changeset 10 519fb60037ce
parent 9 0250d70228bc
child 11 7026ccc7a60e
adding mixedCase()
standardlib.ysl2
--- a/standardlib.ysl2	Tue Apr 25 20:46:59 2017 +0200
+++ b/standardlib.ysl2	Sat Jun 03 19:30:27 2017 +0200
@@ -53,3 +53,9 @@
     param "text", "''";
     result "translate($text, 'abcdefghijklmnopqrstuvwxyz', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ')";
 }
+
+def "yml:mixedCase" {
+    param "text", "''";
+    result "concat(yml:lcase(substring($text,1,1)),substring($text,2))";
+}
+