本文整理汇总了Python中codecs.IncrementalDecoder方法的典型用法代码示例。如果您正苦于以下问题:Python codecs.IncrementalDecoder方法的具体用法?Python codecs.IncrementalDecoder怎么用?Python codecs.IncrementalDecoder使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类codecs
的用法示例。
在下文中一共展示了codecs.IncrementalDecoder方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: import codecs [as 别名]
# 或者: from codecs import IncrementalDecoder [as 别名]
def __init__(self, decoder, translate, errors='strict'):
codecs.IncrementalDecoder.__init__(self, errors=errors)
self.translate = translate
self.decoder = decoder
self.seennl = 0
self.pendingcr = False
示例2: getregentry
# 需要导入模块: import codecs [as 别名]
# 或者: from codecs import IncrementalDecoder [as 别名]
def getregentry():
return codecs.CodecInfo(
name='ascii',
encode=Codec.encode,
decode=Codec.decode,
incrementalencoder=IncrementalEncoder,
incrementaldecoder=IncrementalDecoder,
streamwriter=StreamWriter,
streamreader=StreamReader,
)
示例3: getregentry
# 需要导入模块: import codecs [as 别名]
# 或者: from codecs import IncrementalDecoder [as 别名]
def getregentry():
return codecs.CodecInfo(
name='cp437',
encode=Codec().encode,
decode=Codec().decode,
incrementalencoder=IncrementalEncoder,
incrementaldecoder=IncrementalDecoder,
streamreader=StreamReader,
streamwriter=StreamWriter,
)
### Decoding Map
示例4: getregentry
# 需要导入模块: import codecs [as 别名]
# 或者: from codecs import IncrementalDecoder [as 别名]
def getregentry():
return codecs.CodecInfo(
name='cp874',
encode=Codec().encode,
decode=Codec().decode,
incrementalencoder=IncrementalEncoder,
incrementaldecoder=IncrementalDecoder,
streamreader=StreamReader,
streamwriter=StreamWriter,
)
### Decoding Table
示例5: getregentry
# 需要导入模块: import codecs [as 别名]
# 或者: from codecs import IncrementalDecoder [as 别名]
def getregentry():
return codecs.CodecInfo(
name='undefined',
encode=Codec().encode,
decode=Codec().decode,
incrementalencoder=IncrementalEncoder,
incrementaldecoder=IncrementalDecoder,
streamwriter=StreamWriter,
streamreader=StreamReader,
)
示例6: getregentry
# 需要导入模块: import codecs [as 别名]
# 或者: from codecs import IncrementalDecoder [as 别名]
def getregentry():
return codecs.CodecInfo(
name='quopri',
encode=quopri_encode,
decode=quopri_decode,
incrementalencoder=IncrementalEncoder,
incrementaldecoder=IncrementalDecoder,
streamwriter=StreamWriter,
streamreader=StreamReader,
)
示例7: getregentry
# 需要导入模块: import codecs [as 别名]
# 或者: from codecs import IncrementalDecoder [as 别名]
def getregentry():
return codecs.CodecInfo(
name='mac-roman',
encode=Codec().encode,
decode=Codec().decode,
incrementalencoder=IncrementalEncoder,
incrementaldecoder=IncrementalDecoder,
streamreader=StreamReader,
streamwriter=StreamWriter,
)
### Decoding Table
示例8: getregentry
# 需要导入模块: import codecs [as 别名]
# 或者: from codecs import IncrementalDecoder [as 别名]
def getregentry():
return codecs.CodecInfo(
name='cp500',
encode=Codec().encode,
decode=Codec().decode,
incrementalencoder=IncrementalEncoder,
incrementaldecoder=IncrementalDecoder,
streamreader=StreamReader,
streamwriter=StreamWriter,
)
### Decoding Table
示例9: getregentry
# 需要导入模块: import codecs [as 别名]
# 或者: from codecs import IncrementalDecoder [as 别名]
def getregentry():
return codecs.CodecInfo(
name='mac-croatian',
encode=Codec().encode,
decode=Codec().decode,
incrementalencoder=IncrementalEncoder,
incrementaldecoder=IncrementalDecoder,
streamreader=StreamReader,
streamwriter=StreamWriter,
)
### Decoding Table
示例10: getregentry
# 需要导入模块: import codecs [as 别名]
# 或者: from codecs import IncrementalDecoder [as 别名]
def getregentry():
return codecs.CodecInfo(
name='iso8859-11',
encode=Codec().encode,
decode=Codec().decode,
incrementalencoder=IncrementalEncoder,
incrementaldecoder=IncrementalDecoder,
streamreader=StreamReader,
streamwriter=StreamWriter,
)
### Decoding Table
示例11: getregentry
# 需要导入模块: import codecs [as 别名]
# 或者: from codecs import IncrementalDecoder [as 别名]
def getregentry():
return codecs.CodecInfo(
name='iso8859-2',
encode=Codec().encode,
decode=Codec().decode,
incrementalencoder=IncrementalEncoder,
incrementaldecoder=IncrementalDecoder,
streamreader=StreamReader,
streamwriter=StreamWriter,
)
### Decoding Table
示例12: getregentry
# 需要导入模块: import codecs [as 别名]
# 或者: from codecs import IncrementalDecoder [as 别名]
def getregentry():
return codecs.CodecInfo(
name='ptcp154',
encode=Codec().encode,
decode=Codec().decode,
incrementalencoder=IncrementalEncoder,
incrementaldecoder=IncrementalDecoder,
streamreader=StreamReader,
streamwriter=StreamWriter,
)
### Decoding Map
示例13: getregentry
# 需要导入模块: import codecs [as 别名]
# 或者: from codecs import IncrementalDecoder [as 别名]
def getregentry():
return codecs.CodecInfo(
name='iso8859-1',
encode=Codec().encode,
decode=Codec().decode,
incrementalencoder=IncrementalEncoder,
incrementaldecoder=IncrementalDecoder,
streamreader=StreamReader,
streamwriter=StreamWriter,
)
### Decoding Table
示例14: getregentry
# 需要导入模块: import codecs [as 别名]
# 或者: from codecs import IncrementalDecoder [as 别名]
def getregentry():
return codecs.CodecInfo(
name='string-escape',
encode=Codec.encode,
decode=Codec.decode,
incrementalencoder=IncrementalEncoder,
incrementaldecoder=IncrementalDecoder,
streamwriter=StreamWriter,
streamreader=StreamReader,
)
示例15: getregentry
# 需要导入模块: import codecs [as 别名]
# 或者: from codecs import IncrementalDecoder [as 别名]
def getregentry():
return codecs.CodecInfo(
name='cp1256',
encode=Codec().encode,
decode=Codec().decode,
incrementalencoder=IncrementalEncoder,
incrementaldecoder=IncrementalDecoder,
streamreader=StreamReader,
streamwriter=StreamWriter,
)
### Decoding Table