@@ 1981-1984 (lines=4) @@ | ||
1978 | $i = false; |
|
1979 | foreach($temp as &$value) { |
|
1980 | // Only count/replace in alternating array entries |
|
1981 | if ($i = !$i) { |
|
1982 | $value = preg_replace($from,$to,$value); |
|
1983 | $value = self::_translateSeparator($fromSeparator,$toSeparator,$value,$inBraces); |
|
1984 | } |
|
1985 | } |
|
1986 | unset($value); |
|
1987 | // Then rebuild the formula string |
|
@@ 1989-1993 (lines=5) @@ | ||
1986 | unset($value); |
|
1987 | // Then rebuild the formula string |
|
1988 | $formula = implode('"',$temp); |
|
1989 | } else { |
|
1990 | // If there's no quoted strings, then we do a simple count/replace |
|
1991 | $formula = preg_replace($from,$to,$formula); |
|
1992 | $formula = self::_translateSeparator($fromSeparator,$toSeparator,$formula,$inBraces); |
|
1993 | } |
|
1994 | } |
|
1995 | ||
1996 | return $formula; |