W3cubDocs

/Pony

_FormatInt

[Source]

Worker type providing to string conversions for integers.

primitive val _FormatInt

Constructors

create

[Source]

new val create()
: _FormatInt val^

Returns

Public Functions

u8

[Source]

fun box u8(
  x: U8 val,
  neg: Bool val,
  fmt: (FormatDefault val | FormatUTF32 val | FormatBinary val | 
    FormatBinaryBare val | FormatOctal val | FormatOctalBare val | 
    FormatHex val | FormatHexBare val | FormatHexSmall val | 
    FormatHexSmallBare val),
  prefix: (PrefixDefault val | PrefixSpace val | PrefixSign val),
  prec: USize val,
  width: USize val,
  align: (AlignLeft val | AlignRight val | AlignCenter val),
  fill: U32 val)
: String iso^

Parameters

Returns

u16

[Source]

fun box u16(
  x: U16 val,
  neg: Bool val,
  fmt: (FormatDefault val | FormatUTF32 val | FormatBinary val | 
    FormatBinaryBare val | FormatOctal val | FormatOctalBare val | 
    FormatHex val | FormatHexBare val | FormatHexSmall val | 
    FormatHexSmallBare val),
  prefix: (PrefixDefault val | PrefixSpace val | PrefixSign val),
  prec: USize val,
  width: USize val,
  align: (AlignLeft val | AlignRight val | AlignCenter val),
  fill: U32 val)
: String iso^

Parameters

Returns

u32

[Source]

fun box u32(
  x: U32 val,
  neg: Bool val,
  fmt: (FormatDefault val | FormatUTF32 val | FormatBinary val | 
    FormatBinaryBare val | FormatOctal val | FormatOctalBare val | 
    FormatHex val | FormatHexBare val | FormatHexSmall val | 
    FormatHexSmallBare val),
  prefix: (PrefixDefault val | PrefixSpace val | PrefixSign val),
  prec: USize val,
  width: USize val,
  align: (AlignLeft val | AlignRight val | AlignCenter val),
  fill: U32 val)
: String iso^

Parameters

Returns

u64

[Source]

fun box u64(
  x: U64 val,
  neg: Bool val,
  fmt: (FormatDefault val | FormatUTF32 val | FormatBinary val | 
    FormatBinaryBare val | FormatOctal val | FormatOctalBare val | 
    FormatHex val | FormatHexBare val | FormatHexSmall val | 
    FormatHexSmallBare val),
  prefix: (PrefixDefault val | PrefixSpace val | PrefixSign val),
  prec: USize val,
  width: USize val,
  align: (AlignLeft val | AlignRight val | AlignCenter val),
  fill: U32 val)
: String iso^

Parameters

Returns

u128

[Source]

fun box u128(
  x: U128 val,
  neg: Bool val,
  fmt: (FormatDefault val | FormatUTF32 val | FormatBinary val | 
    FormatBinaryBare val | FormatOctal val | FormatOctalBare val | 
    FormatHex val | FormatHexBare val | FormatHexSmall val | 
    FormatHexSmallBare val) = reference,
  prefix: (PrefixDefault val | PrefixSpace val | PrefixSign val) = reference,
  prec: USize val = call,
  width: USize val = 0,
  align: (AlignLeft val | AlignRight val | AlignCenter val) = reference,
  fill: U32 val = 32)
: String iso^

Parameters

Returns

eq

[Source]

fun box eq(
  that: _FormatInt val)
: Bool val

Parameters

Returns

ne

[Source]

fun box ne(
  that: _FormatInt val)
: Bool val

Parameters

Returns

Private Functions

_large

[Source]

fun box _large()
: String val

Returns

_small

[Source]

fun box _small()
: String val

Returns

_fmt_int

[Source]

fun box _fmt_int(
  fmt: (FormatDefault val | FormatUTF32 val | FormatBinary val | 
    FormatBinaryBare val | FormatOctal val | FormatOctalBare val | 
    FormatHex val | FormatHexBare val | FormatHexSmall val | 
    FormatHexSmallBare val))
: (U32 val , String val , String val)

Parameters

Returns

_prefix

[Source]

fun box _prefix(
  neg: Bool val,
  prefix: (PrefixDefault val | PrefixSpace val | PrefixSign val))
: String val

Parameters

Returns

_extend_digits

[Source]

fun box _extend_digits(
  s: String ref,
  digits: USize val)
: None val

Parameters

Returns

_pad

[Source]

fun box _pad(
  s: String ref,
  width: USize val,
  align: (AlignLeft val | AlignRight val | AlignCenter val),
  fill: U32 val)
: None val

Parameters

Returns

© 2016-2018, The Pony Developers
© 2014-2015, Causality Ltd.
Licensed under the BSD 2-Clause License.
https://stdlib.ponylang.io/format-_FormatInt