String

public extension String
  • Return the starting indexes of each occurnace of the supplied string

    Declaration

    Swift

    func indexesOf(string: String) -> [String.Index]
  • When an error is returned in the format proto.012-Psithaca.gas_exhausted.operation, in many cases we only care about the bit after the protocol. This function returns only that piece

    Declaration

    Swift

    func removeLeadingProtocolFromRPCError() -> String?