Packages

package tokenize

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. Protected

Type Members

  1. case class EOF(expected: String) extends TokenizationResult with Product with Serializable
  2. case class Matched(tokens: Seq[String], rest: StringView) extends TokenizationResult with Product with Serializable
  3. class StringView extends AnyRef

    Wrapper class that allows us to have constant-time .substring without copying (shares the underlying String between instances).

    Wrapper class that allows us to have constant-time .substring without copying (shares the underlying String between instances).

    This is needed because since Java 7 String.substring does a full copy instead of sharing the bytes.

  4. sealed trait TokenizationResult extends AnyRef

Value Members

  1. object ArgumentTokenizer

    This class is responsible for correctly loading argument lists from stdin or files.

    This class is responsible for correctly loading argument lists from stdin or files. It handles splitting the input into individual arg tokens, accounting for quotes and whitespace escaping.

    Tokenisation mechanism should be as similar to shell as possible - content in single quotes is passed through as-is, content in double quotes allows escaping of " and \ characters via \ character, and \ outside quotes can be used to escape any character whatsoever.

  2. case object Failed extends TokenizationResult with Product with Serializable

Ungrouped