# HG changeset patch # User Volker Birk # Date 1524763424 -7200 # Node ID 3bc118c7d3243068e378822e94ca23dd60c6cab1 # Parent da8160da8d3eb704e9386b8660206807df357817 on special demand diff -r da8160da8d3e -r 3bc118c7d324 standardlib.ysl2 --- a/standardlib.ysl2 Sun Oct 15 09:05:19 2017 +0200 +++ b/standardlib.ysl2 Thu Apr 26 19:23:44 2018 +0200 @@ -59,3 +59,8 @@ result "concat(yml:lcase(substring($text,1,1)),substring($text,2))"; } +def "yml:capit" { + param "text", "''"; + result "concat(yml:ucase(substring($text,1,1)),substring($text,2))"; +} +