[原创]Delphi中ScriptControl的高级应用(二)[4]

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 juwuyi 的 blog

        c3 = str.charcodeat(i++) & 0xff;

        if(c3 == 61)

        return out;

        c3 = base64decodechars[c3];

    } while(i < len && c3 == -1);

    if(c3 == -1)

        break;

 

 

    out += string.fromcharcode(((c2 & 0xf) << 4) | ((c3 & 0x3c) >> 2));

 

 

    /* c4 */

    do {

        c4 = str.charcodeat(i++) & 0xff;

        if(c4 == 61)

        return out;

        c4 = base64decodechars[c4];

    } while(i < len && c4 == -1);

    if(c4 == -1)

        break;

    out += string.fromcharcode(((c3 & 0x03) << 6) | c4);

    }

本文关键:[原创]Delphi中ScriptControl的高级应用(二)
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top