StringNormalizationExtensions 类

定义

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

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

注解

StringNormalizationExtensions类的扩展方法旨在与不String.IsNormalized支持和String.Normalize方法的 .net 实现一起使用。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. 但是, 这些方法包含在 .NET Standard 2.0 String的类中, 因此在支持 .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)

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

IsNormalized(String, NormalizationForm)

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

Normalize(String)

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

Normalize(String, NormalizationForm)

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

适用于