@@ -12,10 +12,10 @@ import Foundation
1212
1313 Iterates over user input. Creates formatted strings from it. Extracts value specified by mask format.
1414
15- Provided mask format string is translated by the ``` Compiler` `` class into a set of states, which define the formatting
15+ Provided mask format string is translated by the ``Compiler`` class into a set of states, which define the formatting
1616 and value extraction.
1717
18- - seealso: ``` Compiler``` , ``` State``` and ``` CaretString` `` classes.
18+ - seealso: ``Compiler``, ``State`` and ``CaretString`` classes.
1919 */
2020public class Mask : CustomDebugStringConvertible , CustomStringConvertible {
2121
@@ -60,7 +60,7 @@ public class Mask: CustomDebugStringConvertible, CustomStringConvertible {
6060 }
6161
6262 /**
63- Produce a reversed ``` Result``` with reversed formatted text (``` CaretString` ``) and reversed extracted value.
63+ Produce a reversed ``Mask/ Result`` with reversed formatted text (``CaretString``) and reversed extracted value.
6464 */
6565 func reversed( ) -> Result {
6666 return Result (
@@ -80,11 +80,11 @@ public class Mask: CustomDebugStringConvertible, CustomStringConvertible {
8080 Constructor.
8181
8282 - parameter format: mask format.
83- - parameter customNotations: a list of custom rules to compile square bracket ```[]`` ` groups of format symbols.
83+ - parameter customNotations: a list of custom rules to compile square bracket `[] ` groups of format symbols.
8484
85- - returns: Initialized ``` Mask` `` instance.
85+ - returns: Initialized ``Mask`` instance.
8686
87- - throws: ``` CompilerError` `` if format string is incorrect.
87+ - throws: ``Compiler/ CompilerError`` if format string is incorrect.
8888 */
8989 public required init ( format: String , customNotations: [ Notation ] = [ ] ) throws {
9090 self . initialState = try Compiler ( customNotations: customNotations) . compile ( formatString: format)
@@ -93,10 +93,10 @@ public class Mask: CustomDebugStringConvertible, CustomStringConvertible {
9393 /**
9494 Constructor.
9595
96- Operates over own ``` Mask``` cache where initialized ``` Mask` `` objects are stored under corresponding format key:
97- ``` [format : mask]`` `
96+ Operates over own ``Mask`` cache where initialized ``Mask`` objects are stored under corresponding format key:
97+ `[format : mask]`
9898
99- - returns: Previously cached ``` Mask` `` object for requested format string. If such it doesn't exist in cache, the
99+ - returns: Previously cached ``Mask`` object for requested format string. If such it doesn't exist in cache, the
100100 object is constructed, cached and returned.
101101 */
102102 public class func getOrCreate( withFormat format: String , customNotations: [ Notation ] = [ ] ) throws -> Mask {
@@ -113,10 +113,10 @@ public class Mask: CustomDebugStringConvertible, CustomStringConvertible {
113113 Check your mask format is valid.
114114
115115 - parameter format: mask format.
116- - parameter customNotations: a list of custom rules to compile square bracket ```[]`` ` groups of format symbols.
116+ - parameter customNotations: a list of custom rules to compile square bracket `[] ` groups of format symbols.
117117
118- - returns: ``` true``` if this format coupled with custom notations will compile into a working ``` Mask` `` object.
119- Otherwise ``` false`` `.
118+ - returns: `true` if this format coupled with custom notations will compile into a working ``Mask`` object.
119+ Otherwise `false`.
120120 */
121121 public class func isValid( format: String , customNotations: [ Notation ] = [ ] ) -> Bool {
122122 return nil != ( try ? self . init ( format: format, customNotations: customNotations) )
@@ -300,10 +300,10 @@ public class Mask: CustomDebugStringConvertible, CustomStringConvertible {
300300
301301 /**
302302 While scanning through the input string in the `.apply(…)` method, the mask builds a graph of autocompletion steps.
303- This graph accumulates the results of `.autocomplete()` calls for each consecutive `State`, acting as a `stack` of
304- `Next` object instances.
303+ This graph accumulates the results of `.autocomplete()` calls for each consecutive `` State` `, acting as a `stack` of
304+ `` Next` ` object instances.
305305
306- Each time the `State` returns `null` for its `.autocomplete()`, the graph resets empty.
306+ Each time the `` State` ` returns `null` for its `.autocomplete()`, the graph resets empty.
307307 */
308308 private struct AutocompletionStack {
309309 private var stack = [ Next] ( )
0 commit comments