Links
EControl Syntax Editor SDK
TSingleTagCondition.CheckToken Method

Internal function that tests Token.

function CheckToken(const Source: ecString; Token: TSyntToken): Boolean;

If CondType is in [ctEqual, tcMask] and token type is in TokenTypes, testing proceeds, otherwise function returns False. 

If CondType is tcNotEqual and token type is in TokenTypes, testing proceeds, otherwise function returns True. 

If CondType is tcSkip and token type is in TokenTypes, condition function returns True, otherwise function returns False. 

 

After testing token type token string is compared with TagList items. If token string is in TagList, function returns True.

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