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

Last change on this file since 5236 was 5236, checked in by nmedfort, 2 years ago

Reverted last change to support gcc 4.9 prior to changing UCD property table structure.

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