Browse Source

adding conversion from underline_separated into CamelCase

master
Volker Birk 2 months ago
parent
commit
b78740c612
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      yml2/standardlib.ysl2

+ 7
- 0
yml2/standardlib.ysl2 View File

@ -66,3 +66,10 @@ def "yml:capit" {
result "concat(yml:ucase(substring($text,1,1)),substring($text,2))";
}
def "yml:CamelCase" {
param "text", "''";
const "tokens", "str:tokenize($text, '_')";
const "capit" for "$tokens" value "yml:capit(.)";
result "str:concat($capit)";
}

Loading…
Cancel
Save