function persiantools_get_closing_char in PersianTools 7
Returns the matching closing char for an opening char.
1 call to persiantools_get_closing_char()
- persiantools_convert_sm in ./
persiantools.module - Main function for multiple features and fixes of persiantools module.
File
- ./
persiantools.module, line 362 - Adds common features and fixes for persian pages.
Code
function persiantools_get_closing_char($char) {
switch ($char) {
case '(':
return ')';
case '{':
return '}';
case '[':
return ']';
case '\'':
case '"':
return $char;
}
}