Zend\Text\Figlet\Figlet::_smushem
Given two characters, attempts to smush them into one, according to the current smushmode. Returns smushed character or false if no smushing can be done.
Smushmode values are sum of following (all values smush blanks): 1: Smush equal chars (not hardblanks) 2: Smush '_' with any char in hierarchy below 4: hierarchy: "|", "/\", "[]", "{}", "()", "<>" Each class in hier. can be replaced by later class. 8: [ + ] -> |, { + } -> |, ( + ) -> | 16: / + \ -> X, > + < -> X (only in that order) 32: hardblank + hardblank -> hardblank
Signature
protected function _smushem(string
$leftChar,
string
$rightChar )
Parameters
$leftChar
— string- Left character to smush
$rightChar
— string- Right character to smush
Returns
- string