Skip to content
FutureBlitz

    Install

    Import std.core.parse

    std.core.parse

    Text to numbers and Bools: Parse, a Static Method on each, which gives Null for text that isn't one, or a number that doesn't fit. It reads what Format writes, invariantly: '.' for decimals, no thousands, and NaN, Inf, and -Inf for the floats that aren't numbers.

    std/core/parse.fb

    Extends

    Int8 extend

    Extend Int8

    No doc comment.

    std/core/parse.fb, line 30

    • @PanicsAtCaller Public Static Method Parse(text: String, base: Int = 10): Int8? static method #

      The Int8 text writes in base, or Null.

    Int16 extend

    Extend Int16

    No doc comment.

    std/core/parse.fb, line 40

    • @PanicsAtCaller Public Static Method Parse(text: String, base: Int = 10): Int16? static method #

      The Int16 text writes in base, or Null.

    Int32 extend

    Extend Int32

    No doc comment.

    std/core/parse.fb, line 50

    • @PanicsAtCaller Public Static Method Parse(text: String, base: Int = 10): Int32? static method #

      The Int32 text writes in base, or Null: Int.Parse("42"), Int.Parse("ff", 16).

    Int64 extend

    Extend Int64

    No doc comment.

    std/core/parse.fb, line 60

    • @PanicsAtCaller Public Static Method Parse(text: String, base: Int = 10): Int64? static method #

      The Int64 text writes in base, or Null.

    UInt8 extend

    Extend UInt8

    No doc comment.

    std/core/parse.fb, line 67

    • @PanicsAtCaller Public Static Method Parse(text: String, base: Int = 10): UInt8? static method #

      The UInt8 text writes in base, or Null.

    UInt16 extend

    Extend UInt16

    No doc comment.

    std/core/parse.fb, line 77

    • @PanicsAtCaller Public Static Method Parse(text: String, base: Int = 10): UInt16? static method #

      The UInt16 text writes in base, or Null.

    UInt32 extend

    Extend UInt32

    No doc comment.

    std/core/parse.fb, line 87

    • @PanicsAtCaller Public Static Method Parse(text: String, base: Int = 10): UInt32? static method #

      The UInt32 text writes in base, or Null.

    UInt64 extend

    Extend UInt64

    No doc comment.

    std/core/parse.fb, line 97

    • @PanicsAtCaller Public Static Method Parse(text: String, base: Int = 10): UInt64? static method #

      The UInt64 text writes in base, or Null.

    Float32 extend

    Extend Float32

    No doc comment.

    std/core/parse.fb, line 104

    • Public Static Method Parse(text: String): Float32? static method #

      The Float32 text writes, or Null for text that isn't a float or one too big for a Float32: Float.Parse("2.5").

    Float64 extend

    Extend Float64

    No doc comment.

    std/core/parse.fb, line 114

    • Public Static Method Parse(text: String): Float64? static method #

      The Float64 text writes, or Null, which reads back every Float64 that Format writes.

    Bool extend

    Extend Bool

    No doc comment.

    std/core/parse.fb, line 123

    • Public Static Method Parse(text: String): Bool? static method #

      True for "True", False for "False", and Null for any other text.

    Report an issue with this page or with FutureBlitz on GitHub.