StringNormalizationExtensions.IsNormalized 方法

定义

指示是否规范化字符串。

重载

名称 说明
IsNormalized(ReadOnlySpan<Char>, NormalizationForm)

确定指定的字符范围是否采用规范化形式。

IsNormalized(String)

指示指定的字符串是否采用 Unicode 规范化形式 C。

IsNormalized(String, NormalizationForm)

指示字符串是否采用指定的 Unicode 规范化形式。

IsNormalized(ReadOnlySpan<Char>, NormalizationForm)

Source:
StringNormalizationExtensions.cs
Source:
StringNormalizationExtensions.cs

确定指定的字符范围是否采用规范化形式。

public static bool IsNormalized(this ReadOnlySpan<char> source, System.Text.NormalizationForm normalizationForm = System.Text.NormalizationForm.FormC);
static member IsNormalized : ReadOnlySpan<char> * System.Text.NormalizationForm -> bool
<Extension()>
Public Function IsNormalized (source As ReadOnlySpan(Of Char), Optional normalizationForm As NormalizationForm = System.Text.NormalizationForm.FormC) As Boolean

参数

source
ReadOnlySpan<Char>

要检查的字符范围。

normalizationForm
NormalizationForm

要使用的规范化形式。

返回

true 如果指定的字符范围采用规范化形式,否则,为 false.

例外

指定的字符范围包含无效的代码点或规范化表单无效。

适用于

IsNormalized(String)

Source:
StringNormalizationExtensions.cs
Source:
StringNormalizationExtensions.cs
Source:
StringNormalizationExtensions.cs
Source:
StringNormalizationExtensions.cs
Source:
StringNormalizationExtensions.cs

指示指定的字符串是否采用 Unicode 规范化形式 C。

public:
[System::Runtime::CompilerServices::Extension]
 static bool IsNormalized(System::String ^ value);
public:
[System::Runtime::CompilerServices::Extension]
 static bool IsNormalized(System::String ^ strInput);
public static bool IsNormalized(this string value);
public static bool IsNormalized(this string strInput);
static member IsNormalized : string -> bool
static member IsNormalized : string -> bool
<Extension()>
Public Function IsNormalized (value As String) As Boolean
<Extension()>
Public Function IsNormalized (strInput As String) As Boolean

参数

valuestrInput
String

字符串。

返回

true 如果 value 采用规范化形式 C,则为 C;否则为 false

例外

valuenull

value 包含无效的 Unicode 字符。

适用于

IsNormalized(String, NormalizationForm)

Source:
StringNormalizationExtensions.cs
Source:
StringNormalizationExtensions.cs
Source:
StringNormalizationExtensions.cs
Source:
StringNormalizationExtensions.cs
Source:
StringNormalizationExtensions.cs

指示字符串是否采用指定的 Unicode 规范化形式。

public:
[System::Runtime::CompilerServices::Extension]
 static bool IsNormalized(System::String ^ value, System::Text::NormalizationForm normalizationForm);
public:
[System::Runtime::CompilerServices::Extension]
 static bool IsNormalized(System::String ^ strInput, System::Text::NormalizationForm normalizationForm);
[System.Security.SecurityCritical]
public static bool IsNormalized(this string value, System.Text.NormalizationForm normalizationForm);
public static bool IsNormalized(this string strInput, System.Text.NormalizationForm normalizationForm);
[<System.Security.SecurityCritical>]
static member IsNormalized : string * System.Text.NormalizationForm -> bool
static member IsNormalized : string * System.Text.NormalizationForm -> bool
<Extension()>
Public Function IsNormalized (value As String, normalizationForm As NormalizationForm) As Boolean
<Extension()>
Public Function IsNormalized (strInput As String, normalizationForm As NormalizationForm) As Boolean

参数

valuestrInput
String

字符串。

normalizationForm
NormalizationForm

Unicode 规范化形式。

返回

true 如果 value 采用规范化形式 normalizationForm,则为 ;否则为 false

属性

例外

valuenull

value 包含无效的 Unicode 字符。

适用于