System::Globalization::CharUnicodeInfo::GetDigitValue method

CharUnicodeInfo::GetDigitValue(char16_t) method

يحصل على قيمة الرقم للحرف المحدد.

static int System::Globalization::CharUnicodeInfo::GetDigitValue(char16_t ch)
ParameterTypeالوصف
chchar16_tحرف يونيكود.

ReturnValue

قيمة الرقم أو -1 إذا لم يكن الحرف المحدد رقمًا.

انظر أيضًا

CharUnicodeInfo::GetDigitValue(const String&, int) method

يحصل على القيمة الرقمية للحرف في الفهرس المحدد في السلسلة.

static int System::Globalization::CharUnicodeInfo::GetDigitValue(const String &str, int index)
ParameterTypeالوصف
strconst String&السلسلة التي تحتوي على حرف يونيكود.
الفهرسintفهرس الحرف يونيكود.

ReturnValue

قيمة الرقم أو -1 إذا لم يكن الحرف المحدد رقمًا.

انظر أيضًا