From 7eb420dd2979be61c759ded71f54348fe691bea8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ferenc=20G=C3=A9czi?= Date: Wed, 21 Feb 2024 00:00:00 +0000 Subject: [PATCH] Add `lowerAscii()` and `upperAscii()` to documentation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ferenc Géczi --- docs/cel_expressions.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/docs/cel_expressions.md b/docs/cel_expressions.md index 73a764405..2f158c6c4 100644 --- a/docs/cel_expressions.md +++ b/docs/cel_expressions.md @@ -485,6 +485,36 @@ which can be accessed by indexing.
"This is $an Invalid5String ".translate("[^a-z0-9]+", "ABC") == "ABChisABCisABCanABCnvalid5ABCtring"
+ + + lowerAscii() + + +
<string>.lowerAscii() -> <string>
+ + + Returns a new string where all ASCII characters are lower-cased. + + +
"TacoCat".lowerAscii() == "tacocat"

+
"TacoCÆt Xii".lowerAscii() == "tacocÆt xii"
+ + + + + upperAscii() + + +
<string>.upperAscii() -> <string>
+ + + Returns a new string where all ASCII characters are upper-cased. + + +
"TacoCat".upperAscii() == "TACOCAT"

+
"TacoCÆt Xii".upperAscii() == "TACOCÆT XII"
+ + ## Troubleshooting CEL expressions