from_string


Description:

[ Version ( since = "0.9.2" ) ]
public static Direction from_string (uint8[] str)

Converts a string to an Direction.

Matching is loose and applies only to the first letter. For examples, "LTR" and "left-to-right" will both return LTR.

Unmatched strings will return INVALID.

Parameters:

str

String to convert

len

Length of str, or -1 if it is `NULL`-terminated

Returns:

The Direction matching str