Changeset 6057 for trunk/expressoMail1_2/spell_checker
- Timestamp:
- 04/27/12 09:17:30 (12 years ago)
- Location:
- trunk/expressoMail1_2/spell_checker
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/spell_checker/cpaint/cpaint2.proxy.php
r3400 r6057 127 127 } 128 128 129 list($http_headers, $http_body) = split("\r\n\r\n", $http_data, 2);129 list($http_headers, $http_body) = preg_split('/\r\n\r\n/', $http_data, 2); 130 130 echo($http_body); 131 131 @fclose($cp_socket); -
trunk/expressoMail1_2/spell_checker/pspell_comp.php
r3400 r6057 201 201 202 202 //parse output 203 $lines = split("\n",$out);203 $lines = preg_split('/\n/',$out); 204 204 foreach ($lines as $line){ 205 205 $line = trim($line); … … 210 210 if($line[0] == '&'){ 211 211 $line = preg_replace('/&.*?: /','',$line); 212 return split(',',$line);212 return preg_split('/, /',$line); 213 213 } 214 214 } -
trunk/expressoMail1_2/spell_checker/spell_checker.php
r3400 r6057 197 197 198 198 //splits the string on any html tags, preserving the tags and putting them in the $words array 199 $words = preg_split( "/(<[^<>]*>)/", $string, -1, PREG_SPLIT_DELIM_CAPTURE);199 $words = preg_split('/(<[^<>]*>)/', $string, -1, PREG_SPLIT_DELIM_CAPTURE); 200 200 201 201 $numResults = count($words); //the number of elements in the array. … … 215 215 if(($i & 1) == 0) // Even-numbered entries are word sets. 216 216 { 217 $words[$i] = preg_split( "/(\s+|\ )/", $words[$i], -1, PREG_SPLIT_DELIM_CAPTURE); //then split it on the spaces217 $words[$i] = preg_split('/(\s+|\ )/', $words[$i], -1, PREG_SPLIT_DELIM_CAPTURE); //then split it on the spaces 218 218 219 219 // Now go through each word and link up the misspelled ones.
Note: See TracChangeset
for help on using the changeset viewer.