Module: libc.ctype
Source: ./libc/ctype.reef
Overview
libc.ctype - C character type functions (FFI)
Direct access to C's ctype.h functions for performance-critical code. For pure Reef implementations, use core.chars instead.
Functions
fn toupper(c: int): int
fn tolower(c: int): int
fn isalpha(c: int): int
fn isdigit(c: int): int
fn isalnum(c: int): int
fn isspace(c: int): int
fn isupper(c: int): int
fn islower(c: int): int
fn isprint(c: int): int
fn ispunct(c: int): int
fn toupper(c: char): char
Converts lowercase letter to uppercase Non-lowercase characters are returned unchanged
fn tolower(c: char): char
Converts uppercase letter to lowercase Non-uppercase characters are returned unchanged
fn isalpha(c: char): int
Returns non-zero if c is an alphabetic character
fn isdigit(c: char): int
Returns non-zero if c is a digit ('0'-'9')
fn isalnum(c: char): int
Returns non-zero if c is alphanumeric
fn isspace(c: char): int
Returns non-zero if c is whitespace
fn isupper(c: char): int
Returns non-zero if c is uppercase
fn islower(c: char): int
Returns non-zero if c is lowercase
fn isprint(c: char): int
Returns non-zero if c is printable
fn ispunct(c: char): int
Returns non-zero if c is punctuation
Generated by reefc doc