String

extension String
  • Initialize a new string with the base-10 representation of an unsigned big integer.

    Complexity

    O(v.count^2)

    Declaration

    Swift

    public init(_ v: BigUInt)
  • Initialize a new string representing an unsigned big integer in the given radix (base).

    Numerals greater than 9 are represented as letters from the English alphabet, starting with a if uppercase is false or A otherwise.

    Requires

    radix > 1 && radix <= 36

    Complexity

    O(count) when radix is a power of two; otherwise O(count^2).

    Declaration

    Swift

    public init(_ v: BigUInt, radix: Int, uppercase: Bool = false)
  • Undocumented

    Declaration

    Swift

    public var bytes: [UInt8] { get }