Changeset 985
- Timestamp:
- 03/22/2004 01:34:32 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions-formatting.php
r980 r985 19 19 $curl = str_replace($cockney, $cockneyreplace, $curl); 20 20 21 $curl = preg_replace("/'s/", "’s", $curl);21 $curl = preg_replace("/'s/", '’s', $curl); 22 22 $curl = preg_replace("/'(\d\d(?:’|')?s)/", "’$1", $curl); 23 23 $curl = preg_replace('/(\s|\A|")\'/', '$1‘', $curl); 24 $curl = preg_replace( "/(\d+)\"/", "$1″", $curl);25 $curl = preg_replace("/(\d+)'/", "$1′", $curl);24 $curl = preg_replace('/(\d+)"/', '$1″', $curl); 25 $curl = preg_replace("/(\d+)'/", '$1′', $curl); 26 26 $curl = preg_replace("/(\S)'([^'\s])/", "$1’$2", $curl); 27 $curl = preg_replace('/ "([\s.,!?;:&\']|\Z)/', '”$1', $curl);28 $curl = preg_replace('/(\s|\A)"/', '$1“', $curl);27 $curl = preg_replace('/(\s|\A)"(?!\s)/', '$1“$2', $curl); 28 $curl = preg_replace('/"(\s|\Z)/', '”$1', $curl); 29 29 $curl = preg_replace("/'([\s.]|\Z)/", '’$1', $curl); 30 30 $curl = preg_replace("/\(tm\)/i", '™', $curl);
Note: See TracChangeset
for help on using the changeset viewer.