StringNormalizationExtensions.Normalize StringNormalizationExtensions.Normalize StringNormalizationExtensions.Normalize Method

Definition

Normalizes a string.

Overloads

Normalize(String) Normalize(String) Normalize(String)

Normalizes a string to a Unicode normalization form C.

Normalize(String, NormalizationForm) Normalize(String, NormalizationForm)

Normalizes a string to the specified Unicode normalization form.

Normalize(String) Normalize(String) Normalize(String)

Normalizes a string to a Unicode normalization form C.

public:
[System::Runtime::CompilerServices::Extension]
 static System::String ^ Normalize(System::String ^ value);
public static string Normalize (this string value);
<Extension()>
Public Function Normalize (value As String) As String
Parameters
value
String String 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 contains invalid Unicode characters.

Normalize(String, NormalizationForm) Normalize(String, NormalizationForm)

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 static string Normalize (this string value, System.Text.NormalizationForm normalizationForm);
Parameters
value
String String String

The string to normalize.

normalizationForm
NormalizationForm 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.

Exceptions

value contains invalid Unicode characters.

Applies to