Méthode System::Char::IsSurrogatePair

Char::IsSurrogatePair(char_t, char_t) method

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

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

ReturnValue

Vrai si les caractères spécifiés forment une paire de substituts, 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é forment une paire de surrogats.

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 sont une paire de substituts, sinon - faux

Voir aussi