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 to1
andb
maps to2
andab
maps to3
then inputtingab
will output3
but inputtinga\b
will output12
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 to1
andb
maps to2
andab
maps to3
then inputtingab
will output3
but inputting`ab`
will outputab
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 whichLiteratorFactory
was initialized.Declaration
Swift
open var logLevel: Logger.Level { get }