unichar
Object Hierarchy:
Description:
[ SimpleType ]
[ GIR ( name = "gunichar" ) ]
[ CCode ( cname = "gunichar" , cprefix = "g_unichar_" , default_value = "0U" , get_value_function = "g_value_get_uint" , marshaller_type_name = "UINT" , set_value_function = "g_value_set_uint" , type_id = "G_TYPE_UINT" , type_signature = "u" ) ]
[ IntegerType ( rank = 7 ) ]
public struct unichar
[ GIR ( name = "gunichar" ) ]
[ CCode ( cname = "gunichar" , cprefix = "g_unichar_" , default_value = "0U" , get_value_function = "g_value_get_uint" , marshaller_type_name = "UINT" , set_value_function = "g_value_set_uint" , type_id = "G_TYPE_UINT" , type_signature = "u" ) ]
[ IntegerType ( rank = 7 ) ]
public struct unichar
Package: glib-2.0
Content:
Constants:
- public const string FORMAT
- public const string FORMAT_MODIFIER
- public const int MAX_DECOMPOSITION_LENGTH
The maximum length (in codepoints) of a compatibility or canonical decomposition of a single Unicode character.
Static methods:
- public static unichar max (unichar a, unichar b)
Calculates the maximum of a and b.
- public static unichar min (unichar a, unichar b)
Calculates the minimum of a and b.
Methods:
- public UnicodeBreakType break_type ()
Determines the break type of
c
. - public unichar clamp (unichar low, unichar high)
Ensures that x is between the limits set by low and high. If low is greater than high the result is undefined.
- public bool compose (unichar b, out unichar ch)
Performs a single composition step of the Unicode canonical composition algorithm.
- public bool decompose (out unichar a, out unichar b)
Performs a single decomposition step of the Unicode canonical decomposition algorithm.
- public int digit_value ()
Determines the numeric value of a character as a decimal digit.
- public size_t fully_decompose (bool compat, unichar[] result)
Computes the canonical or compatibility decomposition of a Unicode character.
- public UnicodeScript get_script ()
Looks up the UnicodeScript for a particular character (as defined by Unicode Standard Annex #24).
- public bool isalnum ()
Determines whether a character is alphanumeric.
- public bool isalpha ()
Determines whether a character is alphabetic (i.
- public bool iscntrl ()
Determines whether a character is a control character.
- public bool isdefined ()
Determines if a given character is assigned in the Unicode standard.
- public bool isdigit ()
Determines whether a character is numeric (i.
- public bool isgraph ()
Determines whether a character is printable and not a space (returns false for control characters, format characters, and spaces).
- public bool islower ()
Determines whether a character is a lowercase letter.
- public bool ismark ()
Determines whether a character is a mark (non-spacing mark, combining mark, or enclosing mark in Unicode speak).
- public bool isprint ()
Determines whether a character is printable.
- public bool ispunct ()
Determines whether a character is punctuation or a symbol.
- public bool isspace ()
Determines whether a character is a space, tab, or line separator (newline, carriage return, etc.
- public bool istitle ()
Determines if a character is titlecase.
- public bool isupper ()
Determines if a character is uppercase.
- public bool iswide ()
Determines if a character is typically rendered in a double-width cell.
- public bool iswide_cjk ()
Determines if a character is typically rendered in a double-width cell under legacy East Asian locales.
- public bool isxdigit ()
Determines if a character is a hexadecimal digit.
- public bool iszerowidth ()
Determines if a given character typically takes zero width when rendered.
- public string to_string ()
Converts the value to its equivalent string representation
- public int to_utf8 (string? outbuf)
Converts a single character to UTF-8.
- public unichar tolower ()
Converts a character to lower case.
- public unichar totitle ()
Converts a character to the titlecase.
- public unichar toupper ()
Converts a character to uppercase.
- public UnicodeType type ()
Classifies a Unicode character by type.
- public bool validate ()
Checks whether
ch
is a valid Unicode character. - public int xdigit_value ()
Determines the numeric value of a character as a hexadecimal digit.