# api: rename and deprecate a bunch of functions · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/02893d80cf013b14708d2262e9ecf0037cf6b3f2)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 02893d80cf013b14708d2262e9ecf0037cf6b3f2

Requested commit: 02893d80cf013b14708d2262e9ecf0037cf6b3f2

Commit: 02893d80cf013b14708d2262e9ecf0037cf6b3f2

Tree: 3743f76a8e77500c8220e67dae3e3b654056c885

Author: r00ster91

Committer: r00ster91

## Message

```
api: rename and deprecate a bunch of functions

`isAlNum` and `isAlpha`:
1. I think these names are a bit cryptic.
2. `isAlpha` is a bit ambiguous: is it alpha*numeric* or alpha*betic*?
   This is why I renamed `isAlpha` to `isAlphabetic`.
3. For consistency and because `isAlNum` looks weird, I renamed it to `isAlphanumeric`.

`isCntrl`:
1. It's cryptic and hard to find when you look for it.
2. We don't save a lot of space writing it this way.
3. It's closer to the name of the `control_code` struct.

`isSpace`:
1. The name is ambiguous and misleading.

`spaces`:
1. Ditto

`isXDigit`:
1. The name is extremely cryptic.
2. The function is very hard to find by its name.

```

## Parents

- [d178df773a6a11eff0b7f06f41fe26930c228b91](https://git.cafe/gitcafe/zig/commit/d178df773a6a11eff0b7f06f41fe26930c228b91?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/02893d80cf013b14708d2262e9ecf0037cf6b3f2?format=markdown)
