編輯

共用方式為


StringNormalizationExtensions.Normalize Method

Definition

Normalizes a string.

Overloads

Normalize(String)

Normalizes a string to a Unicode normalization form C.

Normalize(String, NormalizationForm)

Normalizes a string to the specified Unicode normalization form.

Normalize(String)

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

Normalizes a string to a Unicode normalization form C.

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

Parameters

valuestrInput
String

The string to normalize.

Returns

A new string whose textual value is the same as value but whose binary representation is in Unicode normalization form C.

Exceptions

value is null.

value contains invalid Unicode characters.

Applies to

Normalize(String, NormalizationForm)

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

Normalizes a string to the specified Unicode normalization form.

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

Parameters

valuestrInput
String

The string to normalize.

normalizationForm
NormalizationForm

The Unicode normalization form.

Returns

A new string whose textual value is the same as value but whose binary representation is in the normalizationForm normalization form.

Attributes

Exceptions

value is null.

value contains invalid Unicode characters.

Applies to