source: icGREP/icgrep-devel/icgrep/UCD/resolve_properties.h @ 4809

Last change on this file since 4809 was 4809, checked in by nmedfort, 4 years ago

Refactored UCD property resolution.

File size: 693 bytes
Line 
1#ifndef RESOLVE_PROPERTIES_H
2#define RESOLVE_PROPERTIES_H
3
4#include <UCD/unicode_set.h>
5
6namespace re {
7    class RE;
8    class Name;   
9}
10
11namespace UCD {
12
13class UnicodePropertyExpressionError : public std::exception {
14public:
15    UnicodePropertyExpressionError(const std::string && msg) noexcept : _msg(msg) {}
16    const char* what() const noexcept { return _msg.c_str();}
17private:
18    inline UnicodePropertyExpressionError() noexcept {}
19    const std::string _msg;
20};
21
22re::RE * resolvePropertyDefinition(re::Name * const property);
23std::string resolvePropertyFunction(re::Name * const property);
24UCD::UnicodeSet resolveUnicodeSet(re::Name * const name);
25
26}
27
28#endif // RESOLVE_PROPERTIES_H
Note: See TracBrowser for help on using the repository browser.