aboutsummaryrefslogtreecommitdiff
path: root/src/framework/standard/args.rs
Commit message (Collapse)AuthorAgeFilesLines
* Move unit tests into sourceZeyla Hellyer2018-08-011-0/+433
| | | | | | | | | Move the unit tests into the relevant source files. There's no need for them to be seprate, especially when the `tests` directory is meant to be for integration tests. The deserialization tests that include JSON files are still in the `tests` dir, along with the public prelude re-export tests.
* Some minor changes to `Args`acdenisSK2018-07-211-10/+9
| | | | | | | - use `?` rather than unwrap - Remove the `PartialEq<TokenKind> impl; it's not needed anymore. - Inline `at_end` because why not. - Split the second part of the while condition as an if inside the body.
* Use `current` to figure out the end quoteacdenisSK2018-07-191-17/+4
|
* Style LineacdenisSK2018-07-191-0/+1
|
* Merge `Token` and `TokenOwned`acdenisSK2018-07-191-26/+10
|
* Use an `Option` to denote endacdenisSK2018-07-191-18/+7
|
* Add docs for `Args::new`acdenisSK2018-07-131-0/+27
|
* Fix doc links with no anchorZeyla Hellyer2018-07-111-0/+2
|
* Don't assume all characters at end are 1-lengthacdenisSK2018-07-061-2/+17
| | | | Unicode characters usually span out to more than 1-length. This would cause crashes when they appeared at the end
* Miscellaneous changes in ArgsacdenisSK2018-06-211-267/+286
| | | | | | - Do not be lazy and DO add an example for the `_*` methods. - Reorganize the methods so they're more coherent. - Use the `rest` method than to rely on deref (which in turn relies on `full`).
* Fix Args testZeyla Hellyer2018-06-171-76/+76
| | | | | | | The args test had a string suffixed with `#`, as if it were a raw string, when it was not. This has been fixed by making it a raw string, which has the side-effect of not needing to escape double quotation marks in the string itself.
* Force `find(_n)` to be quote awareacdenisSK2018-06-171-17/+18
|
* Examples speak more than wordsacdenisSK2018-06-091-13/+67
|
* Add the missing `rest` methodacdenisSK2018-06-081-6/+47
|
* Revamp `Args` from the ground-up (#326)Alex M. M2018-06-041-224/+331
|
* Do some little optimizations on `find(_n)`acdenisSK2018-05-271-8/+17
|
* Further improve `Args` (the struct) documentationacdenisSK2018-05-271-10/+12
|
* Remove "if length == 1" branchacdenisSK2018-05-261-27/+13
|
* Switch to match_indices for occurencesacdenisSK2018-05-261-1/+1
|
* Be consistent with the note styleacdenisSK2018-04-061-1/+3
|
* Improve docs for `Args`acdenisSK2018-04-061-19/+36
|
* Add `full_quoted`acdenisSK2018-04-051-1/+52
|
* Fix is_empty behaviour againacdenisSK2018-04-041-20/+31
| | | | And fix some style issues.
* Short-circuit on an erroracdenisSK2018-04-021-37/+14
| | | | And delegate most of is_empty checking to the internal parse function
* Refactor imports/exports to use nested groups and better formattingacdenisSK2018-03-291-3/+5
|
* Properly check if the input is emptyacdenisSK2018-02-241-7/+31
|
* Add `iter_quoted`acdenisSK2017-12-241-10/+28
|
* Fix `multiple_quoted` (#241)Lakelezz2017-12-241-50/+50
|
* Better support for multiple delimiters on `Args` (#239)Lakelezz2017-12-221-154/+239
|
* Actually fix `Args`'s `parse` and add a few tests (#236)Lakelezz2017-12-181-8/+3
|
* Fix ifsacdenisSK2017-12-181-6/+6
|
* Fix multiple char delimitersacdenisSK2017-12-181-4/+9
|
* Add a special `len` to `Args`acdenisSK2017-12-181-0/+17
|
* Fix doc-tests and `single_zc`acdenisSK2017-12-171-17/+19
|
* Avoid an unwrap in args::parse_quotesZeyla Hellyer2017-12-161-1/+1
|
* Fix most clippy lints, take more refeerncesZeyla Hellyer2017-12-161-9/+12
| | | | | Fix clippy lints and subsequently accept references for more function parameters.
* Revamp the internals of `Args`acdenisSK2017-12-161-123/+153
| | | | Fixes #180, however this partially breaks `single_zc` and `multiple_quoted`, but since they're minor it's better to fix them later for now.
* Convert from macro to ? (#226)Mei Boudreau2017-11-231-1/+1
|
* Re-order use statements alphabeticallyZeyla Hellyer2017-11-111-1/+1
|
* Rename `list` to be consistent with `multiple_quoted`acdenisSK2017-11-061-2/+2
|
* Fix framework Args testsZeyla Hellyer2017-11-011-71/+71
| | | | | The tests were left untouched after a breaking change, resulting in them failing.
* Merge v0.4.2acdenisSK2017-10-241-1/+237
|\
| * Add "zero-copy" parsingacdenisSK2017-10-211-0/+82
| |
| * Add a missing breakacdenisSK2017-10-181-0/+1
| |
| * `assert` -> `assert_eq`acdenisSK2017-10-181-2/+2
| |
| * Add `PartialEq` impls and doc tests to `Args`acdenisSK2017-10-181-1/+154
| |
* | Update to account for changes made in 0.4.1acdenisSK2017-10-141-12/+37
|\|
| * Add try_opt macro for substituteMei Boudreau2017-10-121-8/+5
| |
| * Add an iterator for `Args`acdenisSK2017-10-101-9/+33
| |
| * Add some docs to `Args`acdenisSK2017-10-101-0/+4
| |