-
Notifications
You must be signed in to change notification settings - Fork 0
/
token8.h
37 lines (26 loc) · 735 Bytes
/
token8.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef _H_TOKEN
#define _H_TOKEN
#include <phpcpp.h>
#include "parameter.h"
namespace pun {
class Token8: public Php::Base {
public:
static const char* PHP_NAME;
static void setup_ext(Php::Extension& ext);
Token8();
Token8(const Token8 &m);
Token8 &operator=(const Token8 &m);
Token8(const Token8&& m);
Token8 &operator=(const Token8 &&m);
Php::Value getValue() const;
Php::Value getId() const;
Php::Value getLine() const;
Php::Value isSingle() const;
svx::string_view _value; // view of original source string
int _id;
int _line;
bool _isSingle;
char32_t _unicode;
};
};
#endif