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

Last change on this file since 5091 was 5091, checked in by xuedongx, 3 years ago

delete GCB as a separate type.

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