Wolfringo Wolfringo
Wolfringo Wolfringo
Wolfringo (c) 2020 TehGM
DocFX, DiscordFX theme.
Search Results for

    Class ArgumentsParserOptions

    Options for default argument parser.

    Inheritance
    System.Object
    ArgumentsParserOptions
    Namespace: TehGM.Wolfringo.Commands.Parsing
    Assembly: Wolfringo.Commands.dll
    Syntax
    public class ArgumentsParserOptions

    Properties

    | Improve this Doc View Source

    BaseMarker

    Base marker to use by default.

    Declaration
    public char BaseMarker { get; set; }
    Property Value
    Type Description
    System.Char
    Remarks

    Base marker is used by default, and will be skipped inside of a nested block.

    Base marker must be contained as a key in BlockMarkers.

    Defaults to space.

    See Also
    ArgumentsParser
    | Improve this Doc View Source

    BlockMarkers

    Argument start and end markers.

    Declaration
    public IDictionary<char, char> BlockMarkers { get; }
    Property Value
    Type Description
    System.Collections.Generic.IDictionary<System.Char, System.Char>
    Remarks

    By default, following markers are used to split arguments:
    Start: ' ', End: ' '
    Start: '"', End: '"'
    Start: '(', End: ')'
    Start: '[', End: ']'

    See Also
    ArgumentsParser
    | Improve this Doc View Source

    InitialBlockSizeAllocation

    Initial size allocated for an argument.

    Declaration
    public int InitialBlockSizeAllocation { get; set; }
    Property Value
    Type Description
    System.Int32
    Remarks

    ArgumentsParser uses a new list of System.Char for each argument, and allocates initial size. A good initial size is big enough to contain most commonly used arguments, but small enough to not allocate too much memory unnecessarily.

    Defaults to 8.

    See Also
    ArgumentsParser

    See Also

    ArgumentsParser