Changeset 7655 for trunk/expressoMail1_2/spell_checker
- Timestamp:
- 12/14/12 14:30:35 (11 years ago)
- Location:
- trunk/expressoMail1_2/spell_checker
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/spell_checker/cpaint/cpaint2.backend-debugger.php
r3400 r7655 72 72 $scriptName = $_SERVER['SCRIPT_FILENAME']; 73 73 $fileLines = file($scriptName); 74 for ($i=0; $i < sizeof($fileLines); $i++) {74 for ($i=0; $i < sizeof($fileLines); ++$i) { 75 75 $line = trim($fileLines[$i]); 76 76 if (substr($line, 0, 9) == "FUNCTION " || substr($line,0,9) == "function ") { … … 78 78 } 79 79 } 80 for ($i = 0; $i < sizeof($match); $i++) {80 for ($i = 0; $i < sizeof($match); ++$i) { 81 81 $line = str_replace("function ", "", $match[$i]); 82 82 $line = str_replace("FUNCTION ", "", $line); -
trunk/expressoMail1_2/spell_checker/cpaint/cpaint2.inc.php
r3400 r7655 846 846 847 847 // now encode non-printable characters 848 for ($i = 0; $i < 32; $i++) {848 for ($i = 0; $i < 32; ++$i) { 849 849 $return_value = str_replace(chr($i), '\u00' . sprintf('%02x', $i), $return_value); 850 850 } // end: for -
trunk/expressoMail1_2/spell_checker/cpaint/json.php
r3400 r7655 126 126 $s = '"'; 127 127 128 for ($i = 0; $i < $l; $i++) {128 for ($i = 0; $i < $l; ++$i) { 129 129 $c = $arg{$i}; 130 130 -
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.