Category talk:Wren-fmt: Difference between revisions

m (→‎Source code: Removed some surplus whitespace.)
(→‎Source code: Bug fix.)
Line 6:
// All possible digits.
static digits { "0123456789abcdefghijklmnopqrstuvwxyz" }
 
// All possible digits (upper case).
static upperDigits { "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ" }
// Maximum safe integer = 2^53 - 1.
Line 54 ⟶ 57:
}
var res = 0
var digs = digitsupperDigits[0...b]
for (d in s) {
var ix = digs.indexOf(d)
9,476

edits