Table of Contents

Class CommandTokenizer

Namespace
Signal.Application.Commands.Parsing
Assembly
Signal.Application.dll

Splits argument text into CommandTokens.

public static class CommandTokenizer
Inheritance
CommandTokenizer
Inherited Members

Methods

Tokenize(string)

Splits on whitespace. Tokens starting with a quote (", ', or the typographic quotes “ ”, „ “, « » inserted by mobile keyboards) extend to the closing quote; inside, a backslash escapes the closing quote or a backslash. Quotes inside a word (don't) are literal. An unterminated quote extends to the end of the input.

public static IReadOnlyList<CommandToken> Tokenize(string input)

Parameters

input string

The argument text.

Returns

IReadOnlyList<CommandToken>

The tokens in order.