StringNormalizationExtensions StringNormalizationExtensions StringNormalizationExtensions StringNormalizationExtensions Class

定义

提供用于字符串规范化的扩展方法。Provides extension methods to work with string normalization.

public ref class StringNormalizationExtensions abstract sealed
public static class StringNormalizationExtensions
type StringNormalizationExtensions = class
Public Module StringNormalizationExtensions
继承
StringNormalizationExtensionsStringNormalizationExtensionsStringNormalizationExtensionsStringNormalizationExtensions

注解

扩展方法StringNormalizationExtensions类用于处理不支持的.NET 实现String.IsNormalizedString.Normalize方法。The extension methods of the StringNormalizationExtensions class are designed to work with .NET implementations that do not support the String.IsNormalized and String.Normalize methods. 但是,这些方法都包含在String类在.NET Standard 2.0 中,因此可在所有支持.NET Standard 2.0 的.NET 实现上。However, these methods are included in the String class in .NET Standard 2.0 and are therefore available on all .NET implementations that support the .NET Standard 2.0. 有关详细信息,请参阅 .NET StandardFor more information, see .NET Standard.

方法

IsNormalized(String) IsNormalized(String) IsNormalized(String) IsNormalized(String)

指示指定字符串是否符合 Unicode 范式 C。Indicates whether the specified string is in Unicode normalization form C.

IsNormalized(String, NormalizationForm) IsNormalized(String, NormalizationForm) IsNormalized(String, NormalizationForm) IsNormalized(String, NormalizationForm)

指示某一字符串是否符合指定 Unicode 范式。Indicates whether a string is in a specified Unicode normalization form.

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

将字符串规范化为 Unicode 范式 C。Normalizes a string to a Unicode normalization form C.

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

将字符串规范化为指定的 Unicode 范式。Normalizes a string to the specified Unicode normalization form.

适用于