Skip to content

Remove references to deprecated functions in documentation; refer to AsChar methods instead #1857

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions doc/choosing_a_combinator.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,14 +127,14 @@ The following parsers could be found on [docs.rs number section](https://docs.rs

Use these functions with a combinator like `take_while`:

- [`is_alphabetic`](https://docs.rs/nom/latest/nom/character/fn.is_alphabetic.html): Tests if byte is ASCII alphabetic: `[A-Za-z]`
- [`is_alphanumeric`](https://docs.rs/nom/latest/nom/character/fn.is_alphanumeric.html): Tests if byte is ASCII alphanumeric: `[A-Za-z0-9]`
- [`is_digit`](https://docs.rs/nom/latest/nom/character/fn.is_digit.html): Tests if byte is ASCII digit: `[0-9]`
- [`is_hex_digit`](https://docs.rs/nom/latest/nom/character/fn.is_hex_digit.html): Tests if byte is ASCII hex digit: `[0-9A-Fa-f]`
- [`is_oct_digit`](https://docs.rs/nom/latest/nom/character/fn.is_oct_digit.html): Tests if byte is ASCII octal digit: `[0-7]`
- [`AsChar::is_alpha`](https://docs.rs/nom/latest/nom/trait.AsChar.html#tymethod.is_alpha): Tests if byte is ASCII alphabetic: `[A-Za-z]`
- [`AsChar::is_alphanum`](https://docs.rs/nom/latest/nom/trait.AsChar.html#tymethod.is_alphanum): Tests if byte is ASCII alphanumeric: `[A-Za-z0-9]`
- [`AsChar::is_dec_digit`](https://docs.rs/nom/latest/nom/trait.AsChar.html#tymethod.is_dec_digit): Tests if byte is ASCII digit: `[0-9]`
- [`AsChar::is_hex_digit`](https://docs.rs/nom/latest/nom/trait.AsChar.html#tymethod.is_hex_digit): Tests if byte is ASCII hex digit: `[0-9A-Fa-f]`
- [`AsChar::is_oct_digit`](https://docs.rs/nom/latest/nom/trait.AsChar.html#tymethod.is_oct_digit): Tests if byte is ASCII octal digit: `[0-7]`
- [`is_bin_digit`](https://docs.rs/nom/latest/nom/character/fn.is_bin_digit.html): Tests if byte is ASCII binary digit: `[0-1]`
- [`is_space`](https://docs.rs/nom/latest/nom/character/fn.is_space.html): Tests if byte is ASCII space or tab: `[ \t]`
- [`is_newline`](https://docs.rs/nom/latest/nom/character/fn.is_newline.html): Tests if byte is ASCII newline: `[\n]`
- [`AsChar::is_space`](https://docs.rs/nom/latest/nom/trait.AsChar.html#tymethod.is_space): Tests if byte is ASCII space or tab: `[ \t]`
- [`AsChar::is_newline`](https://docs.rs/nom/latest/nom/trait.AsChar.html#tymethod.is_newline): Tests if byte is ASCII newline: `[\n]`

Alternatively there are ready to use functions:

Expand Down