RegexParser

struct RegexParser

Undocumented

  • Undocumented

    Declaration

    Swift

    static let hashtagPattern: String
  • Undocumented

    Declaration

    Swift

    static let mentionPattern: String
  • Undocumented

    Declaration

    Swift

    static let urlPattern: String
  • Undocumented

    Declaration

    Swift

    private static var cachedRegularExpressions: [String : NSRegularExpression]
  • Undocumented

    Declaration

    Swift

    static func getElements(from text: String, with pattern: String, range: NSRange) -> [NSTextCheckingResult]
  • Undocumented

    Declaration

    Swift

    private static func regularExpression(for pattern: String) -> NSRegularExpression?