from_string
Description:
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 |
Returns:
|
The Direction matching |