Cast

Usage

use Cast;

or

import Cast;
const castLogger = new Logger(logLevel)
proc castGenSymEntry(gse: borrowed GenSymEntry, st: borrowed SymTab, type fromType, type toType, param nd: int): (bool, string) throws
proc castGenSymEntryToBigInt(gse: borrowed GenSymEntry, st: borrowed SymTab, type fromType, param nd: int): (bool, string) throws
proc castGenSymEntryToString(gse: borrowed GenSymEntry, st: borrowed SymTab, type fromType): (bool, string) throws
enum ErrorMode { strict, ignore, return_validity }
enum constant strict
enum constant ignore
enum constant return_validity
proc stringToNumericStrict(ref values, rng, type toType): toType throws
proc stringToNumericIgnore(ref values, rng, type toType): toType
proc stringToNumericReturnValidity(ref values, rng, type toType): (toType, bool)
proc castStringToSymEntry(s: SegString, st: borrowed SymTab, type toType, errors: ErrorMode): string throws
proc castStringToBigInt(s: SegString, st: borrowed SymTab, errors: ErrorMode): string throws