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)

Normalizes a string to a Unicode normalization form C.

public static string Normalize (this string value);
Parameters
value
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.

Normalize(String, NormalizationForm)

Normalizes a string to the specified Unicode normalization form.

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

Exceptions

value is null.

value contains invalid Unicode characters.

Applies to