Defined in File types.h
Get polarity from string.
string –
polarity corresponding to the string, or 0 on error