C# Class FastColoredTextBoxNS.EncodingDetector

Afficher le fichier Open project: samarjeet27/ynoteclassic

Méthodes publiques

Méthode Description
DetectBOMBytes ( byte BOMBytes ) : Encoding
DetectTextFileEncoding ( FileStream InputFileStream, long HeuristicSampleSize ) : Encoding
DetectTextFileEncoding ( FileStream InputFileStream, long HeuristicSampleSize, bool &HasBOM ) : Encoding
DetectTextFileEncoding ( string InputFilename ) : Encoding
DetectUnicodeInByteSampleByHeuristics ( byte SampleBytes ) : Encoding

Private Methods

Méthode Description
DetectSuspiciousUTF8SequenceLength ( byte SampleBytes, long currentPos ) : int
IsCommonUSASCIIByte ( byte testByte ) : bool

Method Details

DetectBOMBytes() public static méthode

public static DetectBOMBytes ( byte BOMBytes ) : Encoding
BOMBytes byte
Résultat System.Text.Encoding

DetectTextFileEncoding() public static méthode

public static DetectTextFileEncoding ( FileStream InputFileStream, long HeuristicSampleSize ) : Encoding
InputFileStream System.IO.FileStream
HeuristicSampleSize long
Résultat System.Text.Encoding

DetectTextFileEncoding() public static méthode

public static DetectTextFileEncoding ( FileStream InputFileStream, long HeuristicSampleSize, bool &HasBOM ) : Encoding
InputFileStream System.IO.FileStream
HeuristicSampleSize long
HasBOM bool
Résultat System.Text.Encoding

DetectTextFileEncoding() public static méthode

public static DetectTextFileEncoding ( string InputFilename ) : Encoding
InputFilename string
Résultat System.Text.Encoding

DetectUnicodeInByteSampleByHeuristics() public static méthode

public static DetectUnicodeInByteSampleByHeuristics ( byte SampleBytes ) : Encoding
SampleBytes byte
Résultat System.Text.Encoding