Пример #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;
 }
Пример #2
0
            public PythonEncoder(PythonEncoding parentEncoding)
            {
                _parentEncoding = parentEncoding;
                _characterWidth = _parentEncoding.CharacterWidth;

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