String

struct String
  • Convenience method to trim whitespace and newline characters from self.

    Declaration

    Swift

    public mutating func trimWhitespace()
  • Convenience method to create a new string from self, trimmed from whitespace and newline characters.

    Declaration

    Swift

    public func whitespaceTrimmedString() -> String