/* This file is part of the Simba project. Index must be a number 0-64.  */
static char index_to_encoded(int index)
/* This file is part of the Simba project. Index must be a number 0-64.  */
static char index_to_encoded(int index)
{
    if ((index >= 0) && (index <= 25)) {
        return ('A' + index - 0);
    } else if ((index >= 26) && (index <= 51)) {
        return ('a' + index - 26);
    } else if ((index >= 52) && (index <= 61)) {
        return ('0' + index - 52);
    } else if (index == 62) {
        return ('+');
    } else if (index == 63) {
        return ('/');
    } else {
        return ('=');
    }
}