From bf12703dd079d34fcff26d6476506503bb3f9e1c Mon Sep 17 00:00:00 2001 From: Sokwhan Huh Date: Wed, 8 May 2024 10:44:49 -0700 Subject: [PATCH] Fix extensions README.md formatting PiperOrigin-RevId: 631852314 --- .../main/java/dev/cel/extensions/README.md | 40 +++++++++---------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/extensions/src/main/java/dev/cel/extensions/README.md b/extensions/src/main/java/dev/cel/extensions/README.md index 473ba634b..1c78f0364 100644 --- a/extensions/src/main/java/dev/cel/extensions/README.md +++ b/extensions/src/main/java/dev/cel/extensions/README.md @@ -140,13 +140,13 @@ zero-based. Returns the character at the given position. If the position is negative, or greater than the length of the string, the function will produce an error. -.charAt() -> + .charAt() -> Examples: -'hello'.charAt(4) // return 'o' -'hello'.charAt(5) // return '' -'hello'.charAt(-1) // error + 'hello'.charAt(4) // return 'o' + 'hello'.charAt(5) // return '' + 'hello'.charAt(-1) // error ### IndexOf @@ -156,17 +156,17 @@ not found the function returns -1. The function also accepts an optional offset from which to begin the substring search. If the substring is the empty string, the index where the search starts is returned (zero or custom). -.indexOf() -> -.indexOf(, ) -> + .indexOf() -> + .indexOf(, ) -> Examples: -'hello mellow'.indexOf('') // returns 0 -'hello mellow'.indexOf('ello') // returns 1 -'hello mellow'.indexOf('jello') // returns -1 -'hello mellow'.indexOf('', 2) // returns 2 -'hello mellow'.indexOf('ello', 2) // returns 7 -'hello mellow'.indexOf('ello', 20) // error + 'hello mellow'.indexOf('') // returns 0 + 'hello mellow'.indexOf('ello') // returns 1 + 'hello mellow'.indexOf('jello') // returns -1 + 'hello mellow'.indexOf('', 2) // returns 2 + 'hello mellow'.indexOf('ello', 2) // returns 7 + 'hello mellow'.indexOf('ello', 20) // error ### Join @@ -174,15 +174,15 @@ Returns a new string where the elements of string list are concatenated. The function also accepts an optional separator which is placed between elements in the resulting string. ->.join() -> ->.join() -> + >.join() -> + >.join() -> Examples: -['hello', 'mellow'].join() // returns 'hellomellow' -['hello', 'mellow'].join(' ') // returns 'hello mellow' -[].join() // returns '' -[].join('/') // returns '' + ['hello', 'mellow'].join() // returns 'hellomellow' + ['hello', 'mellow'].join(' ') // returns 'hello mellow' + [].join() // returns '' + [].join('/') // returns '' ### LastIndexOf @@ -304,8 +304,8 @@ ASCII range. Examples: - 'TacoCat'.upperAscii() // returns 'TACOCAT' - 'TacoCÆt Xii'.upperAscii() // returns 'TACOCÆT XII' + 'TacoCat'.upperAscii() // returns 'TACOCAT' + 'TacoCÆt Xii'.upperAscii() // returns 'TACOCÆT XII' ## Encoders