https://github.com/mintlu8/identconv
https://github.com/mintlu8/identconv
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mintlu8/identconv
- Owner: mintlu8
- License: mit
- Created: 2023-09-18T00:53:17.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-26T03:33:52.000Z (almost 3 years ago)
- Last Synced: 2025-09-28T10:49:50.505Z (9 months ago)
- Language: Rust
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# identconv
Convenient macros that turn `Idents` or ident like
string literals into `Idents` or `Strings` by case converting.
## Macros
| Macro | To Case | Output |
| ----- | --- | --- |
| `lower!()` | flatlowercase | `Ident` |
| `upper!()` | FLATUPPERCASE | `Ident` |
| `snake!()` | snake_case | `Ident` |
| `usnake!()` | UPPER_SNAKE_CASE | `Ident` |
| `camel!()` | camelCase | `Ident` |
| `pascal!()` | PascalCase | `Ident` |
| `lower_strify!()` | flatlowercase | `&'static str` |
| `upper_strify!()` | FLATUPPERCASE | `&'static str` |
| `snake_strify!()` | snake_case | `&'static str` |
| `usnake_strify!()` | UPPER_SNAKE_CASE | `&'static str` |
| `camel_strify!()` | camelCase | `&'static str` |
| `pascal_strify!()` | PascalCase | `&'static str` |
| `kebab_strify!()` | kebab-case | `&'static str` |
| `ukebab_strify!()` | UPPER-KEBAB-CASE | `&'static str` |
| `train_strify!()` | Train-Case | `&'static str` |
| `english_lower!()` | lower case | `&'static str` |
| `english_upper!()` | UPPER CASE | `&'static str` |
| `english_title!()` | Title Case | `&'static str` |