VSS.Characters

Entities

Simple Types

Subtypes

Subprograms

Description

Data type to represent individual abstract character

Cased_Letter

subtype Cased_Letter is
  General_Category range Uppercase_Letter .. Titlecase_Letter;

General_Category

type General_Category is
  (Uppercase_Letter,
   Lowercase_Letter,
   Titlecase_Letter,
   Modifier_Letter,
   Other_Letter,
   Nonspacing_Mark,
   Spacing_Mark,
   Enclosing_Mark,
   Decimal_Number,
   Letter_Number,
   Other_Number,
   Connector_Punctuation,
   Dash_Punctuation,
   Open_Punctuation,
   Close_Punctuation,
   Initial_Punctuation,
   Final_Punctuation,
   Other_Punctuation,
   Math_Symbol,
   Currency_Symbol,
   Modifier_Symbol,
   Other_Symbol,
   Space_Separator,
   Line_Separator,
   Paragraph_Separator,
   Control,
   Format,
   Surrogate,
   Private_Use,
   Unassigned);
Enumeration Literal
Uppercase_Letter
Lowercase_Letter
Titlecase_Letter
Modifier_Letter
Other_Letter
Nonspacing_Mark
Spacing_Mark
Enclosing_Mark
Decimal_Number
Letter_Number
Other_Number
Connector_Punctuation
Dash_Punctuation
Open_Punctuation
Close_Punctuation
Initial_Punctuation
Final_Punctuation
Other_Punctuation
Math_Symbol
Currency_Symbol
Modifier_Symbol
Other_Symbol
Space_Separator
Line_Separator
Paragraph_Separator
Control
Format
Surrogate
Private_Use
Unassigned

Get_Cased

function Get_Cased (Self : Virtual_Character) return Boolean

Return value of the Cased property of the character.

Parameters
Self
Return Value

Get_General_Category

function Get_General_Category
  (Self : Virtual_Character'Base) return General_Category

Return General_Category property for given character.

Parameters
Self
Return Value

Get_Lowercase

function Get_Lowercase (Self : Virtual_Character) return Boolean

Return value of the Lowercase property of the character.

Note, value of Lowercase property of the given character may be different from value of Is_Lowercase function of string composed from the same character.

Parameters
Self
Return Value

Get_Lowercase_Mapping

function Get_Lowercase_Mapping
  (Self   : Virtual_Character) return VSS.Strings.Virtual_String

Return value of the Lowercase_Mapping property of the character with tailoring by the locale of the current task.

Parameters
Self
Return Value

Get_Lowercase_Mapping

function Get_Lowercase_Mapping
  (Self   : Virtual_Character;
   Locale : VSS.Locales.Locale) return VSS.Strings.Virtual_String

Return value of the Lowercase_Mapping property of the character with tailoring by the given locale.

Parameters
Self
Locale
Return Value

Get_Simple_Lowercase_Mapping

function Get_Simple_Lowercase_Mapping
  (Self : Virtual_Character) return Virtual_Character

Return value of the Simple_Lowercase_Mapping property of the character.

Parameters
Self
Return Value

Get_Simple_Titlecase_Mapping

function Get_Simple_Titlecase_Mapping
  (Self : Virtual_Character) return Virtual_Character

Return value of the Simple_Titlecase_Mapping property of the character.

Parameters
Self
Return Value

Get_Simple_Uppercase_Mapping

function Get_Simple_Uppercase_Mapping
  (Self : Virtual_Character) return Virtual_Character

Return value of the Simple_Uppercase_Mapping property of the character.

Parameters
Self
Return Value

Get_Titlecase_Mapping

function Get_Titlecase_Mapping
  (Self : Virtual_Character) return VSS.Strings.Virtual_String

Return value of the Titlecase_Mapping property of the character with tailoring by the locale of the current task.

Parameters
Self
Return Value

Get_Titlecase_Mapping

function Get_Titlecase_Mapping
  (Self   : Virtual_Character;
   Locale : VSS.Locales.Locale) return VSS.Strings.Virtual_String

Return value of the Titlecase_Mapping property of the character with tailoring by the given locale.

Parameters
Self
Locale
Return Value

Get_Uppercase

function Get_Uppercase (Self : Virtual_Character) return Boolean

Return value of the Uppercase property of the character.

Note, value of Uppercase property of the given character may be different from value of Is_Lowercase function of string composed from the same character.

Parameters
Self
Return Value

Get_Uppercase_Mapping

function Get_Uppercase_Mapping
  (Self : Virtual_Character) return VSS.Strings.Virtual_String

Return value of the Uppercase_Mapping property of the character with tailoring by the locale of the current task.

Parameters
Self
Return Value

Get_Uppercase_Mapping

function Get_Uppercase_Mapping
  (Self   : Virtual_Character;
   Locale : VSS.Locales.Locale) return VSS.Strings.Virtual_String

Return value of the Uppercase_Mapping property of the character with tailoring by the given locale.

Parameters
Self
Locale
Return Value

Is_Control

function Is_Control (Self : Virtual_Character) return Boolean

Return True when character belong to Format type, which includes characters with general category Control.

Parameters
Self
Return Value

Is_Format

function Is_Format (Self : Virtual_Character) return Boolean

Return True when character belong to Format type, which includes characters with general category Format, Line_Separator, and Paragraph_Separator.

Parameters
Self
Return Value

Is_Graphic

function Is_Graphic (Self : Virtual_Character) return Boolean

Return True when character belong to Graphic type, which includes characters with general category Letter, Mark, Number, Punctuation, Symbol, and Space_Separator.

Parameters
Self
Return Value

Is_Valid_Virtual_Character

function Is_Valid_Virtual_Character
  (Self : Virtual_Character'Base) return Boolean

Returns True when given character is inside the range of the allowed characters and outside of the range of the

Parameters
Self
Return Value

Letter

subtype Letter is
  General_Category range Uppercase_Letter .. Other_Letter;

Mark

subtype Mark is
  General_Category range Nonspacing_Mark .. Enclosing_Mark;

Number

subtype Number is
  General_Category range Decimal_Number .. Other_Number;

Other

subtype Other is
  General_Category range Control .. Unassigned;

Punctuation

subtype Punctuation is
  General_Category range Connector_Punctuation .. Other_Punctuation;

Separator

subtype Separator is
  General_Category range Space_Separator .. Paragraph_Separator;

Symbol

subtype Symbol is
  General_Category range Math_Symbol .. Other_Symbol;

Virtual_Character

type Virtual_Character is new VSS.Unicode.Scalar_Value_Character;