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
amaps to1andbmaps to2andabmaps to3then inputtingabwill output3but inputtinga\bwill output12Declaration
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
amaps to1andbmaps to2andabmaps to3then inputtingabwill output3but inputting`ab`will outputabDeclaration
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 whichLiteratorFactorywas initialized.Declaration
Swift
open var logLevel: Logger.Level { get }
View on GitHub
Config Class Reference