System.String.IsNormalized Method

Indicates whether this string is in the specified Unicode normalization form.

Syntax

public bool IsNormalized (System.Text.NormalizationForm normalizationForm)

Parameters

normalizationForm
A Unicode normalization form.

Returns

true if this string is in the normalization form specified by the normalizationForm parameter; otherwise, false.

Remarks

Some Unicode characters have multiple equivalent binary representations consisting of sets of combining and/or composite Unicode characters. The existence of multiple representations for a single character complicates searching, sorting, matching, and other operations.

The Unicode standard defines a process called normalization that returns one binary representation when given any of the equivalent binary representations of a character. Normalization can be performed with several algorithms, called normalization forms, that obey different rules. The .NET Framework currently supports normalization forms C, D, KC, and KD.

For a description of supported Unicode normalization forms, see System.Text.NormalizationForm.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0