//Pro SpellCheck error nastavi zaporne Len static void STASpellCheck(Langs lang, SelectedWord[] nws, PhraseWords newText) { //Spell check var errorIdxs = RunSpellCheckWords.STACheck(lang, nws); //update Len for wrong words if (errorIdxs != null) { foreach (var errIdx in errorIdxs) { newText.Idxs[errIdx] = new TPosLen() { Pos = newText.Idxs[errIdx].Pos, Len = (sbyte)-newText.Idxs[errIdx].Len } } } ; }
//Pro SpellCheck error nastavi zaporne Len. public static void STASpellCheck(Langs lang, SelectedWords selected) { if (selected.selected == null || selected.selected.Length == 0) { return; } //Spell check var errorIdxs = RunSpellCheckWords.STACheck(lang, selected.selected); //update Len for wrong words if (errorIdxs != null) { foreach (var errIdx in errorIdxs) { selected.phrase.Idxs[errIdx] = new TPosLen() { Pos = selected.phrase.Idxs[errIdx].Pos, Len = (sbyte)-selected.phrase.Idxs[errIdx].Len } } } ; }