CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
|
Provides methods for manipulation of characters represented as UTF-16 code units. This is a static type with no instance services. You should never create instances of it by any means. More...
#include <char.h>
Static Public Member Functions | |
static Globalization::UnicodeCategory | GetUnicodeCategory (char_t ch) |
Returns a value that represents a Unicode category of specified character. More... | |
static bool | IsSurrogate (char_t c) |
Determines if the specified character is a UTF-16 surrogate code unit. More... | |
static bool | IsSurrogate (const String &s, int index) |
Determines whether the character at the specified index in the specified string is UTF-16 surrogate code unit. More... | |
static bool | IsSurrogatePair (char_t highSurrogate, char_t lowSurrogate) |
Determines whether the two specified characters for a UTF-16 surrogate pair. More... | |
static bool | IsSurrogatePair (const String &str, int index) |
Determines whether two consequent characters in the specified character buffer are a surrogate pair. More... | |
static bool | IsHighSurrogate (const String &s, int index) |
Determines whether the character at the specified index in the specified string is UTF-16 high surrogate code unit. More... | |
static bool | IsHighSurrogate (const char_t *str, int idx) |
Determines whether the character at the specified index in the specified character buffer is a high surrogate. More... | |
static bool | IsHighSurrogate (char_t c) |
Determines whether the specified character is a high surrogate. More... | |
static bool | IsLowSurrogate (const char_t *str, int idx) |
Determines whether the character at the specified index in the specified character buffer is a low surrogate. More... | |
static bool | IsLowSurrogate (char_t c) |
Determines whether the specified character is a low surrogate. More... | |
static bool | IsControl (const char_t *str, int idx) |
Determines whether the character at the specified index in the specified character buffer is classified as Unicode control character. More... | |
static bool | IsControl (char_t c) |
Determines whether the specified character is classified as Unicode control character. More... | |
static bool | IsDigit (const char_t *str, int idx) |
Determines whether the character at the specified index in the specified character buffer is classified as a decimal digit. More... | |
static bool | IsDigit (const String &str, const int32_t idx) |
Determines whether the character at the specified index in the specified string is classified as a decimal digit. More... | |
static bool | IsDigit (char_t c) |
Determines whether the specified character is classified as a decimal digit. More... | |
static bool | IsLetter (const char_t *str, int idx) |
Determines whether the character at the specified index in the specified character buffer is classified as Unicode letter. More... | |
static bool | IsLetter (char_t c) |
Determines whether the specified character is classified as Unicode letter. More... | |
static bool | IsLetterOrDigit (const char_t *str, int idx) |
Determines whether the character at the specified index in the specified character buffer is classified as Unicode letter or a decimal digit. More... | |
static bool | IsLetterOrDigit (char_t c) |
Determines whether the specified character is classified as Unicode letter or a decimal digit. More... | |
static bool | IsNumber (const char_t *str, int idx) |
Determines whether the character at the specified index in the specified character buffer is classified as a number. More... | |
static bool | IsNumber (char_t c) |
Determines whether the specified character is classified as a number. More... | |
static bool | IsSeparator (const char_t *str, int idx) |
Determines whether the character at the specified index in the specified character buffer is classified as a separator character. More... | |
static bool | IsSeparator (char_t c) |
Determines whether the specified character is classified as a separator character. More... | |
static bool | IsSymbol (const char_t *str, int idx) |
Determines whether the character at the specified index in the specified character buffer is classified as a symbol character. More... | |
static bool | IsSymbol (char_t c) |
Determines whether the specified character is classified as a symbol character. More... | |
static bool | IsWhiteSpace (const char_t *str, int idx) |
Determines whether the character at the specified index in the specified character buffer is classified as a white space character. More... | |
static bool | IsWhiteSpace (char_t c) |
Determines whether the specified character is classified as a white space character. More... | |
static bool | IsWhiteSpace (const String &str, int index) |
Determines whether the character at the specified index in the specified string is classified as a white space character. More... | |
static constexpr bool | IsAsciiWhiteSpace (char_t c) |
Determines whether the specified character is classified as a ASCII white space character. More... | |
static bool | IsUpper (const String &str, int idx) |
Determines whether the character at the specified index in the specified string is classified as an upper case letter. More... | |
static bool | IsUpper (const char_t *str, int idx) |
Determines whether the character at the specified index in the specified character buffer is classified as an upper case letter. More... | |
static bool | IsUpper (char_t c) |
Determines whether the specified character is classified as an upper case letter. More... | |
static bool | IsLower (const char_t *str, int idx) |
Determines whether the character at the specified index in the specified character buffer is classified as a lower case letter. More... | |
static bool | IsLower (char_t c) |
Determines whether the specified character is classified as a lower case letter. More... | |
static bool | IsLower (const String &str, int idx) |
Determines whether the character at the specified index in the specified string is classified as a lower case letter. More... | |
static bool | IsPunctuation (const char_t *str, int idx) |
Determines whether the character at the specified index in the specified character buffer is classified as a punctuation character. More... | |
static bool | IsPunctuation (char_t c) |
Determines whether the specified character is classified as a punctuation character. More... | |
static char_t | ToUpper (char_t c) |
Converts the specified character to upper case. More... | |
static char_t | ToLower (char_t c) |
Converts the specified character to lower case. More... | |
static char_t | ToUpper (char_t c, const SharedPtr< Globalization::CultureInfo > &culture) |
Converts the specified character to upper case. More... | |
static char_t | ToLower (char_t c, const SharedPtr< Globalization::CultureInfo > &culture) |
Converts the specified character to lower case. More... | |
static char_t | ToUpperInvariant (char_t c) |
Converts the specified character to upper case. More... | |
static char_t | ToLowerInvariant (char_t c) |
Converts the specified character to lower case. More... | |
static String | ConvertFromUtf32 (uint32_t utf32) |
Converts UTF-32 code unit into an instance of System::String class. More... | |
static int | ConvertToUtf32 (char_t highSurrogate, char_t lowSurrogate) |
Converts the specified UTF-16 surrogate pair into UTF-32 code unit. More... | |
static int | ConvertToUtf32 (const String &s, int index) |
Converts the value of a UTF-16 encoded character or surrogate pair at a specified position in a string into UTF-32 code unit. More... | |
static bool | TryParse (const System::String &s, char_t &result) |
Tries to convert a string consisting of a single character into UTF-16 character. The function succeeds only when input string is not null and has length of exactly one character. More... | |
static double | GetNumericValue (char_t c) |
Converts the specified UTF-16 character into double-precision floating-point numerical value. More... | |
static char_t | Parse (const String &value) |
Converts the first and the only character of the specified string to a char_t value. More... | |
Static Protected Attributes | |
static const uint8_t | s_category_table [71680] |
Table that maps Unicode characters to the Unicode categories. More... | |
static const uint32_t | s_category_table_astral_index [4096] |
Table that maps Unicode characters to the Unicode astral plane indexes. More... | |
Provides methods for manipulation of characters represented as UTF-16 code units. This is a static type with no instance services. You should never create instances of it by any means.
|
inlinestatic |
Converts UTF-32 code unit into an instance of System::String class.
utf32 | A UTF-32 code unit to convert |
|
inlinestatic |
Converts the specified UTF-16 surrogate pair into UTF-32 code unit.
highSurrogate | The high surrogate of the UTF-16 surrogate pair to convert |
lowSurrogate | The low surrogate of the UTF-16 surrogate pair to convert |
|
static |
Converts the value of a UTF-16 encoded character or surrogate pair at a specified position in a string into UTF-32 code unit.
s | A string that contains a character or surrogate pair |
index | The index position of the character or surrogate pair in specified string |
|
static |
Converts the specified UTF-16 character into double-precision floating-point numerical value.
c | UTF-16 character to convert |
|
inlinestatic |
Returns a value that represents a Unicode category of specified character.
ch | The character to classify |
|
inlinestaticconstexpr |
Determines whether the specified character is classified as a ASCII white space character.
c | The character to test |
|
inlinestatic |
Determines whether the specified character is classified as Unicode control character.
c | The character to test |
|
inlinestatic |
Determines whether the character at the specified index in the specified character buffer is classified as Unicode control character.
str | Pointer to the beginning of the character buffer |
idx | A zero-based index in the specified buffer of the character to test |
|
inlinestatic |
Determines whether the specified character is classified as a decimal digit.
c | The character to test |
|
inlinestatic |
Determines whether the character at the specified index in the specified character buffer is classified as a decimal digit.
str | Pointer to the beginning of the character buffer |
idx | A zero-based index in the specified buffer of the character to test |
|
inlinestatic |
Determines whether the character at the specified index in the specified string is classified as a decimal digit.
str | A string |
idx | A zero-based index in the specified buffer of the character to test |
|
inlinestatic |
Determines whether the specified character is a high surrogate.
c | The character to test |
|
inlinestatic |
Determines whether the character at the specified index in the specified character buffer is a high surrogate.
str | Pointer to the beginning of the character buffer |
idx | A zero-based index in the specified buffer of the character to test |
|
static |
Determines whether the character at the specified index in the specified string is UTF-16 high surrogate code unit.
s | A string |
index | The index in the specified string of the character to test |
|
inlinestatic |
Determines whether the specified character is classified as Unicode letter.
c | The character to test |
|
inlinestatic |
Determines whether the character at the specified index in the specified character buffer is classified as Unicode letter.
str | Pointer to the beginning of the character buffer |
idx | A zero-based index in the specified buffer of the character to test |
|
inlinestatic |
Determines whether the specified character is classified as Unicode letter or a decimal digit.
c | The character to test |
|
inlinestatic |
Determines whether the character at the specified index in the specified character buffer is classified as Unicode letter or a decimal digit.
str | Pointer to the beginning of the character buffer |
idx | A zero-based index in the specified buffer of the character to test |
|
inlinestatic |
Determines whether the specified character is classified as a lower case letter.
c | The character to test |
|
inlinestatic |
Determines whether the character at the specified index in the specified character buffer is classified as a lower case letter.
str | Pointer to the beginning of the character buffer |
idx | A zero-based index in the specified buffer of the character to test |
|
static |
Determines whether the character at the specified index in the specified string is classified as a lower case letter.
str | A string |
idx | A zero-based index in the specified string to test |
ArgumentNullException | If specified string is nullptr. |
ArgumentOutOfRangeException | If specified index is less than zero or greater than last position in string. |
|
inlinestatic |
Determines whether the specified character is a low surrogate.
c | The character to test |
|
inlinestatic |
Determines whether the character at the specified index in the specified character buffer is a low surrogate.
str | Pointer to the beginning of the character buffer |
idx | A zero-based index in the specified buffer of the character to test |
|
inlinestatic |
Determines whether the specified character is classified as a number.
c | The character to test |
|
inlinestatic |
Determines whether the character at the specified index in the specified character buffer is classified as a number.
str | Pointer to the beginning of the character buffer |
idx | A zero-based index in the specified buffer of the character to test |
|
inlinestatic |
Determines whether the specified character is classified as a punctuation character.
c | The character to test |
|
inlinestatic |
Determines whether the character at the specified index in the specified character buffer is classified as a punctuation character.
str | Pointer to the beginning of the character buffer |
idx | A zero-based index in the specified buffer of the character to test |
|
inlinestatic |
Determines whether the specified character is classified as a separator character.
c | The character to test |
|
inlinestatic |
Determines whether the character at the specified index in the specified character buffer is classified as a separator character.
str | Pointer to the beginning of the character buffer |
idx | A zero-based index in the specified buffer of the character to test |
|
inlinestatic |
Determines if the specified character is a UTF-16 surrogate code unit.
c | A character |
|
static |
Determines whether the character at the specified index in the specified string is UTF-16 surrogate code unit.
s | A string |
index | The index of the character in the specified string |
|
inlinestatic |
Determines whether the two specified characters for a UTF-16 surrogate pair.
highSurrogate | A character that is tested for being a high surrogate |
lowSurrogate | A character that is tested for being a low surrogate |
|
static |
Determines whether two consequent characters in the specified character buffer are a surrogate pair.
str | A string |
index | A zero based index in the specified buffer at which the character sequence to test begins |
|
inlinestatic |
Determines whether the specified character is classified as a symbol character.
c | The character to test |
|
inlinestatic |
Determines whether the character at the specified index in the specified character buffer is classified as a symbol character.
str | Pointer to the beginning of the character buffer |
idx | A zero-based index in the specified buffer of the character to test |
|
inlinestatic |
Determines whether the specified character is classified as an upper case letter.
c | The character to test |
|
inlinestatic |
Determines whether the character at the specified index in the specified character buffer is classified as an upper case letter.
str | Pointer to the beginning of the character buffer |
idx | A zero-based index in the specified buffer of the character to test |
|
static |
Determines whether the character at the specified index in the specified string is classified as an upper case letter.
str | The string containing a char. |
idx | A zero-based index in the specified string to test |
ArgumentNullException | If specified string is nullptr. |
ArgumentOutOfRangeException | If specified index is less than zero or greater than last position in string. |
|
inlinestatic |
Determines whether the specified character is classified as a white space character.
c | The character to test |
|
inlinestatic |
Determines whether the character at the specified index in the specified character buffer is classified as a white space character.
str | Pointer to the beginning of the character buffer |
idx | A zero-based index in the specified buffer of the character to test |
|
static |
Determines whether the character at the specified index in the specified string is classified as a white space character.
str | A string |
index | A zero-based index in the specified string |
|
static |
Converts the first and the only character of the specified string to a char_t value.
value | The string to convert. |
|
inlinestatic |
Converts the specified character to lower case.
c | Character to convert |
|
inlinestatic |
Converts the specified character to lower case.
c | Character to convert |
culture | An object that supplies culture-specific casing rules. |
|
inlinestatic |
Converts the specified character to lower case.
c | Character to convert |
|
inlinestatic |
Converts the specified character to upper case.
c | Character to convert |
|
inlinestatic |
Converts the specified character to upper case.
c | Character to convert |
culture | An object that supplies culture-specific casing rules. |
|
inlinestatic |
Converts the specified character to upper case.
c | Character to convert |
|
inlinestatic |
Tries to convert a string consisting of a single character into UTF-16 character. The function succeeds only when input string is not null and has length of exactly one character.
s | String to convert |
result | The output variable that will contain the result of conversion if conversion succeeds |
|
staticprotected |
Table that maps Unicode characters to the Unicode categories.
|
staticprotected |
Table that maps Unicode characters to the Unicode astral plane indexes.