getQuoteBySearchTerms

Fetches a Quote whose line matches the passed search terms.

version(WithQuotePlugin)
private
getQuoteBySearchTerms
(,
const Quote[] quotes
,
const string searchTermsCased
,
out size_t index
)

Parameters

plugin QuotePlugin

The current QuotePlugin.

quotes Quote[]

Array of Quotes to get a specific one from based on search terms.

searchTermsCased string

Search terms to apply to the quotes array, with letters in original casing.

index size_t

out reference index of the quote selected, in the local storage.

Return Value

Type: Quote

A Quote whose line matches the passed search terms.