mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-06 06:38:20 +00:00
Added comment to is_digit
This commit is contained in:
committed by
Jeroen van Rijn
parent
673adf30c3
commit
263bc8cc7e
@@ -131,6 +131,17 @@ is_title :: proc(r: rune) -> bool {
|
||||
return is_upper(r) && is_lower(r)
|
||||
}
|
||||
|
||||
/*
|
||||
This function determincs if a rune is a digit. To be a digit the
|
||||
charage either has a Numeric_Type of Digit or Decimal.
|
||||
|
||||
Inputs:
|
||||
- r: The rune to check if it is a digit.
|
||||
|
||||
Returns:
|
||||
`true` if the rune `r` is a digit, `false` in all other cases
|
||||
|
||||
*/
|
||||
@(require_results)
|
||||
is_digit :: proc(r: rune) -> bool {
|
||||
if r <= MAX_LATIN1 {
|
||||
|
||||
Reference in New Issue
Block a user