static function RTLMaker::get_closing_char in PersianTools 8
Returns the matching closing char for an opening char.
1 call to RTLMaker::get_closing_char()
- RTLMaker::convert_sm in src/
RTLMaker.php - Main function for multiple features and fixes of persiantools module.
File
- src/
RTLMaker.php, line 285 - Contains \Drupal\persiantools\RTLMaker.
Class
Namespace
Drupal\persiantoolsCode
static function get_closing_char($char) {
switch ($char) {
case '(':
return ')';
case '{':
return '}';
case '[':
return ']';
case '\'':
case '"':
return $char;
}
}