PrivMX DOCS
API Reference/PrivMX Endpoint Swift Extra/Extensions

std.string

Methods

isHex()

Checks if the string is in Hex format.

func isHex(
) throws -> Bool

Returns

Bool · result of the check.

isBase32()

Checks if the string is in Base32 format.

func isBase32(
) throws -> Bool

Returns

Bool · result of the check.

isBase64()

Checks if the string is in Base64 format.

func isBase64(
) throws -> Bool

Returns

Bool · result of the check.

rtrim()

Removes all whitespace from the left of self.

mutating func rtrim(
) throws -> Void

ltrim()

Removes all whitespace from the left of self.

mutating func ltrim(
) throws -> Void

trimmed()

Removes all trailing whitespace.

func trimmed(
) throws -> std.string

Returns

std.string · a copy of this string with trailing whitespace removed

We use cookies on our website. We use them to ensure the proper functioning of the site and, if you agree, for purposes we set, such as analytics or marketing.

PrivMX Endpoint Swift v2.3

This package is not up to date with the core documentation. Some of the features you've seen described in other parts of the documentation might not be mentioned here. Those changes do not influence compatibility, however