String

struct String
  • Helper function for tokenizing CamelCaseTypeNames to an array of tokens e.g. ["Camel", "Case", "Type", "Names"] Includes basic support for acronyms e.g. SomethingSomethingUI -> Something Something UI

    Declaration

    Swift

    func camelCaseToTokens() -> [String]
  • Take a string self like Open Document and lowercase and filter out whitespace chars, returning: open-document

    Declaration

    Swift

    func lowerCasedID() -> String