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 pieceDeclaration
Swift
func removeLeadingProtocolFromRPCError() -> String?
-
Pad the left side of a string with characters
Declaration
Swift
func padLeft(toLength: Int, withPad character: Character) -> String