Bond 0.9
Bond Standard Library API Documentation
Loading...
Searching...
No Matches
type.bond

Functions for testing the values of types. More...

Functions

bool Bond::IsAlnum (int c)
 Returns whether a character is alphanumeric (i.e. a decimal digit or an upper or lower case letter).
bool Bond::IsAlpha (int c)
 Returns whether a character is alphabetic (.i.e. an upper or lower case letter).
bool Bond::IsBlank (int c)
 Returns whether a character is a whitespace character used for separating words in a sentence.
bool Bond::IsCntrl (int c)
 Returns whether a character is a control character (i.e. a non-printable character).
bool Bond::IsDigit (int c)
 Returns whether a character is a decimal digit.
bool Bond::IsGraph (int c)
 Returns whether a character has a graphical representation (i.e. it is printable and is not a space).
bool Bond::IsLower (int c)
 Returns whether a character is a lower case letter.
bool Bond::IsPrint (int c)
 Returns whether a character is a printable character (i.e. it occupies space on a display).
bool Bond::IsPunct (int c)
 Returns whether a character is a punctuation character.
bool Bond::IsSpace (int c)
 Returns whether a character is a whitespace character.
bool Bond::IsUpper (int c)
 Returns whether a character is an upper case letter.
bool Bond::IsXDigit (int c)
 Returns whether a character is a hexadecimal digit character. (i.e. the digits 0 through 9 and upper and lower case letters A through F).
int Bond::ToLower (int c)
 Returns an upper case letter converted to lower case. If the given character is not an upper case letter, it is returned unchanged.
int Bond::ToUpper (int c)
 Returns lower case letter converted to upper case. If the given character is not a lower case letter, it is returned unchanged.

Detailed Description

Functions for testing the values of types.

include "type.bond";

Function Documentation

◆ IsAlnum()

bool Bond::IsAlnum ( int c)

Returns whether a character is alphanumeric (i.e. a decimal digit or an upper or lower case letter).

◆ IsAlpha()

bool Bond::IsAlpha ( int c)

Returns whether a character is alphabetic (.i.e. an upper or lower case letter).

◆ IsBlank()

bool Bond::IsBlank ( int c)

Returns whether a character is a whitespace character used for separating words in a sentence.

◆ IsCntrl()

bool Bond::IsCntrl ( int c)

Returns whether a character is a control character (i.e. a non-printable character).

◆ IsDigit()

bool Bond::IsDigit ( int c)

Returns whether a character is a decimal digit.

◆ IsGraph()

bool Bond::IsGraph ( int c)

Returns whether a character has a graphical representation (i.e. it is printable and is not a space).

◆ IsLower()

bool Bond::IsLower ( int c)

Returns whether a character is a lower case letter.

◆ IsPrint()

bool Bond::IsPrint ( int c)

Returns whether a character is a printable character (i.e. it occupies space on a display).

◆ IsPunct()

bool Bond::IsPunct ( int c)

Returns whether a character is a punctuation character.

◆ IsSpace()

bool Bond::IsSpace ( int c)

Returns whether a character is a whitespace character.

◆ IsUpper()

bool Bond::IsUpper ( int c)

Returns whether a character is an upper case letter.

◆ IsXDigit()

bool Bond::IsXDigit ( int c)

Returns whether a character is a hexadecimal digit character. (i.e. the digits 0 through 9 and upper and lower case letters A through F).

◆ ToLower()

int Bond::ToLower ( int c)

Returns an upper case letter converted to lower case. If the given character is not an upper case letter, it is returned unchanged.

◆ ToUpper()

int Bond::ToUpper ( int c)

Returns lower case letter converted to upper case. If the given character is not a lower case letter, it is returned unchanged.