Provides an implicit implementation of the Parseable typeclass for the String type.
This object defines a mechanism for parsing a string input into an optional String value. It enables type-safe and consistent string parsing in contexts where the Parseable typeclass is used.
Parses the input string and returns an optional string based on the validity of the input. If the input string is non-null and non-empty, it is wrapped in an Option and returned. Otherwise, None is returned.
Parses the input string and returns an optional string based on the validity of the input. If the input string is non-null and non-empty, it is wrapped in an Option and returned. Otherwise, None is returned.
Value parameters
input
the input string to parse. It can be null or empty.
Attributes
Returns
an Option[String] containing the input string if it is non-null and non-empty, or None otherwise.