StringNormalizationExtensions.Normalize Metoda

Definicja

Normalizuje ciąg.Normalizes a string.

Przeciążenia

Normalize(String)

Normalizuje ciąg do formularza normalizacji Unicode C.Normalizes a string to a Unicode normalization form C.

Normalize(String, NormalizationForm)

Normalizuje ciąg do określonego formularza normalizacji Unicode.Normalizes a string to the specified Unicode normalization form.

Normalize(String)

Normalizuje ciąg do formularza normalizacji Unicode C.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

Parametry

valuestrInput
String

Ciąg do normalizacji.The string to normalize.

Zwraca

String

Nowy ciąg, którego wartość tekstowa jest taka sama, value ale której reprezentacja binarna jest w postaci C.A new string whose textual value is the same as value but whose binary representation is in Unicode normalization form C.

Wyjątki

value to null.value is null.

value zawiera nieprawidłowe znaki Unicode.value contains invalid Unicode characters.

Dotyczy

Normalize(String, NormalizationForm)

Normalizuje ciąg do określonego formularza normalizacji Unicode.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

Parametry

valuestrInput
String

Ciąg do normalizacji.The string to normalize.

normalizationForm
NormalizationForm

Formularz normalizacji Unicode.The Unicode normalization form.

Zwraca

String

Nowy ciąg, którego wartość tekstowa jest taka sama, value ale której reprezentacja binarna znajduje się w normalizationForm formularzu normalizacji.A new string whose textual value is the same as value but whose binary representation is in the normalizationForm normalization form.

Atrybuty

Wyjątki

value to null.value is null.

value zawiera nieprawidłowe znaki Unicode.value contains invalid Unicode characters.

Dotyczy