Method TextAscii
TextAscii(params ReadOnlySpan<string>)
Creates a FileFormat that validates files are valid ASCII text for the specified extensions.
Declaration
public static FileFormat TextAscii(params ReadOnlySpan<string> extensions)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlySpan<string> | extensions | The file extensions (including the leading dot, e.g., ".txt") this file format applies to. Must contain at least one entry. The first extension is the PrimaryExtension that all other extensions are normalized to. |
Returns
| Type | Description |
|---|---|
| FileFormat |
Remarks
All bytes in the file must be in the range [0, 127] (i.e. IsValid(ReadOnlySpan<byte>) must return true).