All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ceylon.language.parseBoolean.ceylon Maven / Gradle / Ivy

There is a newer version: 1.3.3
Show newest version
"The `Boolean` value of the given string representation of a 
 boolean value, or `null` if the string does not represent a 
 boolean value.
 
 Recognized values are `\"true\"`, `\"false\"`."
tagged("Basic types")
shared Boolean? parseBoolean(String string) {
    switch (string)
    case ("true") { return true; }
    case ("false") { return false; }
    else { return null; }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy