Is it possible to parse a uint using strscans module? I would love to know how others do it.
import strscans
var myString = "My favorite number is 42."
var result: bool
var num: int
result = scanf(myString, "My favorite number is $i.", num)
if result:
echo "Parsed unsigned integer: ", num
else:
echo "Failed to parse"
In the above mentioned code I just want to parse uint instead of int.