Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

Member group

Parse

Declaring type: Int64
Module: System
Assembly: System.Runtime.dll
Source file: Int64.rvn

Overloads / Variants

Parse

static func Parse(text: string, culture: Culture) -> Result<long, NumberParseError>

Source file: Int64.rvn

Parses explicit culture punctuation with strict three-digit grouping; whitespace is not accepted.

Parameters

Name Type Description
text String
culture Culture

Return value

Result<Int64, NumberParseError>

Parse

static func Parse(value: string) -> Result<long, NumberParseError>

Source file: Int64.rvn

Parses strict signed ASCII decimal text as a 64-bit integer.

Parameters

Name Type Description
value String An optional ASCII + or - followed by one or more ASCII digits; leading zeros are accepted.

Return value

Result<Int64, NumberParseError>

Ok with the integer; InvalidFormat for invalid syntax, or Overflow outside the signed 64-bit range.

Remarks

Development API. No whitespace, separators, prefixes, NUL or non-ASCII digits. Whole-input format validation precedes overflow detection. Unlike .NET's default parsing, surrounding whitespace is rejected. Use Raven Result case patterns.