<!--
SPDX-FileCopyrightText: 2022 - 2024 Soni L.
SPDX-FileCopyrightText: 2022 - 2024 Ali Sajid Imami
SPDX-License-Identifier: CC0-1.0
-->
# A replacement for char
[](https://github.com/AliSajid/charx/actions/workflows/ci.yaml)



[](https://api.reuse.software/info/github.com/AliSajid/brainfoamkit)
[](https://gitpod.io/#https://github.com/AliSajid/charx)
[](https://github.com/EthicalSource/contributor_covenant)
This crate provides a replacement for the `char` type that is more ergonomic to use.
Because Rust's `char::is_ascii*` family of functions takes `&self`, it's impossible to use them as patterns. This is inconsistent with the rest of `char::is_*`, which takes `self`.
This crate provides `char`-taking variants of the `is_ascii*` family of functions.
## Builds
| | Stable | Beta | Nightly | MSRV (1.59.0) |
| ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Linux |  |  |  |  |
| Windows |  |  |  |  |
| macos |  |  |  |  |
## License
`charx` is distributed under the Zero Clause BSD license. See [LICENSE](LICENSE) for details of the license.
## Contributing
While this is a single crate with a single focus, We're happy to accept contributions. Pull Requests are welcome. Please see [CONTRIBUTING.md](CONTRIBUTING.md) for details.
You can also use the link below to open an IDE in the cloud to contribute to this project.
[](https://gitpod.io/#https://github.com/AliSajid/charx)