Commit Graph
26 Commits
Author SHA1 Message Date
vanstee 891564f114 Keep empty strings when splitting
To stay consistent with both `String.split/2` and `:binary.split` we
need to keep around empty strings that are accumulated while splitting.
In the future we could support the `:trim` option to consistently remove
these in call calls to `String.split`.

Fixes #1636
2013-08-23 12:37:02 -04:00
José Valim cea31f69dc Review and deprecate list <-> binary conversion 2013-08-14 11:16:37 +02:00
Devin Torres 74c82f8590 String.split("") should be [""], %w() should be [] 2013-07-08 17:48:18 -05:00
José Valim 664d1ec0d3 Decide on IO.stream and unify read/readline API 2013-06-30 19:21:39 +02:00
José Valim cf98f9b975 Deprecate File.*iterator! in favor of File.*lines_stream! 2013-06-30 19:21:39 +02:00
José Valim b535f0746e No need for accumulator on downcase/upcase 2013-06-08 16:22:44 +08:00
José Valim 4b795a042b Optimize downcase, upcase and rstrip in Unicode 2013-06-08 15:24:51 +08:00
José Valim cbe82e0912 Add __DIR__, closes #1019 2013-05-06 11:03:37 -06:00
Devin Torres 196358525a Unicode split 2013-03-27 11:31:52 -05:00
José Valim f10171bfd2 Clean up Unicode using the new unquote fragments 2013-03-10 22:01:08 -06:00
José Valim bdb4afe99b String.capitalize now considers Unicode's titlecase property 2013-01-20 16:38:36 -07:00
José Valim fda6f0ce09 Move path related functions from File to Path 2013-01-19 09:36:03 -07:00
José Valim 33ab39afb7 Fix a bug, improve wording (ht: @alexrp) 2013-01-17 19:28:42 -07:00
José Valim cb536a4740 Improve docs for the string module 2013-01-17 17:03:48 -07:00
José Valim 4f26d1a964 Support SpecialCasing.txt on Unicode 2013-01-13 23:58:37 +01:00
José Valim e2fde7699c Do not generate lowercase clause if lowercase == codepoint 2013-01-13 23:58:37 +01:00
alexrp e4d9375648 Use binary matching with the utf8 specifier to implement String.next_codepoint/1. 2013-01-13 20:11:55 +01:00
mururu f1323b6b74 String.Unicode.rstrip raise error when an argument is not binary 2012-12-09 17:14:55 +09:00
mururu 89d32f91e1 String.Unicode.lstrip raise error when an argument is not binary 2012-12-09 17:14:48 +09:00
Devin Torres 5c29d76bca Add String.Unicode.{lstrip,rstrip} 2012-12-02 17:42:32 -06:00
José Valim 600c8022ba Deprecated Enum.qsort and List.sort in favor of Enum.sort 2012-11-23 21:51:11 +01:00
José Valim 80866e3544 Improve docs and style on unicode.ex 2012-11-20 00:15:00 +01:00
José Valim 9a2ae1bac7 Rename String.Unicode.sequences to graphemes 2012-10-24 11:20:45 +02:00
Yurii Rashkovskii 4717c9a10b Add support for named sequences and make String module aware of it so it does correct job at calculating length, picking characters, etc. 2012-10-22 01:10:49 -07:00
Yurii Rashkovskii 5c4a5db828 Add String.Unicode.version/0 2012-10-21 14:52:15 -07:00
José Valim b2c8669c4c Support String.downcase and String.upcase according to Unicode 6.2.0 2012-10-21 23:35:03 +02:00