TXWrappedStringPolicy
public final class TXWrappedStringPolicy : NSObject, TXMissingPolicy
Wraps the returned string with a custom format.
Example:
WrappedStringPolicy(">>", "<<").get("Click here")
Returns:
>>Click here<<
-
Constructor.
- start: an optional string to prepend to the source string
- end: an optional string to append to the source string
Declaration
Swift
@objc public init(start: String? = nil, end: String? = nil)
-
Return a string that wraps the source string.
Declaration
Swift
public func get(sourceString: String) -> String