語言

RegexRunner.Scan 方法

定義

由 Regex 方法 CompileToAssembly 產生的物件所使用。

多載

名稱 Description
Scan(ReadOnlySpan<Char>)

物件用 Regex 來掃描輸入 text 尋找下一個匹配。

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

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

已淘汰.

物件用來 Regex 掃描輸入 text。

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

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

已淘汰.

此方法的身體僅因是受保護成員,可被議會外人士召喚而保留。

Scan(ReadOnlySpan<Char>)

來源:
RegexRunner.cs
來源:
RegexRunner.cs
來源:
RegexRunner.cs
來源:
RegexRunner.cs
來源:
RegexRunner.cs

物件用 Regex 來掃描輸入 text 尋找下一個匹配。

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

參數

text
ReadOnlySpan<Char>

掃描文字以尋找圖案匹配。

例外狀況

ReadOnlySpan<T>基於 - Regex 的方法不支援由 RegexRegex.CompileToAssembly 產生的 -導出型別。

備註

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

適用於

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

來源:
RegexRunner.cs
來源:
RegexRunner.cs
來源:
RegexRunner.cs
來源:
RegexRunner.cs
來源:
RegexRunner.cs

警告

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

物件用來 Regex 掃描輸入 text。

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

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);
[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);
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}")>]
member this.Scan : System.Text.RegularExpressions.Regex * string * int * int * int * int * bool -> System.Text.RegularExpressions.Match
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

參數

regex
Regex

正則表達式引擎的一個實例。

text
String

掃描文字以尋找圖案匹配。

textbeg
Int32

正則表達式引擎掃描匹配的零基起始位置 text 。

textend
Int32

正則表達式引擎掃描匹配的零基終點位置 text 。

textstart
Int32

這是本場比賽中掃描的零基起始位置。

prevlen
Int32

上一場比賽中的角色數量。

quick
Boolean

true快速模式中尋找配對;否則,。 false

傳回

一樁火柴。

屬性

適用於

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

來源:
RegexRunner.cs
來源:
RegexRunner.cs
來源:
RegexRunner.cs
來源:
RegexRunner.cs
來源:
RegexRunner.cs

警告

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

此方法的身體僅因是受保護成員,可被議會外人士召喚而保留。

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

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);
[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);
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}")>]
member this.Scan : System.Text.RegularExpressions.Regex * string * int * int * int * int * bool * TimeSpan -> System.Text.RegularExpressions.Match
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

參數

regex
Regex

正則表達式引擎的一個實例。

text
String

掃描文字以尋找圖案匹配。

textbeg
Int32

正則表達式引擎掃描匹配的零基起始位置 text 。

textend
Int32

正則表達式引擎掃描匹配的零基終點位置 text 。

textstart
Int32

這是本場比賽中掃描的零基起始位置。

prevlen
Int32

上一場比賽中的角色數量。

quick
Boolean

true快速模式中尋找配對;否則,。 false

timeout
TimeSpan

暫停時間。

傳回

一樁火柴。

屬性

適用於