ADMaskedFormatPattern

public enum ADMaskedFormatPattern

Holds information about a character pattern read from the formatting string of a ADMaskedStringFormatter. For example: (###) ###-#### for a US phone number.

  • No character will be output for the given position.

    Declaration

    Swift

    case none
  • The # character represents number that will be shown if a numeric value exists in the character position, else the position will be blank.

    Declaration

    Swift

    case number
  • The 0 character represents a fixed number that will show the numeric value for the current character position if one exists or will show 0 if no number exists in the given position.

    Declaration

    Swift

    case fixedNumber
  • The X character represents an upper case letter (A-Z).

    Declaration

    Swift

    case uppercaseLetter
  • The x character represents a lower case letter (a-z).

    Declaration

    Swift

    case lowercaseLetter
  • The * character represents any letter, upper or lower case (A-Z or a-z).

    Declaration

    Swift

    case letter
  • The _ character represents any character that can be typed.

    Declaration

    Swift

    case anyCharacter
  • Represents a character that will be included in the formatted output.

    Declaration

    Swift

    case litteralCharacter(String)