EControl Syntax Editor SDK
TSyntAutoReplace.FindReplaceItem Method

Finds AWord string in Items and returns a corresponding auto-replace string in AReplace.

function FindReplaceItem(const AWord: ecString; out AReplace: ecString): Boolean;

FindReplaceItem method finds AWord string in Word part of Items, puts Replace part of Item in AReplace and returns true. If no Item was found it returns false and doesn't change AReplace. 

If MaintainCase property is true FindReplace puts all characters of AReplace to lowercase and the first character' case of AReplace coincides with the first character' case of AWord.

Copyright (c) 2004-2011. All rights reserved.
What do you think about this topic? Send feedback!