layout: doc title: “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

#include "starboard/character.h"

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

Parameters

SbCharacterIsDigit

Description

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

Declaration and definitions

#include "starboard/character.h"

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

Parameters

SbCharacterIsHexDigit

Description

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

Declaration and definitions

#include "starboard/character.h"

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

Parameters

SbCharacterIsSpace

Description

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

Declaration and definitions

#include "starboard/character.h"

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

Parameters

SbCharacterIsUpper

Description

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

Declaration and definitions

#include "starboard/character.h"

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

Parameters

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

#include "starboard/character.h"

int SbCharacterToLower(int c) {
  return c;
}

Parameters

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

#include "starboard/character.h"

int SbCharacterToUpper(int c) {
  return c;
}

Parameters