highlight

Highlights matchOf in matchTo with color.

  1. string highlight(AnsiColor color, string matchTo, string matchOf)
    static pure
    string
    highlight
    (,
    string matchTo
    ,
    string matchOf
    )
  2. string highlight(AnsiColor color, string matchTo, size_t matchStart, size_t matchEnd)

Parameters

color AnsiColor

The color to highlight using.

matchTo string

The string being highlighted.

matchOf string

The string to highlight.

Return Value

Type: string

matchTo with the color and reset inserted as to highlight matchOf.

Meta