aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib
AgeCommit message (Collapse)Author
2017-11-20Merge pull request #1631 from peterdmv/stdlib/extend_uri_string/OTP-14747Péter Dimitrov
Extend uri_string module (compose_query and dissect_query)
2017-11-20Merge branch 'maint'Lukas Larsson
2017-11-20Merge branch 'lukas/docs/xmllint_fixes/OTP-14721' into maintLukas Larsson
* lukas/docs/xmllint_fixes/OTP-14721: ssl/ssh: Remove/ignore unused XML_FILES doc files Refactor xmllint check and make it fail on failure Add toplevel xmllint make target Conflicts: lib/crypto/doc/src/Makefile
2017-11-20Merge branch 'bjorn/make_port/OTP-14704'Björn Gustavsson
* bjorn/make_port/OTP-14704: Avoid using the efile driver in test suites
2017-11-20Merge branch 'lukas/stdlib/maps_iterators/OTP-14012'Lukas Larsson
* lukas/stdlib/maps_iterators/OTP-14012: erts: Limit size of first iterator for hashmaps Update primary bootstrap Update preloaded modules erts: Remove erts_internal:maps_to_list/2 stdlib: Make io_lib and io_lib_pretty use maps iterator erts: Implement batching maps:iterator erts: Implement maps path iterator erts: Implement map iterator using a stack stdlib: Introduce maps iterator API Conflicts: bootstrap/lib/stdlib/ebin/io_lib.beam bootstrap/lib/stdlib/ebin/io_lib_pretty.beam erts/emulator/beam/bif.tab erts/preloaded/ebin/erlang.beam erts/preloaded/ebin/erts_internal.beam erts/preloaded/ebin/zlib.beam
2017-11-20stdlib: Make io_lib and io_lib_pretty use maps iteratorLukas Larsson
2017-11-20erts: Implement batching maps:iteratorLukas Larsson
This iterator implementation fetches multiple elements to iterate over in one call to erts_internal:maps_next instead of one at a time. This means that the memory usage will go up for the iterator as we are buffering elements, but the usage is still bounded. In this implementation the max memory usage is 1000 words. Using this approach makes the iterator as fast as using maps:to_list, so maps:iterator/2 has been removed.
2017-11-17Avoid using the efile driver in test suitesBjörn Gustavsson
The efile driver will soon be reimplemented as a BIF. Instead of opening a port based on efile, use hd(erlang:ports()). It is a reasonable safe assumption that the runtime will continue to use use at least some ports.
2017-11-15Merge pull request #1602 from sirihansen/siri/supervisor/store-children-in-mapSiri Hansen
Refactor supervisor, and store children in a map instead of a list OTP-14586
2017-11-14[supervisor] Add test of scaling on start/stop of many childrenSiri Hansen
2017-11-09stdlib: Implement compose and dissect query (HTML5)Péter Dimitrov
Implement functions for handling form-urlencoded query strings based on the HTML5 specification.
2017-11-09[supervisor] Store children in map instead of listSiri Hansen
2017-11-09[supervisor] Change Name to IdSiri Hansen
2017-11-09[supervisor] Use map instead of dict for dynamic childrenSiri Hansen
2017-11-09[supervisor] Refactor to improve maintainabilitySiri Hansen
2017-11-09[supervisor] Add macros to use in guardsSiri Hansen
2017-11-09[supervisor] Refactor handling of dynamic childrenSiri Hansen
2017-11-09[supervisor] Improve test suite before refactoringSiri Hansen
2017-11-07Merge pull request #1551 from peterdmv/peterdmv/stdlib/add_uri_string/OTP-14496Péter Dimitrov
Implement new uri_string module in stdlib
2017-11-06Fix typo in test/ets_SUITE.erlDimitris Zorbas
2017-11-06stdlib: Remove compose_query and dissect_queryPéter Dimitrov
compose_query/{1,2} and dissect_query/1 removed as the implemented specification (HTML 2.0) is old. They will be re-implemented based on HTML5.
2017-11-03stdlib: Refactor functions in uri_stringPéter Dimitrov
2017-11-01stdlib: Add uri_string module to stdlib.app.srcPéter Dimitrov
2017-10-31stdlib: Fix case normalization (normalize/1)Péter Dimitrov
2017-10-31stdlib: Refactor helper functions in uri_stringPéter Dimitrov
2017-10-31Refactor xmllint check and make it fail on failureLukas Larsson
This commit also adds a check to see that all files that are part of an xi:include also have part of XML_FILES and vice versa. It also fixes any applications where this was not true.
2017-10-31Merge branch 'maint'Hans Bolinder
* maint: stdlib: Fix a minor issue with the qlc suite
2017-10-30stdlib: Update documentation (normalize/1)Péter Dimitrov
2017-10-30stdlib: Fix a minor issue with the qlc suiteHans Bolinder
When comparing the process dictionary before and after a test, only (a sorted list of) qlc keys are compared.
2017-10-27stdlib: Implement normalize/1Péter Dimitrov
Implements the following Syntax-Based Normalizations: - Case Normalization - Percent-Encoding Normalization - Path Segment Normalization - Scheme-Based Normalization - HTTP(S) - Basic support for FTP, SSH, SFTP, TFTP
2017-10-27stdlib: Allow undefined port in uri_map()Péter Dimitrov
uri_map() updated to allow 'undefined' ports in order to align the implementation with RFC 3986: port = *DIGIT An 'undefined' port is mapped to a ":" during recompose operation.
2017-10-26stdlib: Update documentation, error tuplesPéter Dimitrov
2017-10-25stdlib: Refactor dissect_queryPéter Dimitrov
2017-10-25stdlib: Refactor compose_queryPéter Dimitrov
2017-10-24stdlib: Refactor parsed binary calculationPéter Dimitrov
2017-10-24stdlib: Fix title in uri_string.xmlPéter Dimitrov
2017-10-24stdlib: Update supported separators (query string)Péter Dimitrov
Update list of supported separators: - escaped_amp (default): "&" - amp: "&" - semicolon: ";"
2017-10-23stdlib: Update documentation (uri_string)Péter Dimitrov
2017-10-23stdlib: Improve error handlingPéter Dimitrov
2017-10-23stdlib: Implement compose_query and dissect_queryPéter Dimitrov
2017-10-23stdlib: Improve support of mixed lists (transcode)Péter Dimitrov
- transcode/2 flattens input lists in order to be able to handle lists with percent-encoded parts that are split into muliple list and binary segments. - Add additional tests for transcoding mixed lists.
2017-10-23stdlib: Change handling of queries ["?" query]Péter Dimitrov
Previously when parsing queries the first "?" was part of the parsed query in the result Map. This behavior has been changed to follow the patterns used with other URI components and to not include the special character(s) that mark the start of a specific component.
2017-10-23stdlib: Implement transcode/2.Péter Dimitrov
2017-10-23stdlib: Add property tests, bugfixesPéter Dimitrov
- Add property tests using PropEr. - Add new testcases to uri_string_SUITE. - Improve calculation of parsed binary. - Verify if input to parse() is UTF8 encoded. - Update is_valid_map(): added check for path and host.
2017-10-23stdlib: Improve calculation of parsed binaryPéter Dimitrov
- Improved calculation of parsed binary. - Added tests for special corner cases. - Fixed dialyzer warnings.
2017-10-23stdlib: Implement recomposePéter Dimitrov
- Implemented recompose function with percent-encoding and validation of IPv4/IPv6 addresses. - Added test for recompose that uses a generated test vector (URI combinations based on a fix set of URI components). - Added test for parse-recompose using a generated test vector. - Removed parsing functions for lists. Lists are converted to binary before parsing.
2017-10-23stdlib: Add support to parse percent-encoded URIsPéter Dimitrov
2017-10-23stdlib: Add support for parsing IPv4 and IPv6Péter Dimitrov
2017-10-23stdlib: Implement uri_string:parsePéter Dimitrov
2017-10-23stdlib: Add API and doc of uri_string modulePéter Dimitrov