Casefold

public struct Casefold: Fn

Casefold normalizes strings according to the Unicode Standard section 5.18 Case Mappings.

To compare two strings for case-insensitive matching, transform each string and use a binary comparison, such as equals.

Reference.

  • Declaration

    Swift

    public init(_ str: Expr, _ normalizer: Expr? = nil)

    Parameters

    str

    String to be normalized.

    normalizer

    The normalization operation.

  • Declaration

    Swift

    public init(_ str: Expr, normalizer: Normalizer? = nil)

    Parameters

    str

    String to be normalized.

    normalizer

    The normalization operation.