String
public extension String
This is an extension to the String type that returns the String as an IP address.
-
Declaration
Swift
var ipAddress: RVS_IPAddress? { get }
Return Value
the String, parsed as an IP address. It will be either an instance of RVS_IPAddressV4 or RVS_IPAddressV6. It will be nil, if the IP Address is invalid (no instance).
-
This calculated property will examine the String, and will parse it for xsd:duration.
If it can successfully parse the String as a properly-formatted duration, then it will return a DateComponents instance, with the duration therein.
Declaration
Swift
var asXMLDuration: DateComponents! { get }
Return Value
An instance of DateComponents, set to the duration. Nil, if the parse failed for any reason.