C# Class Microsoft.Automata.Internal.Utilities.UnicodeCategoryRangesGenerator

Utility for generating unicode category ranges and corresponing binary decision diagrams
Datei anzeigen Open project: AutomataDotNet/Automata

Public Methods

Method Description
Generate ( string namespacename, string classname, string path ) : void

Create a file classname.cs in the directory path. The file contains the static class with name classname and has namespace namespacename. The class has static fields that map unicode categories to their character ranges and provide whitespace ranges. The fields are for the ASCII case (7 bits), CP437 case (8 bits) and for UTF16 (16 bits). Overwrites an existing file, even if the existing file is write protected.

Private Methods

Method Description
WriteRangeFields ( BitWidth encoding, StreamWriter sw, string field ) : void

Method Details

Generate() public static method

Create a file classname.cs in the directory path. The file contains the static class with name classname and has namespace namespacename. The class has static fields that map unicode categories to their character ranges and provide whitespace ranges. The fields are for the ASCII case (7 bits), CP437 case (8 bits) and for UTF16 (16 bits). Overwrites an existing file, even if the existing file is write protected.
public static Generate ( string namespacename, string classname, string path ) : void
namespacename string namespace for the class
classname string name of the class
path string path where the file is written
return void