-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathparameter.h
81 lines (53 loc) · 2.27 KB
/
parameter.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#ifndef _H_PARAMETER
#define _H_PARAMETER
#ifndef PHPCPP_H
#include <phpcpp.h>
#endif
#ifndef _H_TEXT
#include "text.h"
#endif
#include <ostream>
//! It made sense at the time to have these constant string values pre-formed.
struct CPunk {
//! initialised with PHP class name
static const std::string keytable_classname;
//! initialised with PHP class name
static const std::string valuelist_classname;
//! initialised with PHP class name
static const std::string datetime_classname;
};
namespace pun {
class KeyTable;
class Re8map;
class Recap8;
class Token8;
class Pcre8;
Pype getPype(Php::Value& val);
Pype getPype(Php::Type t);
const char* getPypeId(Pype t);
Pcre8* check_Pcre8(Php::Parameters& params,unsigned int offset=0);
Token8* check_Token8(Php::Parameters& params, unsigned int offset=0);
Re8map* check_Re8map(Php::Parameters& params, unsigned int offset=0);
KeyTable* check_KeyTable(Php::Parameters& params, unsigned int offset=0);
KeyTable* castKeyTable(Php::Value& val);
Recap8* option_Recap8(Php::Parameters& params, unsigned int offset=0);
std::string hexUniStr8(const svx::string_view& hexval);
void hexUniStr8(const svx::string_view& hexval, std::ostream& os);
bool option_Array(Php::Parameters& params, unsigned int offset=0);
const char* getTypeName(Php::Type);
int check_IntString(Php::Parameters& params);
void need_Value(Php::Parameters& params,unsigned int offset=0);
bool check_String(Php::Parameters& params,unsigned int offset = 0);
int check_Int(Php::Parameters& params,unsigned int offset = 0);
bool option_Int(Php::Parameters& params,unsigned int offset);
std::string missingParameter(const char* shouldBe, unsigned int offset);
std::string invalidCharacter(char32_t unc8);
void serialize_keyTable(Php::Base* base, std::ostream& out);
void serialize_valueList(Php::Base* base, std::ostream& out);
void serialize_str(const char* s, size_t slen, std::ostream& out);
void unserialize_str(std::string& cval, std::istream& ins);
void serialize(Php::Value& val, std::ostream& out);
void unserialize(Php::Value& val, std::istream& ins);
Php::Array to_array(const ValueMap &vmap);
};
#endif