file: job.t package: muf status: alpha
This is a fairly esoteric internal function. Muq internally uses 21-bit fields to identify database files, but externally uses an ASCII representation of this number in the filename, a six-character string consisting approximately of a string of four all lower-case (user db file) or all upper-case (system db file) alphabetic characters, usually padded with a couple of dashes.
This function converts from the string representation to the integer representation. Invalid strings are silently coerced to something reasonable.
For readability (and to avoid "------" being ambiguous) database id zero (the root db) is special-cased as "ROOTDB".
Stack: "lisa" dbnameToInt Stack: 1291847 intToDbname Stack: "lisa--" pop 0 intToDbname Stack: "ROOTDB" pop "LISP" dbnameToInt intToDbname Stack: "LISP--" dbnameToInt 1 + intToDbname Stack: "LISQ--"
See section intToDbname.
Go to the first, previous, next, last section, table of contents.