Config

open class Config

This class provides default config values that the client can override, typically using UserDefaults and pass an instance into LiteratorFactory.

  • Empty public init to enable clients to call super.init()

    Declaration

    Swift

    public init()
  • This character is used to break input aggregation. Typically this is the forward-slash character (\).

    Example: if a maps to 1 and b maps to 2 and ab maps to 3 then inputting ab will output 3 but inputting a\b will output 12

    Declaration

    Swift

    open var stopCharacter: UnicodeScalar { get }
  • All input characters enclosed by this character will be echoed to the output as-is and not converted.

    Example: if a maps to 1 and b maps to 2 and ab maps to 3 then inputting ab will output 3 but inputting `ab` will output ab

    Declaration

    Swift

    open var escapeCharacter: UnicodeScalar { get }
  • The URL path to the top-level directory where the schemes files are present. Usually this would return something like Bundle.main.bundleURL.appendingPathComponent("Mapping")

    Declaration

    Swift

    open var mappingDirectory: URL { get }
  • The URL path to the top-level directory where custom mapping files in SCM format are present. Usually this would return something like Bundle.main.bundleURL.appendingPathComponent("Custom")

    Declaration

    Swift

    open var customMappingDirectory: URL { get }
  • The level at which to NSLog log messages generated by LipikaEngine.

    Important

    This configuration only holds within the same thread in which LiteratorFactory was initialized.

    Declaration

    Swift

    open var logLevel: Logger.Level { get }