blob: 1ae3cb1bd658b20a8ff5100d65fd53ea489dcee4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
The `lc()` function turns each upper case character in the source string
into lower case and returns the resulting copy.
The input argument is converted to a string in case it is not already a
string value.
-- Testcase --
{%
printf("%.J\n", [
lc("This Will Be All Lowercased."),
lc([ "An", "array", "ABC" ]),
lc(123),
lc(false),
lc()
]);
%}
-- End --
-- Expect stdout --
[
"this will be all lowercased.",
"[ \"an\", \"array\", \"abc\" ]",
"123",
"false",
"null"
]
-- End --
|