StringInfo.GetNextTextElementLength Méthode

Définition

Surcharges

Nom Description
GetNextTextElementLength(ReadOnlySpan<Char>)

Retourne la longueur du premier élément de texte (cluster grapheme étendu) qui se produit dans l’étendue d’entrée.

GetNextTextElementLength(String)

Retourne la longueur du premier élément de texte (cluster grapheme étendu) qui se produit dans la chaîne d’entrée.

GetNextTextElementLength(String, Int32)

Retourne la longueur du premier élément de texte (cluster grapheme étendu) qui se produit dans la chaîne d’entrée commençant à l’index spécifié.

GetNextTextElementLength(ReadOnlySpan<Char>)

Source:
StringInfo.cs
Source:
StringInfo.cs
Source:
StringInfo.cs
Source:
StringInfo.cs
Source:
StringInfo.cs

Retourne la longueur du premier élément de texte (cluster grapheme étendu) qui se produit dans l’étendue d’entrée.

public:
 static int GetNextTextElementLength(ReadOnlySpan<char> str);
public static int GetNextTextElementLength(ReadOnlySpan<char> str);
static member GetNextTextElementLength : ReadOnlySpan<char> -> int
Public Shared Function GetNextTextElementLength (str As ReadOnlySpan(Of Char)) As Integer

Paramètres

str
ReadOnlySpan<Char>

Étendue d’entrée à analyser.

Retours

Longueur (en caractères) de la sous-chaîne correspondant au premier élément de texte dans str, ou 0 s’il str est vide.

Remarques

Un cluster grapheme est une séquence d’un ou plusieurs points de code Unicode qui doivent être traités comme une unité unique.

S’applique à

GetNextTextElementLength(String)

Source:
StringInfo.cs
Source:
StringInfo.cs
Source:
StringInfo.cs
Source:
StringInfo.cs
Source:
StringInfo.cs

Retourne la longueur du premier élément de texte (cluster grapheme étendu) qui se produit dans la chaîne d’entrée.

public:
 static int GetNextTextElementLength(System::String ^ str);
public static int GetNextTextElementLength(string str);
static member GetNextTextElementLength : string -> int
Public Shared Function GetNextTextElementLength (str As String) As Integer

Paramètres

str
String

Chaîne d’entrée à analyser.

Retours

Longueur (en caractères) de la sous-chaîne correspondant au premier élément de texte dans str, ou 0 s’il str est vide.

Exceptions

str a la valeur null.

Remarques

Un cluster grapheme est une séquence d’un ou plusieurs points de code Unicode qui doivent être traités comme une unité unique.

S’applique à

GetNextTextElementLength(String, Int32)

Source:
StringInfo.cs
Source:
StringInfo.cs
Source:
StringInfo.cs
Source:
StringInfo.cs
Source:
StringInfo.cs

Retourne la longueur du premier élément de texte (cluster grapheme étendu) qui se produit dans la chaîne d’entrée commençant à l’index spécifié.

public:
 static int GetNextTextElementLength(System::String ^ str, int index);
public static int GetNextTextElementLength(string str, int index);
static member GetNextTextElementLength : string * int -> int
Public Shared Function GetNextTextElementLength (str As String, index As Integer) As Integer

Paramètres

str
String

Chaîne d’entrée à analyser.

index
Int32

Décalage de char dans str lequel commencer l’analyse.

Retours

Longueur (en caractères) de la sous-chaîne correspondant au premier élément str de texte à partir de l’index index, ou 0 si index correspond à la fin de str.

Exceptions

str a la valeur null.

index est négatif ou au-delà de la fin de str.

Remarques

Un cluster grapheme est une séquence d’un ou plusieurs points de code Unicode qui doivent être traités comme une unité unique.

S’applique à