Starboard Module Reference: character.h

Provides functions for interacting with characters.

Functions

SbCharacterIsAlphanumeric

Description

Indicates whether the given 8-bit character c (as an int) is alphanumeric in the current locale.

Declaration and definitions

SB_EXPORT bool SbCharacterIsAlphanumeric(int c);

#include "starboard/character.h"

bool SbCharacterIsAlphanumeric(int /*c*/) {
  return false;
}

Parameters

Parameters
int
c
The character to be evaluated.

SbCharacterIsDigit

Description

Indicates whether the given 8-bit character c (as an int) is a decimal digit in the current locale.

Declaration and definitions

SB_EXPORT bool SbCharacterIsDigit(int c);

#include "starboard/character.h"

bool SbCharacterIsDigit(int /*c*/) {
  return false;
}

Parameters

Parameters
int
c
The character to be evaluated.

SbCharacterIsHexDigit

Description

Indicates whether the given 8-bit character c (as an int) is a hexadecimal in the current locale.

Declaration and definitions

SB_EXPORT bool SbCharacterIsHexDigit(int c);

#include "starboard/character.h"

bool SbCharacterIsHexDigit(int /*c*/) {
  return false;
}

Parameters

Parameters
int
c
The character to be evaluated.

SbCharacterIsSpace

Description

Indicates whether the given 8-bit character c (as an int) is a space in the current locale.

Declaration and definitions

SB_EXPORT bool SbCharacterIsSpace(int c);

#include "starboard/character.h"

bool SbCharacterIsSpace(int /*c*/) {
  return false;
}

Parameters

Parameters
int
c
The character to be evaluated.

SbCharacterIsUpper

Description

Indicates whether the given 8-bit character c (as an int) is uppercase in the current locale.

Declaration and definitions

SB_EXPORT bool SbCharacterIsUpper(int c);

#include "starboard/character.h"

bool SbCharacterIsUpper(int /*c*/) {
  return false;
}

Parameters

Parameters
int
c
The character to be evaluated.

SbCharacterToLower

Description

Converts the given 8-bit character (as an int) to lowercase in the current locale and returns an 8-bit character. If there is no lowercase version of the character, or the character is already lowercase, the function just returns the character as-is.

Declaration and definitions

SB_EXPORT int SbCharacterToLower(int c);

#include "starboard/character.h"

int SbCharacterToLower(int c) {
  return c;
}

Parameters

Parameters
int
c
The character to be converted.

SbCharacterToUpper

Description

Converts the given 8-bit character (as an int) to uppercase in the current locale and returns an 8-bit character. If there is no uppercase version of the character, or the character is already uppercase, the function just returns the character as-is.

Declaration and definitions

SB_EXPORT int SbCharacterToUpper(int c);

#include "starboard/character.h"

int SbCharacterToUpper(int c) {
  return c;
}

Parameters

Parameters
int
c
The character to be converted.