CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
char_unicode_info.h
1
2#pragma once
3
4#include <system/string.h>
5#include <system/globalization/unicode_category.h>
6
7namespace System { namespace Globalization {
8
10class ASPOSECPP_SHARED_CLASS CharUnicodeInfo final
11{
12public:
16 static ASPOSECPP_SHARED_API int GetDecimalDigitValue(char16_t ch);
21 static ASPOSECPP_SHARED_API int GetDecimalDigitValue(const String& str, int index);
25 static ASPOSECPP_SHARED_API int GetDigitValue(char16_t ch);
30 static ASPOSECPP_SHARED_API int GetDigitValue(const String& str, int index);
34 static ASPOSECPP_SHARED_API double GetNumericValue(char16_t ch);
39 static ASPOSECPP_SHARED_API double GetNumericValue(const String& str, int index);
43 static ASPOSECPP_SHARED_API UnicodeCategory GetUnicodeCategory(char16_t ch);
48 static ASPOSECPP_SHARED_API UnicodeCategory GetUnicodeCategory(const String& str, int index);
49};
50
51}} //namespace System::Globalization
Gets information about unicode character.
Definition: char_unicode_info.h:11
static UnicodeCategory GetUnicodeCategory(char16_t ch)
Gets unicode category of the character.
static double GetNumericValue(char16_t ch)
Gets numeric value associated with the specified character.
static int GetDecimalDigitValue(const String &str, int index)
Gets decimal digit value of the character at the specified index of the string.
static int GetDecimalDigitValue(char16_t ch)
Gets decimal digit value of the specified character.
static double GetNumericValue(const String &str, int index)
Gets numeric value associated with the character at the specified index of the string.
static int GetDigitValue(const String &str, int index)
Gets digit value of the character at the specified index of the string.
static UnicodeCategory GetUnicodeCategory(const String &str, int index)
Gets unicode category of the character at the specified index of the string.
static int GetDigitValue(char16_t ch)
Gets digit value of the specified character.
String class used across the library. Is a substitute for C# System.String when translating code....
Definition: string.h:122
UnicodeCategory
Category of unicode character.
Definition: unicode_category.h:10
Definition: db_command.h:9