|
@@ 144-146 (lines=3) @@
|
| 141 |
|
if ( "'" !== $apos || "'" !== $closing_single_quote ) { |
| 142 |
|
$dynamic[ '/\'(\d\d)\'(?=\Z|[.,:;!?)}\-\]]|>|' . $spaces . ')/' ] = $apos_flag . '$1' . $closing_single_quote; |
| 143 |
|
} |
| 144 |
|
if ( "'" !== $apos || '"' !== $closing_quote ) { |
| 145 |
|
$dynamic[ '/\'(\d\d)"(?=\Z|[.,:;!?)}\-\]]|>|' . $spaces . ')/' ] = $apos_flag . '$1' . $closing_quote; |
| 146 |
|
} |
| 147 |
|
|
| 148 |
|
// '99 '99s '99's (apostrophe) But never '9 or '99% or '999 or '99.0. |
| 149 |
|
if ( "'" !== $apos ) { |
|
@@ 173-175 (lines=3) @@
|
| 170 |
|
$dynamic = array(); |
| 171 |
|
|
| 172 |
|
// Quoted Numbers like "42" |
| 173 |
|
if ( '"' !== $opening_quote && '"' !== $closing_quote ) { |
| 174 |
|
$dynamic[ '/(?<=\A|' . $spaces . ')"(\d[.,\d]*)"/' ] = $open_q_flag . '$1' . $closing_quote; |
| 175 |
|
} |
| 176 |
|
|
| 177 |
|
// Double quote at start, or preceded by (, {, <, [, -, or spaces, and not followed by spaces. |
| 178 |
|
if ( '"' !== $opening_quote ) { |
|
@@ 178-180 (lines=3) @@
|
| 175 |
|
} |
| 176 |
|
|
| 177 |
|
// Double quote at start, or preceded by (, {, <, [, -, or spaces, and not followed by spaces. |
| 178 |
|
if ( '"' !== $opening_quote ) { |
| 179 |
|
$dynamic[ '/(?<=\A|[([{\-]|<|' . $spaces . ')"(?!' . $spaces . ')/' ] = $open_q_flag; |
| 180 |
|
} |
| 181 |
|
|
| 182 |
|
$dynamic_characters['quote'] = array_keys( $dynamic ); |
| 183 |
|
$dynamic_replacements['quote'] = array_values( $dynamic ); |