Function Setting.parseBool

parse string as boolean; supports 1, 0, y, n, yes, no, t, f, true, false; returns defValue if cannot be parsed

Prototype

static bool parseBool(
  inout(string) v,
  bool defValue = false
);

Authors

Vadim Lopatin, coolreader.org@gmail.com

Copyright

Vadim Lopatin, 2014

License

Boost License 1.0