
Offers UByte constants for the ASCII character set, aiding in low-level parser implementation with functionalities for checking whitespace, tabs, and hexadecimal digits.
= K-Libs Multi-Platform Library Repo Template :source-highlighter: highlightjs :gh-group: k-libs :gh-name: k-ubyte-ascii :lib-package: io.klibs.ascii.ubyte :lib-group: io.k-libs :lib-name: ubyte-ascii :lib-version: 1.1.0 :lib-feature: 1.1.0
image:https://img.shields.io/github/license/{gh-group}/{gh-name}[title="License"] image:https://img.shields.io/badge/docs-dokka-ff69b4[link="https://{gh-group}.github.io/{gh-name}/dokka/{lib-feature}/{lib-name}/{lib-package}/index.html"] image:https://img.shields.io/maven-central/v/{lib-group}/{lib-name}[link="https://search.maven.org/artifact/{lib-group}/{lib-name}"]
The ASCII standard character set as UByte constants.
Helpful for implementing low level parsers.
== Import
== Examples
internal fun UByte.isWhitespace() = this == ASCII_SPACE
internal fun UByte.isTab() = this == ASCII_TAB
internal fun UByte.isHexDigit() = when(this) { in ASCII_DIGIT_0 .. ASCII_DIGIT_9 -> true in ASCII_UPPER_A .. ASCII_UPPER_F -> true in ASCII_LOWER_A .. ASCII_LOWER_F -> true else -> false }
== Version History
[%header, cols="1m,2,7"] |=== | Version | Documentation | Notes
| v1.1.0 | link:https://{gh-group}.github.io/{gh-name}/dokka/1.1.0/{lib-name}/{lib-package}/index.html[Dokka] | Add common aliases and expanded alternatives for control characters.
| v1.0.0 | link:https://{gh-group}.github.io/{gh-name}/dokka/1.0.0/{lib-name}/{lib-package}/index.html[Dokka] | Initial Release |===
= K-Libs Multi-Platform Library Repo Template :source-highlighter: highlightjs :gh-group: k-libs :gh-name: k-ubyte-ascii :lib-package: io.klibs.ascii.ubyte :lib-group: io.k-libs :lib-name: ubyte-ascii :lib-version: 1.1.0 :lib-feature: 1.1.0
image:https://img.shields.io/github/license/{gh-group}/{gh-name}[title="License"] image:https://img.shields.io/badge/docs-dokka-ff69b4[link="https://{gh-group}.github.io/{gh-name}/dokka/{lib-feature}/{lib-name}/{lib-package}/index.html"] image:https://img.shields.io/maven-central/v/{lib-group}/{lib-name}[link="https://search.maven.org/artifact/{lib-group}/{lib-name}"]
The ASCII standard character set as UByte constants.
Helpful for implementing low level parsers.
== Import
== Examples
internal fun UByte.isWhitespace() = this == ASCII_SPACE
internal fun UByte.isTab() = this == ASCII_TAB
internal fun UByte.isHexDigit() = when(this) { in ASCII_DIGIT_0 .. ASCII_DIGIT_9 -> true in ASCII_UPPER_A .. ASCII_UPPER_F -> true in ASCII_LOWER_A .. ASCII_LOWER_F -> true else -> false }
== Version History
[%header, cols="1m,2,7"] |=== | Version | Documentation | Notes
| v1.1.0 | link:https://{gh-group}.github.io/{gh-name}/dokka/1.1.0/{lib-name}/{lib-package}/index.html[Dokka] | Add common aliases and expanded alternatives for control characters.
| v1.0.0 | link:https://{gh-group}.github.io/{gh-name}/dokka/1.0.0/{lib-name}/{lib-package}/index.html[Dokka] | Initial Release |===