# HG changeset patch # User Frank Benoit # Date 1207948944 -7200 # Node ID 6293c40673a49d46198fdb6374200d2a940aca06 # Parent fef1e3b373788c33ad6aed4500c0a050f415351d sync with dwt-linux diff -r fef1e3b37378 -r 6293c40673a4 dwt/dwthelper/utils.d --- a/dwt/dwthelper/utils.d Fri Apr 11 17:15:55 2008 +0200 +++ b/dwt/dwthelper/utils.d Fri Apr 11 23:22:24 2008 +0200 @@ -94,6 +94,15 @@ public bool booleanValue(){ return value; } + public static Boolean valueOf( char[] s ){ + if( s == "yes" || s == "true" ){ + return TRUE; + } + return FALSE; + } + public static Boolean valueOf( bool b ){ + return b ? TRUE : FALSE; + } } alias Boolean ValueWrapperBool;