Functions
The following functions are available globally.
-
Declaration
Swift
public func == <T>(lhs: RVS_WeakObjectReference<T>, rhs: RVS_WeakObjectReference<T>) -> Bool where T : AnyObjectParameters
lhsThe left-hand side of the comparison.
rhsThe right-hand side of the comparison.
Return Value
true, if they are the same.
-
This is a factory for IP addresses (as Strings).
Declaration
Swift
public func RVS_IPAddressExtractIPAddress(_ inString: String, isPadded inIsPadded: Bool = false) -> RVS_IPAddress!Parameters
inStringThe string to be parsed.
inIsPaddedOptional IPv6 padding variable. If true (default is false), then IPv6 addresses will be fully padded. Ignored for IPv4.
Return Value
a valid IPv4 or IPv6 address object. nil, if the String cannot produce a valid IP address.
-
This is a factory for IP addresses (as Int Arrays).
Declaration
Swift
public func RVS_IPAddressExtractIPAddress(array inArray: [Int], port inPort: Int = 0, isPadded inIsPadded: Bool = false) -> RVS_IPAddress!Parameters
inArrayThe Array to be used.
inPortAn optional (default is 0 -no port) Int, with the TCP port.
inIsPaddedOptional IPv6 padding variable. If true (default is false), then IPv6 addresses will be fully 0-padded (no shortcuts). Ignored for IPv4.
Return Value
a valid IPv4 or IPv6 address object. nil, if the Array cannot produce a valid IP address.
View on GitHub
Functions Reference