BTRFS: Implement BTree::Path and change _Find.
[haiku.git] / src / apps / terminal / PatternEvaluator.h
blob68d58e21bbc1389ff262e14a52f973541490c69f
1 /*
2 * Copyright 2010, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef PATTERN_EVALUATOR_H
6 #define PATTERN_EVALUATOR_H
9 #include <String.h>
12 class PatternEvaluator {
13 public:
14 class PlaceholderMapper;
16 public:
17 static BString Evaluate(const char* pattern,
18 PlaceholderMapper& mapper);
23 class PatternEvaluator::PlaceholderMapper {
24 public:
25 virtual ~PlaceholderMapper();
27 virtual bool MapPlaceholder(char placeholder,
28 int64 number, bool numberGiven,
29 BString& _string) = 0;
33 #endif // PATTERN_EVALUATOR_H