System::Globalization::CharUnicodeInfo::GetDigitValue méthode

CharUnicodeInfo::GetDigitValue(char16_t) method

Obtient la valeur du chiffre du caractère spécifié.

static int System::Globalization::CharUnicodeInfo::GetDigitValue(char16_t ch)
ParamètreTypeDescription
chchar16_tCaractère Unicode.

ReturnValue

La valeur du chiffre ou -1 si le caractère spécifié n’est pas un chiffre.

Voir aussi

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

Obtient la valeur du chiffre du caractère à l’index spécifié de la chaîne.

static int System::Globalization::CharUnicodeInfo::GetDigitValue(const String &str, int index)
ParamètreTypeDescription
strconst String&La chaîne contenant le caractère Unicode.
indiceintL’index du caractère unicode.

ReturnValue

La valeur du chiffre ou -1 si le caractère spécifié n’est pas un chiffre.

Voir aussi