Esempio n. 1
0
 public PythonDecoderFallbackBuffer(bool isPass1, PythonEncoding encoding)
 {
     _marker                = isPass1 ? Pass1Marker : Pass2Marker;
     _fallbackChars         = isPass1 ? null : new Queue <char>();
     this.EncodingCharWidth = encoding.CharacterWidth;
     this.CodePage          = encoding.CodePage;
 }
Esempio n. 2
0
            public PythonEncoder(PythonEncoding parentEncoding)
            {
                _parentEncoding = parentEncoding;
                _characterWidth = _parentEncoding.CharacterWidth;

                _pass1encoder = _parentEncoding.Pass1Encoding.GetEncoder();
            }
Esempio n. 3
0
 public SurrogatePassEncoderFallbackBuffer(bool isPass1, PythonEncoding encoding)
     : base(isPass1, encoding)
 {
     _codePage            = encoding.CodePage;
     _isBigEndianEncoding = encoding.IsBigEndian;
 }
Esempio n. 4
0
 public SurrogateEscapeDecoderFallbackBuffer(bool isPass1, PythonEncoding encoding)
     : base(isPass1, encoding)
 {
 }
Esempio n. 5
0
 public PythonDecoder(PythonEncoding parentEncoding)
 {
     _parentEncoding = parentEncoding;
     _pass1decoder   = _parentEncoding.Pass1Encoding.GetDecoder();
 }