Line | |
---|
1 |
|
---|
2 | #ifndef STRINGFORMAT_H_
|
---|
3 | #define STRINGFORMAT_H_
|
---|
4 |
|
---|
5 | #include "boost/xpressive/xpressive.hpp"
|
---|
6 |
|
---|
7 | using boost::xpressive::sregex;
|
---|
8 |
|
---|
9 | /**
|
---|
10 | * This class defines some regular expressions ...
|
---|
11 | *
|
---|
12 | * @author Sebastian Mies
|
---|
13 | */
|
---|
14 | class StringFormat {
|
---|
15 | public:
|
---|
16 | // regex: string
|
---|
17 | static const sregex rstring;
|
---|
18 |
|
---|
19 | // regex: base64 encoding
|
---|
20 | static const sregex rbase64;
|
---|
21 |
|
---|
22 | // regex: raw alphabet
|
---|
23 | static const sregex rchars;
|
---|
24 |
|
---|
25 | // regex: integer
|
---|
26 | static const sregex rint;
|
---|
27 |
|
---|
28 | // regex: binary label
|
---|
29 | static const sregex rlabel;
|
---|
30 |
|
---|
31 | // regex: dot separated identifier
|
---|
32 | static const sregex rid;
|
---|
33 |
|
---|
34 | // regex: "leaf" data
|
---|
35 | static const sregex rdata;
|
---|
36 |
|
---|
37 | // regex: fields
|
---|
38 | static const sregex rfield_label;
|
---|
39 | static const sregex rfield;
|
---|
40 | static const sregex rfields;
|
---|
41 |
|
---|
42 | // regex: objects
|
---|
43 | static const sregex robject_data;
|
---|
44 | static const sregex robject;
|
---|
45 | static const sregex robjects;
|
---|
46 | };
|
---|
47 |
|
---|
48 | #endif /* STRINGFORMAT_H_ */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.