Instance Method

hasPrefix(_:)

Required. Default implementation provided.

Declaration

func hasPrefix(_ prefix: String) -> Bool

Default Implementations

StringProtocol Implementations

func hasPrefix<Prefix>(Prefix) -> Bool

Returns a Boolean value indicating whether the string begins with the specified prefix.