Skip to content

Commit 44aa48a

Browse files
authored
Unicode and opt args text updates (#117)
* Unicode and opt args text updates * Typos * No need to point out typos from the original text. * Removed répétition.
1 parent a08c963 commit 44aa48a

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

jep-014-string-functions.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
|||
44
|---|---
55
| **JEP** | 14
6-
| **Author** | Maxime Labelle, Chris Armstrong (GorillaStack)
6+
| **Author** | Maxime Labelle, Chris Armstrong (GorillaStack), Richard Gibson
77
| **Created**| 13-October-2022
88
| **SemVer** | MINOR
99
| **Status**| Draft
@@ -14,6 +14,12 @@ This JEP introduces a core set of useful string manipulation functions. Those fu
1414

1515
## Specification
1616

17+
Some string manipulation functions bring the new concept of _optional arguments_ to JMESPath functions. The specification paragraph on function evaluation must thus be changed accordingly – highlighted in **bold** in the text below:
18+
19+
_Functions can ~~either~~ have a specific arity, **a range of valid – minimum and maximum – number of arguments** or be variadic with a minimum number of arguments. If a function-expression is encountered where the arity does not match or the minimum number of arguments for a variadic function is not provided, then implementations must indicate to the caller that an invalid-arity error occurred. How and when this error is raised is implementation specific._
20+
21+
22+
1723
### find_first
1824

1925
```
@@ -189,7 +195,7 @@ string trim(string $subject[, string $chars])
189195
```
190196
Given the `$subject` string, `trim()` removes the leading and trailing characters found in `$chars`.
191197

192-
The `$chars` optional string parameter represents a set of characters to be removed. If this parameter is not specified, or is an empty string, whitespace characters are removed from the `$subject` string. Whitespace characters are defined by Unicode as having property.
198+
The `$chars` optional string parameter represents a set of characters to be removed. If this parameter is not specified, or is an empty string, whitespace characters are removed from the `$subject` string. Whitespaces are defined by the Unicode standard as codepoints having the `White_Space` property set to `Yes`.
193199

194200
### Examples
195201

0 commit comments

Comments
 (0)