[ 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.
| str |
String to convert |
| len |
Length of |
|
The Direction matching |