Charset.
Inheritance: FanObj
Example #1
0
File: FanStr.cs Project: xored/f4
 public static Buf toBuf(string self, Charset charset)
 {
     MemBuf buf = new MemBuf(self.Length*2);
       buf.charset(charset);
       buf.print(self);
       return buf.flip();
 }
Example #2
0
File: Buf.cs Project: nomit007/f4
 public void charset(Charset charset)
 {
     m_out.charset(charset);
       m_in.charset(charset);
 }
Example #3
0
 public virtual void charset(Charset charset)
 {
     m_charsetEncoder = charset.newEncoder();
       m_charset = charset;
 }
Example #4
0
 protected OutStream()
 {
     m_charset = Charset.utf8();
       m_charsetEncoder = m_charset.newEncoder();
 }
Example #5
0
 internal DefaultEncoder(Charset charset)
 {
     this.charset = charset;
 }
Example #6
0
 //////////////////////////////////////////////////////////////////////////
 // UTF-8
 //////////////////////////////////////////////////////////////////////////
 public static Charset utf8()
 {
     if (m_utf8 == null) m_utf8 = new Utf8Charset();
       return m_utf8;
 }
Example #7
0
 protected InStream()
 {
     m_charset = Charset.utf8();
       m_charsetDecoder = m_charset.newDecoder();
       m_charsetEncoder = m_charset.newEncoder();
 }