Contents

parse(_:)

Parses an integer string in accordance with this strategy and returns the parsed value.

Declaration

func parse(_ value: String) throws -> Format.FormatInput

Parameters

  • value:

    The string to parse.

Return Value

The parsed integer value.

Discussion

Use this method to repeatedly parse integer strings with the same IntegerParseStrategy. To parse a single integer string, use the initializers inherited from BinaryInteger that take a String and a FormatStyle as parameters.

This method throws an error if the parse strategy can’t parse the provided string.