Parses the given input string and applies an optional modifier. If the input string is empty, it returns a failure with a BlankException. Otherwise, it returns the input string wrapped in a success.
Parses the given input string and applies an optional modifier. If the input string is empty, it returns a failure with a BlankException. Otherwise, it returns the input string wrapped in a success.
Value parameters
optModifier
an optional modifier that could be applied during the parse operation. This parameter is not utilized in the current implementation.
s
the input string to be parsed. Should not be empty.
Attributes
Returns
a Success containing the input string if it's non-empty, or a Failure containing a BlankException if the string is empty.