I don't think code got more readable by introducing charCodeOfZero, could you replace those by 0x30 and add `// '0'` ?