readNamedString

Prompts the user to enter a string.

version(TwitchSupport && WithTwitchPlugin)
package
readNamedString
(
const string wording
,
const size_t expectedLength
,,
const bool* abort
)

Parameters

wording string

Wording to use in the prompt.

expectedLength size_t

Optional expected length of the input string. A value of 0 disables checks.

passThroughEmptyString bool

Whether or not an empty string should be returned as-is, or if it should be re-read until it is non-empty.

abort bool*

Abort pointer.

Return Value

Type: auto

A string read from standard in, stripped.