Changeset 7655 for trunk/expressoMail1_2/spell_checker/spell_checker.php
- Timestamp:
- 12/14/12 14:30:35 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/spell_checker/spell_checker.php
r6057 r7655 211 211 212 212 //this loop looks through the words array and splits any lines of text that aren't html tags on space, preserving the spaces. 213 for($i=0; $i<$numResults; $i++){213 for($i=0; $i<$numResults; ++$i){ 214 214 // Words alternate between real words and html tags, starting with words. 215 215 if(($i & 1) == 0) // Even-numbered entries are word sets. … … 219 219 // Now go through each word and link up the misspelled ones. 220 220 $numWords = count($words[$i]); 221 for($j=0; $j<$numWords; $j++)221 for($j=0; $j<$numWords; ++$j) 222 222 { 223 223 // $word = utf8_decode($words[$i][$j]); … … 242 242 $words[$i][$j] = str_replace($tmpWord, "<span " . $onClick . " id=\"" . $varName . "_" . $misspelledCount . "_" . $tmpWord . "\" class=\"highlight\">" . stripslashes($tmpWord) . "</span>", $words[$i][$j]); 243 243 244 $misspelledCount++;244 ++$misspelledCount; 245 245 246 246 }
Note: See TracChangeset
for help on using the changeset viewer.