のねのBlog

パソコンの問題や、ソフトウェアの開発で起きた問題など書いていきます。よろしくお願いします^^。

Unicode 5この組み合わせ タイ語

処理が重すぎて、5この組み合わせは表示できなかった。

<script type="text/javascript">

var start = 0x0E00;
var end   = 0x0E5B;

    var cnt0 = 0;

    for (cnt0 = start; cnt0 < end; cnt0++)
    {
        for (cnt1 = start; cnt1 < end; cnt1++)
        {
            for (cnt2 = start; cnt2 < end; cnt2++)
            {
                for (cnt3 = start; cnt3 < end; cnt3++)
                {
                    for (cnt4 = start; cnt4 < end; cnt4++)
                    {
                        var code0 = String.fromCharCode(cnt0); 
                        var code1 = String.fromCharCode(cnt1); 
                        var code2 = String.fromCharCode(cnt2);
                        var code3 = String.fromCharCode(cnt3);
                        var code4 = String.fromCharCode(cnt4);
                        var codes =  code0+code1+code2+code3+code4;
                        var codesStr =
                              cnt0.toString(16) + " "
                            + cnt1.toString(16) + " "
                            + cnt2.toString(16) + " "
                            + cnt3.toString(16) + " "
                            + cnt4.toString(16) + " "
                        document.write(codes + codesStr + "<BR>");
                        //console.log(codes+codesStr);
                    }
                }
            }
        }
    }
</script>