C64Lib.Core.FSDrive.conv_to_64 C# (CSharp) Method

conv_to_64() private method

private conv_to_64 ( byte c, bool map_slash ) : byte
c byte
map_slash bool
return byte
        byte conv_to_64(byte c, bool map_slash)
        {
            if ((c >= 'A') && (c <= 'Z') || (c >= 'a') && (c <= 'z'))
                return (byte)(c ^ 0x20);

            if ((c == '\\') && map_slash && GlobalPrefs.ThePrefs.MapSlash)
                return (byte)'/';

            return c;
        }