diff options
author | Dan Gudmundsson <[email protected]> | 2017-05-23 15:17:29 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2017-05-23 15:17:29 +0200 |
commit | 12d0ebb242fec18327c8f53742e3298ac0ed1aee (patch) | |
tree | 656593138d347826d1bed52717632122b978f221 /lib/stdlib/doc | |
parent | 14c54f82e0279f6e6dcdf9ed281f0236c441220a (diff) | |
parent | e1370f924df65e72843b5f81400230e1c2591485 (diff) | |
download | otp-12d0ebb242fec18327c8f53742e3298ac0ed1aee.tar.gz otp-12d0ebb242fec18327c8f53742e3298ac0ed1aee.tar.bz2 otp-12d0ebb242fec18327c8f53742e3298ac0ed1aee.zip |
Merge pull request #1469 from josevalim/jv-unicode-normalize-error
Return error tuple on unicode normalization functions
Diffstat (limited to 'lib/stdlib/doc')
-rw-r--r-- | lib/stdlib/doc/src/string.xml | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/stdlib/doc/src/string.xml b/lib/stdlib/doc/src/string.xml index 343904a49a..9d5edd9ecf 100644 --- a/lib/stdlib/doc/src/string.xml +++ b/lib/stdlib/doc/src/string.xml @@ -311,7 +311,9 @@ true</pre> <desc> <p> Returns the first codepoint in <c><anno>String</anno></c> - and the rest of <c><anno>String</anno></c> in the tail. + and the rest of <c><anno>String</anno></c> in the tail. Returns + an empty list if <c><anno>String</anno></c> is empty or an + <c>{error, String}</c> tuple if the next byte is invalid. </p> <p><em>Example:</em></p> <pre> @@ -326,7 +328,9 @@ true</pre> <desc> <p> Returns the first grapheme cluster in <c><anno>String</anno></c> - and the rest of <c><anno>String</anno></c> in the tail. + and the rest of <c><anno>String</anno></c> in the tail. Returns + an empty list if <c><anno>String</anno></c> is empty or an + <c>{error, String}</c> tuple if the next byte is invalid. </p> <p><em>Example:</em></p> <pre> |