cleanURI(urlString:)
static func cleanURI(urlString inURLString: String?) -> String?
“Cleans” a URI.
Parameters
urlString
|
The URL, as a String. It can be optional. |
Return Value
an optional String. This is the given URI, “cleaned up” (“https://” or “tel:” may be prefixed)
-
This tests a string to see if a given substring is present at the start.
- inString: The string to test.
inSubstring: The substring to test for.
Declaration
Swift
func string(_ inString: String, beginsWith inSubstring: String) -> Bool
Return Value
true, if the string begins with the given substring.