function ExcelRange::expression_to_ranges in Feeds Excel 7
Same name and namespace in other branches
- 6 includes/ExcelRange.inc \ExcelRange::expression_to_ranges()
Convert a string expression to a ranges array.
1 call to ExcelRange::expression_to_ranges()
- ExcelRange::__construct in includes/
ExcelRange.inc - Init object.
File
- includes/
ExcelRange.inc, line 45
Class
Code
function expression_to_ranges($expression) {
$expression = strtoupper($expression);
$raw_ranges = explode(EXCELRANGE_SEP, $expression);
$this->raw_ranges = $raw_ranges;
foreach ($raw_ranges as $range_expression) {
$range = $this
->range_expression_to_range_array($range_expression);
if ($range) {
$this->ranges[] = $range;
}
}
}