text: Fix isHexDigit.
conv: Add base support to toInt.