RegexRunner.Scan Méthode

Définition

Utilisé par un objet Regex généré par la méthode CompileToAssembly.

Surcharges

Scan(ReadOnlySpan<Char>)

Utilisé par un Regex objet pour analyser l’entrée text à la recherche de la correspondance suivante.

Scan(Regex, String, Int32, Int32, Int32, Int32, Boolean)

Cette API prend en charge l'infrastructure du produit et n'est pas destinée à être utilisée directement à partir de votre code.

Obsolète.

Utilisé par un objet Regex généré par la méthode CompileToAssembly.

Scan(Regex, String, Int32, Int32, Int32, Int32, Boolean, TimeSpan)

Cette API prend en charge l'infrastructure du produit et n'est pas destinée à être utilisée directement à partir de votre code.

Obsolète.

Utilisé par un objet Regex généré par la méthode CompileToAssembly.

Scan(ReadOnlySpan<Char>)

Source:
RegexRunner.cs
Source:
RegexRunner.cs
Source:
RegexRunner.cs

Utilisé par un Regex objet pour analyser l’entrée text à la recherche de la correspondance suivante.

protected public:
 virtual void Scan(ReadOnlySpan<char> text);
protected internal virtual void Scan (ReadOnlySpan<char> text);
abstract member Scan : ReadOnlySpan<char> -> unit
override this.Scan : ReadOnlySpan<char> -> unit
Protected Friend Overridable Sub Scan (text As ReadOnlySpan(Of Char))

Paramètres

text
ReadOnlySpan<Char>

Texte à rechercher pour une correspondance de modèle.

Exceptions

ReadOnlySpan<T>Les méthodes basées sur Regex ne sont pas prises en charge à partir de Regextypes dérivés générés par CompileToAssembly.

Remarques

Cette API prend en charge l'infrastructure du produit et n'est pas destinée à être utilisée directement à partir de votre code.

S’applique à

Scan(Regex, String, Int32, Int32, Int32, Int32, Boolean)

Source:
RegexRunner.cs
Source:
RegexRunner.cs
Source:
RegexRunner.cs

Attention

This API supports obsolete mechanisms for Regex extensibility. It is not supported.

Utilisé par un objet Regex généré par la méthode CompileToAssembly.

Cette API prend en charge l'infrastructure du produit et n'est pas destinée à être utilisée directement à partir de votre code.

protected public:
 System::Text::RegularExpressions::Match ^ Scan(System::Text::RegularExpressions::Regex ^ regex, System::String ^ text, int textbeg, int textend, int textstart, int prevlen, bool quick);
protected internal System.Text.RegularExpressions.Match? Scan (System.Text.RegularExpressions.Regex regex, string text, int textbeg, int textend, int textstart, int prevlen, bool quick);
[System.Obsolete("This API supports obsolete mechanisms for Regex extensibility. It is not supported.", DiagnosticId="SYSLIB0052", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
protected internal System.Text.RegularExpressions.Match? Scan (System.Text.RegularExpressions.Regex regex, string text, int textbeg, int textend, int textstart, int prevlen, bool quick);
protected internal System.Text.RegularExpressions.Match Scan (System.Text.RegularExpressions.Regex regex, string text, int textbeg, int textend, int textstart, int prevlen, bool quick);
member this.Scan : System.Text.RegularExpressions.Regex * string * int * int * int * int * bool -> System.Text.RegularExpressions.Match
[<System.Obsolete("This API supports obsolete mechanisms for Regex extensibility. It is not supported.", DiagnosticId="SYSLIB0052", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
member this.Scan : System.Text.RegularExpressions.Regex * string * int * int * int * int * bool -> System.Text.RegularExpressions.Match
Protected Friend Function Scan (regex As Regex, text As String, textbeg As Integer, textend As Integer, textstart As Integer, prevlen As Integer, quick As Boolean) As Match

Paramètres

regex
Regex

Une instance du moteur d’expression régulière.

text
String

Texte à rechercher pour une correspondance de modèle.

textbeg
Int32

La position de début de base zéro dans text à laquelle le moteur d’expression régulière recherchera une correspondance.

textend
Int32

La position de fin de base zéro dans text à laquelle le moteur d’expression régulière recherchera une correspondance.

textstart
Int32

La position de début de base zéro à laquelle rechercher cette correspondance.

prevlen
Int32

Le nombre de caractères dans la correspondance précédente.

quick
Boolean

true pour rechercher une correspondance en mode rapide, sinon false.

Retours

Une correspondance.

Attributs

S’applique à

Scan(Regex, String, Int32, Int32, Int32, Int32, Boolean, TimeSpan)

Source:
RegexRunner.cs
Source:
RegexRunner.cs
Source:
RegexRunner.cs

Attention

This API supports obsolete mechanisms for Regex extensibility. It is not supported.

Utilisé par un objet Regex généré par la méthode CompileToAssembly.

Cette API prend en charge l'infrastructure du produit et n'est pas destinée à être utilisée directement à partir de votre code.

protected public:
 System::Text::RegularExpressions::Match ^ Scan(System::Text::RegularExpressions::Regex ^ regex, System::String ^ text, int textbeg, int textend, int textstart, int prevlen, bool quick, TimeSpan timeout);
protected internal System.Text.RegularExpressions.Match? Scan (System.Text.RegularExpressions.Regex regex, string text, int textbeg, int textend, int textstart, int prevlen, bool quick, TimeSpan timeout);
[System.Obsolete("This API supports obsolete mechanisms for Regex extensibility. It is not supported.", DiagnosticId="SYSLIB0052", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
protected internal System.Text.RegularExpressions.Match? Scan (System.Text.RegularExpressions.Regex regex, string text, int textbeg, int textend, int textstart, int prevlen, bool quick, TimeSpan timeout);
protected internal System.Text.RegularExpressions.Match Scan (System.Text.RegularExpressions.Regex regex, string text, int textbeg, int textend, int textstart, int prevlen, bool quick, TimeSpan timeout);
member this.Scan : System.Text.RegularExpressions.Regex * string * int * int * int * int * bool * TimeSpan -> System.Text.RegularExpressions.Match
[<System.Obsolete("This API supports obsolete mechanisms for Regex extensibility. It is not supported.", DiagnosticId="SYSLIB0052", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
member this.Scan : System.Text.RegularExpressions.Regex * string * int * int * int * int * bool * TimeSpan -> System.Text.RegularExpressions.Match
Protected Friend Function Scan (regex As Regex, text As String, textbeg As Integer, textend As Integer, textstart As Integer, prevlen As Integer, quick As Boolean, timeout As TimeSpan) As Match

Paramètres

regex
Regex

Une instance du moteur d’expression régulière.

text
String

Texte à rechercher pour une correspondance de modèle.

textbeg
Int32

La position de début de base zéro dans text à laquelle le moteur d’expression régulière recherchera une correspondance.

textend
Int32

La position de fin de base zéro dans text à laquelle le moteur d’expression régulière recherchera une correspondance.

textstart
Int32

La position de début de base zéro à laquelle rechercher cette correspondance.

prevlen
Int32

Le nombre de caractères dans la correspondance précédente.

quick
Boolean

true pour rechercher une correspondance en mode rapide, sinon false.

timeout
TimeSpan

L’intervalle de délai d’attente.

Retours

Une correspondance.

Attributs

S’applique à