definition module EdTextFind;

import EdTypes;
    
Text_Balance :: !Int !Int !Int !Int !Text -> (!Bool,!PartTSel);
Text_UndoReplaceAll :: !ReplacedAll !Text -> (!Bool,!ReplacedAll,!PartTSel,!Text);
Text_ReplaceAll :: !FindInfo !Text -> (!Bool,!ReplacedAll,!PartTSel,!Text);
Text_Find :: !Int !Int !Int !FindInfo !Text -> (!Bool,!PartTSel);
Text_Replace :: !Int !Int !FindInfo !Text -> (!Bool,!Text);
StringMatch	:: !Int !Int !String !String !Bool !Bool -> Bool;

AddCharBefore :: !Char !TLine -> TLine;
AddStringBefore :: !String !TLine -> TLine;
AddWordBefore :: !String !TLine -> TLine;
RemoveCharBefore :: !TLine -> (!Char,!TLine);
RemoveWordBefore :: !TLine -> (!String,!TLine);
AddCharAfter :: !Char !TLine -> TLine;
AddStringAfter :: !String !TLine -> TLine;
AddWordAfter :: !String !TLine -> TLine;
RemoveCharAfter :: !TLine -> (!Char,!TLine);
RemoveWordAfter :: !TLine -> (!String,!TLine);
