SensitiveInfoResult

public class SensitiveInfoResult : CustomStringConvertible, Codable

Result of an analysis by the SensitiveInfoAnalyser.

  • Declaration

    Swift

    public var description: String { get }
  • Declaration

    Swift

    public func containsUkPostcode() -> Bool

    Return Value

    true if the analysed text contains a UK postcode.

  • Declaration

    Swift

    public func containsUkPhoneNumber() -> Bool

    Return Value

    true if the analysed text contains a UK phone number.

  • Declaration

    Swift

    public func containsEmailAddress() -> Bool

    Return Value

    true if the analysed text contains an email address.

  • Check if the analysed text contains the given SensitiveInfoMatch.

    Declaration

    Swift

    public func contains(sensitiveInfo: SensitiveInfoMatch) -> Bool

    Parameters

    sensitiveInfo

    A SensitiveInfoMatch.

    Return Value

    true if the analysed text contains the given SensitiveInfoMatch.

  • Check if the analysed text contains all the given SensitiveInfoMatch.

    Declaration

    Swift

    public func containsAll<S>(sensitiveInfo: S) -> Bool where S : Sequence, S.Element == SensitiveInfoMatch

    Parameters

    sensitiveInfo

    A Sequence of SensitiveInfoMatch.

    Return Value

    true if the analysed text contains all the given SensitiveInfoMatch.

  • Undocumented

    Declaration

    Swift

    public func asArray() -> [SensitiveInfoMatch]