
  #else

  /**
   * Splits a string into an array of string components.
   *
   * - parameter by:        The character to split on.
   * - parameter maxSplits: The maximum number of splits to perform. If 0, all possible splits are made.
   *
   * - returns: An array of string components.
   */
  func split(by by: Character, maxSplits: Int = 0) -> [String] {
    var s = [String]()
    var numSplits = 0