Converts a string to an #hb_direction_t.
Matching is loose and applies only to the first letter. For examples, "LTR" and "left-to-right" will both return #HB_DIRECTION_LTR.
Unmatched strings will return #HB_DIRECTION_INVALID.
String to convert
The #hb_direction_t matching str
Converts a string to an #hb_direction_t.
Matching is loose and applies only to the first letter. For examples, "LTR" and "left-to-right" will both return #HB_DIRECTION_LTR.
Unmatched strings will return #HB_DIRECTION_INVALID.