| TokenBundleAdd Method (Token, Int32, Boolean) |
Adds a new token to the set of alternatives.
Namespace: Sdl.LanguagePlatform.Core.TokenizationAssembly: Sdl.LanguagePlatform.Core (in Sdl.LanguagePlatform.Core.dll) Version: 1.6.0.0 (1.7.3164.0)
Syntaxpublic void Add(
Token t,
int priority,
bool keepDuplicates
)
Public Sub Add (
t As Token,
priority As Integer,
keepDuplicates As Boolean
)
public:
void Add(
Token^ t,
int priority,
bool keepDuplicates
)
member Add :
t : Token *
priority : int *
keepDuplicates : bool -> unit
Parameters
- t
- Type: Sdl.LanguagePlatform.Core.TokenizationToken
The token - priority
- Type: SystemInt32
The priority assigned to the token - keepDuplicates
- Type: SystemBoolean
If true, the token will always be added. If false,
and the collection contains a token which Equals t, only the one with the
higher priority will be kept.
See Also
Comments