System::Char::IsSurrogatePair méthode

Char::IsSurrogatePair(char_t, char_t) method

Détermine si les deux caractères spécifiés forment une paire de substituts UTF-16.

static bool System::Char::IsSurrogatePair(char_t highSurrogate, char_t lowSurrogate)
ParamètreTypeDescription
highSurrogatechar_tUn caractère qui est testé pour être un surrogat de haut niveau
lowSurrogatechar_tUn caractère qui est testé pour être un surrogat de bas niveau

ReturnValue

Vrai si les caractères spécifiés forment une paire de surrogats, sinon - faux

Voir aussi

Char::IsSurrogatePair(const String&, int) method

Détermine si deux caractères consécutifs dans le tampon de caractères spécifié constituent une paire de substituts.

static bool System::Char::IsSurrogatePair(const String &str, int index)
ParamètreTypeDescription
strconst String&Une chaîne
indiceintUn indice basé sur zéro dans le tampon spécifié où commence la séquence de caractères à tester

ReturnValue

Vrai si les caractères spécifiés forment une paire de substituts, sinon - faux

Voir aussi