mscorlib(4.0.0.0) API with additions
System.StringNormalizationExtensions Class Reference

Provides extension methods to work with normalized strings. More...

Static Public Member Functions

static bool IsNormalized (this string value)
 Indicates whether the specified string is in Unicode normalization form C. More...
 
static bool IsNormalized (this string value, NormalizationForm normalizationForm)
 Indicates whether a string is in a specified Unicode normalization form. More...
 
static string Normalize (this string value)
 Normalizes a string to a Unicode normalization form C. More...
 
static string Normalize (this string value, NormalizationForm normalizationForm)
 Normalizes a string to the specified Unicode normalization form. More...
 

Detailed Description

Provides extension methods to work with normalized strings.

Definition at line 9 of file StringNormalizationExtensions.cs.

Member Function Documentation

◆ IsNormalized() [1/2]

static bool System.StringNormalizationExtensions.IsNormalized ( this string  value)
static

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

Parameters
valueA string.
Returns
true if value is in normalization form C; otherwise, false.
Exceptions
T:System.ArgumentExceptionvalue contains invalid Unicode characters.

Definition at line 18 of file StringNormalizationExtensions.cs.

◆ IsNormalized() [2/2]

static bool System.StringNormalizationExtensions.IsNormalized ( this string  value,
NormalizationForm  normalizationForm 
)
static

Indicates whether a string is in a specified Unicode normalization form.

Parameters
valueA string.
normalizationFormA Unicode normalization form.
Returns
true if value is in normalization form normalizationForm ; otherwise, false.
Exceptions
T:System.ArgumentExceptionvalue contains invalid Unicode characters.

Definition at line 32 of file StringNormalizationExtensions.cs.

◆ Normalize() [1/2]

static string System.StringNormalizationExtensions.Normalize ( this string  value)
static

Normalizes a string to a Unicode normalization form C.

Parameters
valueThe 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.

Definition at line 41 of file StringNormalizationExtensions.cs.

◆ Normalize() [2/2]

static string System.StringNormalizationExtensions.Normalize ( this string  value,
NormalizationForm  normalizationForm 
)
static

Normalizes a string to the specified Unicode normalization form.

Parameters
valueThe string to normalize.
normalizationFormThe 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.

Definition at line 52 of file StringNormalizationExtensions.cs.


The documentation for this class was generated from the following file: