Nazara Engine  0.4
A fast, complete, cross-platform API designed for game development
Nz::Unicode Class Reference

Core class that represents a Unicode character. More...

Public Types

enum  Category : UInt16 {
  Category_NoCategory = 0, Category_Letter = 0x01, Category_Letter_Lowercase = Category_Letter | 0x0100, Category_Letter_Modifier = Category_Letter | 0x0200,
  Category_Letter_Other = Category_Letter | 0x0400, Category_Letter_Titlecase = Category_Letter | 0x0800, Category_Letter_Uppercase = Category_Letter | 0x1000, Category_Mark = 0x02,
  Category_Mark_Enclosing = Category_Mark | 0x100, Category_Mark_NonSpacing = Category_Mark | 0x200, Category_Mark_SpacingCombining = Category_Mark | 0x400, Category_Number = 0x04,
  Category_Number_DecimalDigit = Category_Number | 0x100, Category_Number_Letter = Category_Number | 0x200, Category_Number_Other = Category_Number | 0x400, Category_Other = 0x08,
  Category_Other_Control = Category_Other | 0x0100, Category_Other_Format = Category_Other | 0x0200, Category_Other_NotAssigned = Category_Other | 0x0400, Category_Other_PrivateUse = Category_Other | 0x0800,
  Category_Other_Surrogate = Category_Other | 0x1000, Category_Punctuation = 0x10, Category_Punctuation_Close = Category_Punctuation | 0x0100, Category_Punctuation_Connector = Category_Punctuation | 0x0200,
  Category_Punctuation_Dash = Category_Punctuation | 0x0400, Category_Punctuation_FinalQuote = Category_Punctuation | 0x0800, Category_Punctuation_InitialQuote = Category_Punctuation | 0x1000, Category_Punctuation_Open = Category_Punctuation | 0x2000,
  Category_Punctuation_Other = Category_Punctuation | 0x4000, Category_Separator = 0x20, Category_Separator_Line = Category_Separator | 0x0100, Category_Separator_Paragraph = Category_Separator | 0x0200,
  Category_Separator_Space = Category_Separator | 0x0400, Category_Symbol = 0x40, Category_Symbol_Currency = Category_Symbol | 0x0100, Category_Symbol_Math = Category_Symbol | 0x0200,
  Category_Symbol_Modifier = Category_Symbol | 0x0400, Category_Symbol_Other = Category_Symbol | 0x0800
}
 
enum  Direction : UInt8 {
  Direction_Arabic_Letter, Direction_Arabic_Number, Direction_Boundary_Neutral, Direction_Common_Separator,
  Direction_European_Number, Direction_European_Separator, Direction_European_Terminator, Direction_Left_To_Right,
  Direction_Left_To_Right_Embedding, Direction_Left_To_Right_Override, Direction_Nonspacing_Mark, Direction_Other_Neutral,
  Direction_Paragraph_Separator, Direction_Pop_Directional_Format, Direction_Right_To_Left, Direction_Right_To_Left_Embedding,
  Direction_Right_To_Left_Override, Direction_Segment_Separator, Direction_White_Space
}
 

Static Public Member Functions

static Category GetCategory (char32_t character)
 Gets the category of the character. More...
 
static Direction GetDirection (char32_t character)
 Gets the direction of reading of the character. More...
 
static char32_t GetLowercase (char32_t character)
 Gets the lower case of the character. More...
 
static char32_t GetTitlecase (char32_t character)
 Gets the title case of the character. More...
 
static char32_t GetUppercase (char32_t character)
 Gets the upper case of the character. More...
 

Detailed Description

Core class that represents a Unicode character.

Member Function Documentation

◆ GetCategory()

Unicode::Category Nz::Unicode::GetCategory ( char32_t  character)
static

Gets the category of the character.

Returns
Unicode category
Parameters
characterCharacter to get assignated category

◆ GetDirection()

Unicode::Direction Nz::Unicode::GetDirection ( char32_t  character)
static

Gets the direction of reading of the character.

Returns
Unicode direction
Parameters
characterCharacter to get assignated direction

◆ GetLowercase()

char32_t Nz::Unicode::GetLowercase ( char32_t  character)
static

Gets the lower case of the character.

Returns
Unicode lower
Parameters
characterCharacter to get assignated lower case
Remarks
Only handling ASCII

◆ GetTitlecase()

char32_t Nz::Unicode::GetTitlecase ( char32_t  character)
static

Gets the title case of the character.

Returns
Unicode title
Parameters
characterCharacter to get assignated title case
Remarks
Only handling ASCII

◆ GetUppercase()

char32_t Nz::Unicode::GetUppercase ( char32_t  character)
static

Gets the upper case of the character.

Returns
Unicode upper
Parameters
characterCharacter to get assignated upper case
Remarks
Only handling ASCII

The documentation for this class was generated from the following files: