mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 16:56:53 +08:00
String utils minor improvements
This commit is contained in:
committed by
Mat Sutcliffe
parent
92d53a4077
commit
09d86aceb5
@@ -79,6 +79,9 @@ namespace BlackMisc
|
||||
if (c == '1' || c == 't' || c == 'y' || c == 'x') { return true; }
|
||||
if (c == '0' || c == 'f' || c == 'n' || c == '_') { return false; }
|
||||
|
||||
if (c == 'e') { return true; } // enabled
|
||||
if (c == 'd') { return false; } // disabled
|
||||
|
||||
// full words
|
||||
if (s == "on") { return true; }
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user