Class FormatParameters
The command line parameters shared by the corpus formats.
public static class FormatParameters
- Inheritance
-
FormatParameters
- Inherited Members
Fields
Data
-data, from BasicFormatParams.
public static readonly IFormatParameter Data
Field Value
DefaultCharset
The sentinel upstream's @OptionalParameter uses to mean "the platform
default encoding". A user may type it literally, and upstream's
CharsetArgumentFactory resolves it the same way.
public const string DefaultCharset = "DEFAULT_CHARSET"
Field Value
Detokenizer
-detokenizer, from DetokenizerParameter.
public static readonly IFormatParameter Detokenizer
Field Value
Encoding
-encoding, from EncodingParameter.
public static readonly IFormatParameter Encoding
Field Value
Lang
-lang, from LanguageParams.
public static readonly IFormatParameter Lang
Field Value
Methods
ResolveEncoding(string?)
Resolves the -encoding value, mapping the
DefaultCharset sentinel onto the platform default.
public static Encoding ResolveEncoding(string? charsetName)
Parameters
charsetNamestring