Share via


RegexRunner.Scan Yöntem

Tanım

yöntemi tarafından oluşturulan bir Regex nesne tarafından CompileToAssembly kullanılır.

Aşırı Yüklemeler

Scan(ReadOnlySpan<Char>)

Bir nesne tarafından bir Regex sonraki eşleşmeyi aramak üzere girişi text taramak için kullanılır.

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

Bu API, ürün altyapısını destekler ve doğrudan kodunuzdan kullanıma yönelik değildir.

Geçersiz.

yöntemi tarafından oluşturulan bir Regex nesne tarafından CompileToAssembly kullanılır.

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

Bu API, ürün altyapısını destekler ve doğrudan kodunuzdan kullanıma yönelik değildir.

Geçersiz.

yöntemi tarafından oluşturulan bir Regex nesne tarafından CompileToAssembly kullanılır.

Scan(ReadOnlySpan<Char>)

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

Bir nesne tarafından bir Regex sonraki eşleşmeyi aramak üzere girişi text taramak için kullanılır.

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))

Parametreler

text
ReadOnlySpan<Char>

Desen eşleşmesi için taranacak metin.

Özel durumlar

ReadOnlySpan<T>Regex tabanlı yöntemler tarafından CompileToAssemblyoluşturulan türetilmiş türlerden Regexdesteklenmez.

Açıklamalar

Bu API, ürün altyapısını destekler ve doğrudan kodunuzdan kullanıma yönelik değildir.

Şunlara uygulanır

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

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

Dikkat

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

yöntemi tarafından oluşturulan bir Regex nesne tarafından CompileToAssembly kullanılır.

Bu API, ürün altyapısını destekler ve doğrudan kodunuzdan kullanıma yönelik değildir.

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

Parametreler

regex
Regex

Normal ifade altyapısının bir örneği.

text
String

Desen eşleşmesi için taranacak metin.

textbeg
Int32

Normal ifade altyapısının eşleşmeyi taradığı sıfır tabanlı başlangıç konumu text .

textend
Int32

Normal ifade altyapısının eşleşmeyi taradığı sıfır tabanlı bitiş konumu text .

textstart
Int32

Bu eşleşmeyi taramak için sıfır tabanlı başlangıç konumu.

prevlen
Int32

Önceki eşleşmedeki karakter sayısı.

quick
Boolean

true hızlı modda eşleşme aramak için; aksi takdirde , false.

Döndürülenler

Bir eşleşme.

Öznitelikler

Şunlara uygulanır

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

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

Dikkat

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

yöntemi tarafından oluşturulan bir Regex nesne tarafından CompileToAssembly kullanılır.

Bu API, ürün altyapısını destekler ve doğrudan kodunuzdan kullanıma yönelik değildir.

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

Parametreler

regex
Regex

Normal ifade altyapısının bir örneği.

text
String

Desen eşleşmesi için taranacak metin.

textbeg
Int32

Normal ifade altyapısının eşleşmeyi taradığı sıfır tabanlı başlangıç konumu text .

textend
Int32

Normal ifade altyapısının eşleşmeyi taradığı sıfır tabanlı bitiş konumu text .

textstart
Int32

Bu eşleşmeyi taramak için sıfır tabanlı başlangıç konumu.

prevlen
Int32

Önceki eşleşmedeki karakter sayısı.

quick
Boolean

true hızlı modda eşleşme aramak için; aksi takdirde , false.

timeout
TimeSpan

Zaman aşımı aralığı.

Döndürülenler

Bir eşleşme.

Öznitelikler

Şunlara uygulanır