StringNormalizationExtensions.Normalize Method

Definition

Normaliza una cadena.Normalizes a string.

Overloads

Normalize(String)

Normaliza una cadena a una forma de normalización C de Unicode.Normalizes a string to a Unicode normalization form C.

Normalize(String, NormalizationForm)

Normaliza una cadena a la forma de normalización Unicode especificada.Normalizes a string to the specified Unicode normalization form.

Normalize(String)

Normaliza una cadena a una forma de normalización C de Unicode.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);
static member Normalize : string -> string
<Extension()>
Public Function Normalize (value As String) As String

Parameters

value
String

Cadena que se va a normalizar.The string to normalize.

Returns

String

Nueva cadena cuyo valor textual es igual que el de value, pero cuya representación binaria tiene la forma de normalización C de Unicode.A new string whose textual value is the same as value but whose binary representation is in Unicode normalization form C.

Exceptions

value es null.value is null.

value contiene caracteres Unicode no válidos.value contains invalid Unicode characters.

Normalize(String, NormalizationForm)

Normaliza una cadena a la forma de normalización Unicode especificada.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);
[System.Security.SecurityCritical]
public static string Normalize (this string value, System.Text.NormalizationForm normalizationForm);
public static string Normalize (this string value, System.Text.NormalizationForm normalizationForm);
static member Normalize : string * System.Text.NormalizationForm -> string
<Extension()>
Public Function Normalize (value As String, normalizationForm As NormalizationForm) As String

Parameters

value
String

Cadena que se va a normalizar.The string to normalize.

normalizationForm
NormalizationForm

Forma de normalización Unicode.The Unicode normalization form.

Returns

String

Nueva cadena cuyo valor textual es igual que el de value, pero cuya representación binaria tiene la forma de normalización normalizationForm.A new string whose textual value is the same as value but whose binary representation is in the normalizationForm normalization form.

Attributes

Exceptions

value es null.value is null.

value contiene caracteres Unicode no válidos.value contains invalid Unicode characters.

Applies to