# HG changeset patch
# User Volker Birk <vb@pep.foundation>
# Date 1496511027 -7200
# Node ID 519fb60037cef01bb13eab025b448b516bd8c9fe
# Parent  0250d70228bc8ee8e22d1ce3e5ccb9de86bc2899
adding mixedCase()

diff -r 0250d70228bc -r 519fb60037ce 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))";
+}
+