Fan.Sys.Charset.Encoder.encode C# (CSharp) Method

encode() public abstract method

public abstract encode ( char ch, InStream @out ) : void
ch char
@out InStream
return void
            public abstract void encode(char ch, InStream @out);

Same methods

Charset.Encoder::encode ( char ch, OutStream @out ) : void

Usage Example

コード例 #1
0
ファイル: OutStream.cs プロジェクト: syatanic/fantom
        private void writeXmlEsc(int ch)
        {
            Charset.Encoder enc = m_charsetEncoder;
            string          hex = "0123456789abcdef";

            enc.encode('&', this);
            enc.encode('#', this);
            enc.encode('x', this);
            if (ch > 0xff)
            {
                enc.encode(hex[(ch >> 12) & 0xf], this);
                enc.encode(hex[(ch >> 8) & 0xf], this);
            }
            enc.encode(hex[(ch >> 4) & 0xf], this);
            enc.encode(hex[(ch >> 0) & 0xf], this);
            enc.encode(';', this);
        }
Charset.Encoder