summaryrefslogtreecommitdiff
path: root/lib/stdlib/test/string_SUITE.erl
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright yearErlang/OTP2022-04-111-1/+1
|
* Make sure to keep tail in strings containing emojis as wellChristian Rasmussen2022-03-121-0/+6
|
* Make sure to keep tail in string:next_grapheme/1Christian Rasmussen2022-03-121-4/+10
|
* beam_ssa_type: Improve type inference in recursive functionsJohn Högberg2019-11-211-5/+15
|
* Fix bug string:slice/3 on bad inputDan Gudmundsson2019-04-301-1/+62
| | | | | | | Fixed bug in slice which wrongly could return <<>> for non-utf8 binary input. Also give a better error reason when non-utf8 binaries are given as input to some functions.
* stdlib: Restore timeout in string_SUITE:meas()Hans Bolinder2019-03-211-3/+3
| | | | Make sure the test case meas() terminates without failing.
* stdlib: Optimize handling of Unicode in the string moduleHans Bolinder2019-03-201-7/+20
| | | | Unroll some of the functions returning codepoints and grapheme clusters.
* stdlib: Optimize handling of Unicode in the string moduleHans Bolinder2019-03-201-8/+24
| | | | | The unicode_util:cp() function handles deep lists faster by returning the rest of the input more balanced to the right than before.
* Update copyright yearHenrik Nord2018-06-181-1/+1
|
* Fix *case bugs for binariesDan Gudmundsson2018-06-041-6/+6
| | | | Bad optimizing code introduced in 5c51e87bee9d
* Optimize string lowercase, uppercase and casefold for ASCII charactersDan Gudmundsson2018-05-141-0/+12
|
* Merge branch 'maint'Dan Gudmundsson2018-03-011-0/+4
|\ | | | | | | | | * maint: ERL-558 Add the missing function clause for string:prefix (#1702)
| * ERL-558 Add the missing function clause for string:prefix (#1702)Seyed Mirsadeghi2018-03-011-0/+4
| | | | | | OTP-14942
* | stdlib: Do not call erlang:get_stacktrace()Hans Bolinder2018-02-061-5/+5
| |
* | Merge branch 'maint'Dan Gudmundsson2017-11-301-15/+107
|\ \ | |/ | | | | | | | | | | * maint: Avoid falling measurements testcases on slow machines stdlib: string optimize special case for ASCII stdlib: Minor unicode_util opts
| * Avoid falling measurements testcases on slow machinesDan Gudmundsson2017-11-291-12/+25
| |
| * stdlib: string optimize special case for ASCIIDan Gudmundsson2017-11-291-8/+86
| | | | | | | | Avoid unicode_util module call for ASCII strings
| * stdlib: Minor unicode_util optsDan Gudmundsson2017-11-291-8/+8
| | | | | | | | Exit early for Latin-1
* | stdlib: Add unicode string benchmarksDan Gudmundsson2017-09-261-7/+7
|/
* Return error tuple on unicode normalization functionsJosé Valim2017-05-221-0/+4
| | | | | | | | | | | | | Prior to this patch, the normalization functions in the unicode module would raise a function clause error for non-utf8 binaries. This patch changes it so it returns {error, SoFar, Invalid} as characters_to_binary and characters_to_list does in the unicode module. Note string:next_codepoint/1 and string:next_grapheme had to be changed accordingly and also return an error tuple.
* Update copyright yearRaimo Niskanen2017-05-041-1/+1
|
* Handle chardata in string:to_float and string:to_listDan Gudmundsson2017-04-241-19/+65
|
* New unicode aware string module that works with unicode:chardata()Dan Gudmundsson2017-04-241-21/+872
| | | | | | | | | | | | | | | | | Works with unicode:chardata() as input as was decided on OTP board meeting as response to EEP-35 a long time ago. Works on graphemes clusters as base, with a few exceptions, does not handle classic (nor nfd'ified) Hangul nor the extended grapheme clusters such as the prepend class. That would make handling binaries as input/output very slow. List input => list output, binary input => binary output and mixed input => mixed output for all find/split functions. So that results can be post-processed without the need to invoke unicode:characters_to_list|binary for intermediate data. pad functions return lists of unicode:chardata() for performance.
* update copyright-yearHenrik Nord2016-03-151-1/+1
|
* Remove ?line macrosBjörn Gustavsson2016-03-091-228/+228
| | | | While we are it, also re-ident the files.
* Replace "%" with "%%" at the beginning of a lineBjörn Gustavsson2016-03-091-5/+5
| | | | | | | | We want to re-ident the source files after having taken out all ?line macros. When re-indenting using Emacs, it's important that comments that should be at the beginning of a line (or follow the indentation of statements around it) must start with "%%".
* Eliminate 'suite' and 'doc' clausesBjörn Gustavsson2016-03-091-76/+0
|
* Modernize use of timetrapsBjörn Gustavsson2016-03-091-13/+7
| | | | | Either rely on the default 30 minutes timetrap, or set the timeout using the supported methods in common_test.
* Eliminate use of test_server.hrl and test_server_line.hrlBjörn Gustavsson2016-02-171-1/+1
| | | | | | | As a first step to removing the test_server application as as its own separate application, change the inclusion of test_server.hrl to an inclusion of ct.hrl and remove the inclusion of test_server_line.hrl.
* Change license text to APLv2Bruce Yinhe2015-06-181-10/+11
|
* Eliminate use of deprecated now/0 for random number generationBjörn Gustavsson2015-04-101-2/+2
| | | | | Use erlang:timestamp/0 instead now/0 when seeding the random number generator.
* Modernize and strengthen the test case for string:tokens/2Björn Gustavsson2015-02-161-11/+29
|
* Remove the "coding: utf-8" comment from all Erlang source filesHans Bolinder2013-04-191-2/+1
|
* Prepare OTP files for Unicode as default encodingHans Bolinder2013-01-091-3/+4
|
* Improve and correct types and specifications in Kernel and STDLIBHans Bolinder2011-08-311-2/+2
| | | | Running Dialyzer on the test suites revealed a few type errors.
* Update copyright yearsBjörn-Egil Dahlberg2011-03-111-1/+1
|
* Rename Suite Callback to Common Test HookLukas Larsson2011-02-171-1/+1
|
* Fix formatting for stdlibLukas Larsson2011-02-171-7/+8
|
* Add init_per_suite and end_per_suiteLukas Larsson2011-02-171-1/+7
|
* Add ts_install_scb to suite/0Lukas Larsson2011-02-171-1/+3
|
* Update stdlib tests to conform with common_test standardLukas Larsson2011-02-171-10/+17
|
* Update all fin_per_testcase to end_per_testcase.Lukas Larsson2011-02-171-2/+2
|
* string_SUITE: Add test for string:copies(Str, Float)Björn Gustavsson2010-10-291-0/+1
|
* string_SUITE: Fix copy and paste error in test of string:copies/2Björn Gustavsson2010-10-291-2/+2
|
* The R13B03 release.OTP_R13B03Erlang/OTP2009-11-201-0/+511