StringNormalizationExtensions.IsNormalized 方法

定义

指示是否规范化字符串。Indicates whether a string is normalized.

重载

IsNormalized(String)

指示指定字符串是否符合 Unicode 范式 C。Indicates whether the specified string is in Unicode normalization form C.

IsNormalized(String, NormalizationForm)

指示某一字符串是否符合指定 Unicode 范式。Indicates whether a string is in a specified Unicode normalization form.

IsNormalized(String)

指示指定字符串是否符合 Unicode 范式 C。Indicates whether the specified string is in Unicode normalization form C.

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

参数

value
String

一个字符串。A string.

返回

如果 value 符合范式 C,则为 true;否则为 falsetrue if value is in normalization form C; otherwise, false.

异常

valuenullvalue is null.

value 包含无效的 Unicode 字符。value contains invalid Unicode characters.

IsNormalized(String, NormalizationForm)

指示某一字符串是否符合指定 Unicode 范式。Indicates whether a string is in a specified Unicode normalization form.

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

参数

value
String

一个字符串。A string.

normalizationForm
NormalizationForm

一个 Unicode 范式。A Unicode normalization form.

返回

如果 value 符合范式 normalizationForm,则为 true;否则为 falsetrue if value is in normalization form normalizationForm; otherwise, false.

属性

异常

valuenullvalue is null.

value 包含无效的 Unicode 字符。value contains invalid Unicode characters.

适用于