B u s L o g i c:- prolog, code, chatter.

Purity: A Horn Clause Only library for Prolog

Up: Purity

pchar Domain

To use, import the following module

:- use_module(library(pstring)).

Character Predicates


pchar_upper(Char, UpperChar).

UpperChar is the uppercase version of Char


pchar_lower(Char, LowerChar).

LowerChar is the lowercase version of Char


pchar_type(Char, Type).

Type is the major type Char

Type is one of alpha, digit, symbol, or whitespace


pchar_lower(Char, Code).

Code is the integer value of Char (ascii code)