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

Last change on this file since 5235 was 5234, checked in by nmedfort, 3 years ago

Modified memory alignment mechanism for GetPropertyValueGrepString? + misc. changes.

File size: 888 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 PropertyString & getPropertyValueGrepString(const std::string & prop);
30
31}
32
33#endif // RESOLVE_PROPERTIES_H
Note: See TracBrowser for help on using the repository browser.