Aleksei Magusev
b6251516d0
Improve names of String tests
2016-10-27 18:46:46 +02:00
Aleksei Magusev
6099c40e7c
Generalize and move myers_difference/2 to List
2016-10-26 16:03:04 +02:00
Milton Mazzarri
52d337699d
Do not re-compile a compiled pattern for String.split/3 ( #5127 )
2016-08-11 09:46:54 +02:00
Christopher
d8fdd1b42a
Fix String.split when parts and trim is used ( #5077 )
2016-07-30 10:53:36 +02:00
Andrea Leopardi
070e395cc3
Fix a bug in String.replace_leading/3 and String.replace_trailing/3 ( #5022 )
...
These function would end up in infinite recursion if the "match"
argument to replace was an empty string. With this commit, we explicitly
check for that empty string and possibly raise an ArgumentError exception.
2016-07-19 18:46:48 +02:00
eksperimental
17f4d67907
Convert hex literals to uppercase ( #4748 )
2016-06-01 22:40:19 +02:00
Miles Starkenburg
551a9ac14e
Fix nfd normalization bug ( #4606 )
...
* Fix nfd normalization bug
* Change String.normalize return type to binary
2016-05-13 09:28:50 +02:00
eksperimental
0aece49e2d
Replace 'char_list' and 'char list' with 'charlist'
2016-05-07 03:20:57 +07:00
eksperimental
6da34e0225
Standardize unicode and friends ( #4569 )
...
* Unicode is a proper noun, so it should be capitalized
* Replace 'char data' with 'chardata'
* Correct use of a/an articles
2016-05-05 09:21:05 +02:00
Aleksei Magusev
a3a9293637
Hide String.{strip,lstrip,rstrip,ljust,rjust} functions
2016-04-25 19:59:24 +02:00
Aleksei Magusev
24ab310950
Introduce String.trim{,_leading,_trailing}/2
2016-04-25 19:59:24 +02:00
Aleksei Magusev
81380237d2
Introduce String.pad_{leading,trailing}/3
2016-04-25 19:59:21 +02:00
Aleksei Magusev
8fcf699c05
Fix String.replace_trailing/3 replacement bug
2016-04-24 22:32:59 +02:00
Aleksei Magusev
459fc9a408
Fix String.replace_leading/3 replacement bug
2016-04-24 22:32:54 +02:00
Aleksei Magusev
1057356396
Merge pull request #4430 from lexmag/ex_unit-difference-highlighting
...
Add difference highlighting to ExUnit
2016-04-05 14:58:57 +02:00
Aleksei Magusev
df5ac21cb4
Introduce String.myers_difference/2
2016-04-05 01:10:08 +02:00
José Valim
79b132a665
Do not reorder starting classes
...
Signed-off-by: José Valim <jose.valim@plataformatec.com.br >
2016-03-29 13:38:14 +02:00
José Valim
cd953f5883
Handle compositios with non-zero combining class
...
Signed-off-by: José Valim <jose.valim@plataformatec.com.br >
2016-03-29 13:38:10 +02:00
José Valim
107a185209
More optimizations and improvements to normalization
...
Signed-off-by: José Valim <jose.valim@plataformatec.com.br >
2016-03-29 13:38:07 +02:00
José Valim
ec027fa421
Use combining_classes from UnicodeData
...
Signed-off-by: José Valim <jose.valim@plataformatec.com.br >
2016-03-29 13:37:56 +02:00
José Valim
664feb1802
Rely only on UnicodeData for composition/decomposition
2016-03-29 00:54:20 +02:00
Aleksei Magusev
0f67cb6032
Ensure String.jaro_distance/2 works on graphemes
2016-03-26 21:49:47 +01:00
Abel Muiño
98a4ee5da6
New definition of whitespace & breakable whitespace
...
All whitespace can be removed by `strip` but only breakable whitespace
can be used as a delimiter by `split`, with updated docs for String.split/1
2016-03-15 14:54:11 +01:00
José Valim
31ccd4504f
Remove outdated debug_info test
2016-02-01 09:45:35 +01:00
stephen
eddb65a6a6
Add some tests String.replace_trailing. Another test for String.rstrip
2016-01-31 20:54:51 +00:00
José Valim
e65b01b870
Do not include debug_info in metadata String modules
2016-01-08 10:11:07 +01:00
José Valim
0bf58133c5
Deprecate soft-deprecated functionality
2016-01-02 11:04:21 +01:00
José Valim
a72d39fd40
Tidy up String API and docs
2016-01-02 09:28:12 +01:00
Aleksei Magusev
f8a82f604a
Move doctests from central place to the modules they describe
2015-11-25 00:26:07 +01:00
Bryan Endersstocker
07fedf66d0
Add NFC support to String.normalize/2
2015-10-03 11:08:55 -04:00
Bryan Endersstocker
bf02047280
Add String.normalize/2
2015-09-26 00:12:44 -04:00
Bryan Enders
dab2a632b6
Rename String.is_equivalent/2 to String.equivalent?/2
2015-09-25 15:01:29 -04:00
Bryan Enders
f83cc7de5f
Add String.is_equivalent/2 to test canonical Unicode equivalence
2015-09-25 13:35:16 -04:00
José Valim
4bb4e916fd
Convert remaining test :atom to strings
2015-09-05 20:35:26 +02:00
José Valim
3327854653
Support \u in strings and char lists for unicode mapping
2015-08-16 18:32:29 +02:00
José Valim
6e217af205
Convert test :atom into test string
2015-08-15 14:41:46 +02:00
José Valim
6efdf35f41
Handle corner cases for small strings in rstrp
2015-06-02 10:13:45 +02:00
José Valim
060df7542c
Ensure String bool functions do not fail on empty lists
2015-05-20 18:26:39 +02:00
José Valim
ac07b67da0
Add String.splitter/3 and optimize String.split/3
2015-05-20 15:56:38 +02:00
Aleksei Magusev
b962ae3e5f
Replace String.levenshtein_distance/2 with String.jaro_distance/2
2015-02-23 12:04:00 +01:00
Michal Muskala
57758b36a2
Add String.levenshtein_distance/2 and "Did you mean?" suggestion to mix
2015-02-22 22:11:11 +01:00
Eugeniy Meshcheryakov
10c45c01df
Fix splitting of empty strings on regex with trim: true
...
Make String.split and Regex.split called on empty string with
trim: true return []. Add testcase for String.split, fix incorrect
testcase for Regex.split.
2014-11-28 22:47:32 +01:00
jw2013
f2863de304
fix wrong CRLF grapheme
2014-11-08 12:45:41 -08:00
eksperimental
b1df7e4aec
fix doc line's length and test one more time
2014-11-05 00:04:09 +11:00
eksperimental
ed15b2e303
fix mistake on test
2014-11-04 23:23:29 +11:00
eksperimental
4ac2d0774e
bypass warning
2014-11-04 19:42:27 +11:00
jw2013
252feeb36c
fix wrong String.at/2 output when second arg is not an integer
2014-11-03 00:44:56 -08:00
jw2013
52fce1be69
fix wrong String.split_at/2 output when second arg is not an integer
2014-11-01 19:29:37 -07:00
jw2013
d9bc7dce30
fix spec and add more test for String.duplicate/2
2014-10-29 12:06:50 -07:00
Aleksei Magusev
d472105c29
Fix String.ljust/2,3 and String.rjust/2,3 functions
2014-10-28 23:25:30 +01:00