From cb834efd4d430936fd19ac2350d724010cc0dd01 Mon Sep 17 00:00:00 2001 From: Siri Hansen Date: Thu, 18 Sep 2014 14:08:09 +0200 Subject: Add note about adjacent separator characters in string:tokens/2 Adjacent separator characters are treated as one in string:tokens/2. This was shown in the example in the reference manual but it was not written in words. A note about this is now added. --- lib/stdlib/doc/src/string.xml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/stdlib') diff --git a/lib/stdlib/doc/src/string.xml b/lib/stdlib/doc/src/string.xml index c96cc95a44..b05d5cbc08 100644 --- a/lib/stdlib/doc/src/string.xml +++ b/lib/stdlib/doc/src/string.xml @@ -4,7 +4,7 @@
- 19962013 + 19962014 Ericsson AB. All Rights Reserved. @@ -124,6 +124,10 @@ > tokens("abc defxxghix jkl", "x "). ["abc", "def", "ghi", "jkl"] +

Note that, as shown in the example above, two or more + adjacent separator characters in String + will be treated as one. That is, there will not be any empty + strings in the resulting list of tokens.

-- cgit v1.2.3