to_tridirectional_direction_string

stringtools.to_tridirectional_direction_string(argument)

Changes argument to tridirectional direction string.

>>> stringtools.to_tridirectional_direction_string('^')
'up'
>>> stringtools.to_tridirectional_direction_string('-')
'center'
>>> stringtools.to_tridirectional_direction_string('_')
'down'
>>> stringtools.to_tridirectional_direction_string(1)
'up'
>>> stringtools.to_tridirectional_direction_string(0)
'center'
>>> stringtools.to_tridirectional_direction_string(-1)
'down'
>>> stringtools.to_tridirectional_direction_string('default')
'center'

Returns none when argument is none.

Returns string or none.