2 * Copyright 2010, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
5 #ifndef PATTERN_EVALUATOR_H
6 #define PATTERN_EVALUATOR_H
12 class PatternEvaluator
{
14 class PlaceholderMapper
;
17 static BString
Evaluate(const char* pattern
,
18 PlaceholderMapper
& mapper
);
23 class PatternEvaluator::PlaceholderMapper
{
25 virtual ~PlaceholderMapper();
27 virtual bool MapPlaceholder(char placeholder
,
28 int64 number
, bool numberGiven
,
29 BString
& _string
) = 0;
33 #endif // PATTERN_EVALUATOR_H