Basically, switch( c ) is just a simple switch statement that drops down to whatever char ( or the default case ) "c" is storing at the time convert() is called. You can clarify that statement by substituting the switch for an if/else if ->
if( c=='a' )
return a;
else if( c=='b'...