function _geshifilter_whitespace_explode in GeSHi Filter for syntax highlighting 7
Same name and namespace in other branches
- 5.2 geshifilter.inc \_geshifilter_whitespace_explode()
- 6 geshifilter.inc \_geshifilter_whitespace_explode()
Helper function for splitting a string on white spaces. Using explode(' ', $string) is not enough because it returns empty elements if $string contains consecutive spaces.
2 calls to _geshifilter_whitespace_explode()
- _geshifilter_filter_tips in ./
geshifilter.filtertips.inc - Provides filter tips.
- _geshifilter_parse_attributes in ./
geshifilter.pages.inc - Helper function for parsing the attributes of GeSHi code tags. to get the settings for language, line numbers, etc.
File
- ./
geshifilter.inc, line 101 - General GeSHi filter helper functions.
Code
function _geshifilter_whitespace_explode($string) {
return preg_split('/\\s+/', $string, -1, PREG_SPLIT_NO_EMPTY);
}