xs/URI.xsi

filter: Statementstmt 80.0% 92 / 115 Branchbran 43.5% 141 / 324 Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 53.0% 233 / 439 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« xs/main.xs ↑ Summary xs/main_xsgen.cc »
1 MODE: INLINE
2  
3 static U32 uxs_hashval;
4  
5 MODULE = URI::XS PACKAGE = URI::XS
6 PROTOTYPES: DISABLE
7  
8 BOOT {
9 13 ▶ Stash stash(__PACKAGE__);
Branch: 1 branch
BranchTrueFalseTotal
Stash stash(__PACKAGE__); 13 0 13
10 13 PERL_HASH(uxs_hashval, "URI::XS", 7);
11
12 78 ▶ xs::exp::create_constants(stash, {
Branch: 4 branches
BranchTrueFalseTotal
xs::exp::create_constants(stash, { 13 0 13
xs::exp::create_constants(stash, { 13 0 13
xs::exp::create_constants(stash, { 65 13 78
xs::exp::create_constants(stash, { 0 0 0
13 {"ALLOW_SUFFIX_REFERENCE", URI::Flags::allow_suffix_reference},
14 {"QUERY_PARAM_SEMICOLON", URI::Flags::query_param_semicolon},
15 {"ALLOW_EXTENDED_CHARS", URI::Flags::allow_extended_chars},
16
17 // deprecated names
18 {"ALLOW_LEADING_AUTHORITY", URI::Flags::allow_suffix_reference},
19 {"PARAM_DELIM_SEMICOLON", URI::Flags::query_param_semicolon},
20 });
21 13 ▶ xs::exp::autoexport(stash);
Branch: 2 branches
BranchTrueFalseTotal
xs::exp::autoexport(stash); 13 0 13
xs::exp::autoexport(stash); 13 0 13
22 13 }
23  
24 URI* new (SV* CLASS, string url = string(), int flags = 0) {
25 96 PROTO = CLASS;
26 96 ▶ RETVAL = make_backref<URI>(url, flags);
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = make_backref<URI>(url, flags); 96 0 96
27 96 ▶}
Branch: 1 branch
BranchTrueFalseTotal
} 96 0 96
28 96 ▶ 
Branch: 2 branches
BranchTrueFalseTotal
96 0 96
96 0 96
29 string URI::url (SV* newval = NULL, int flags = 0) {
30 59 ▶ if (newval) {
Branch: 1 branch
BranchTrueFalseTotal
if (newval) { 0 59 59
31 0 ▶ THIS->assign(sv_defined(newval) ? xs::in<string>(newval) : "", flags);
Branch: 4 branches
BranchTrueFalseTotal
THIS->assign(sv_defined(newval) ? xs::in<string>(newval) : "", flags); 0 0 0
THIS->assign(sv_defined(newval) ? xs::in<string>(newval) : "", flags); 0 0 0
THIS->assign(sv_defined(newval) ? xs::in<string>(newval) : "", flags); 0 0 0
THIS->assign(sv_defined(newval) ? xs::in<string>(newval) : "", flags); 0 0 0
32 0 XSRETURN_UNDEF;
33 }
34 59 ▶ RETVAL = THIS->to_string();
Branch: 2 branches
BranchTrueFalseTotal
RETVAL = THIS->to_string(); 59 0 59
RETVAL = THIS->to_string(); 59 0 59
35 }
36
37 string URI::scheme (SV* newval = NULL) : ALIAS(proto=1, protocol=2) {
38 79 ▶ if (newval) {
Branch: 1 branch
BranchTrueFalseTotal
if (newval) { 12 67 79
39 17 ▶ THIS->scheme(sv_defined(newval) ? xs::in<string>(newval) : "");
Branch: 4 branches
BranchTrueFalseTotal
THIS->scheme(sv_defined(newval) ? xs::in<string>(newval) : ""); 12 0 12
THIS->scheme(sv_defined(newval) ? xs::in<string>(newval) : ""); 12 0 12
THIS->scheme(sv_defined(newval) ? xs::in<string>(newval) : ""); 12 0 12
THIS->scheme(sv_defined(newval) ? xs::in<string>(newval) : ""); 7 5 12
40 7 XSRETURN_UNDEF;
41 }
42 67 ▶ RETVAL = THIS->scheme();
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = THIS->scheme(); 67 0 67
43 PERL_UNUSED_VAR(ix);
44 }
45  
46 string URI::user_info (SV* newval = NULL) {
47 59 ▶ if (newval) {
Branch: 1 branch
BranchTrueFalseTotal
if (newval) { 0 59 59
48 0 ▶ THIS->user_info(sv_defined(newval) ? xs::in<string>(newval) : "");
Branch: 4 branches
BranchTrueFalseTotal
THIS->user_info(sv_defined(newval) ? xs::in<string>(newval) : ""); 0 0 0
THIS->user_info(sv_defined(newval) ? xs::in<string>(newval) : ""); 0 0 0
THIS->user_info(sv_defined(newval) ? xs::in<string>(newval) : ""); 0 0 0
THIS->user_info(sv_defined(newval) ? xs::in<string>(newval) : ""); 0 0 0
49 0 XSRETURN_UNDEF;
50 }
51 59 ▶ RETVAL = THIS->user_info();
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = THIS->user_info(); 59 0 59
52 }
53
54 string URI::host (SV* newval = NULL) {
55 67 ▶ if (newval) {
Branch: 1 branch
BranchTrueFalseTotal
if (newval) { 3 64 67
56 3 ▶ THIS->host(sv_defined(newval) ? xs::in<string>(newval) : "");
Branch: 4 branches
BranchTrueFalseTotal
THIS->host(sv_defined(newval) ? xs::in<string>(newval) : ""); 3 0 3
THIS->host(sv_defined(newval) ? xs::in<string>(newval) : ""); 3 0 3
THIS->host(sv_defined(newval) ? xs::in<string>(newval) : ""); 3 0 3
THIS->host(sv_defined(newval) ? xs::in<string>(newval) : ""); 3 0 3
57 3 XSRETURN_UNDEF;
58 }
59 64 ▶ RETVAL = THIS->host();
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = THIS->host(); 64 0 64
60 }
61
62 int URI::port (SV* newval = NULL) {
63 19 ▶ if (newval) {
Branch: 1 branch
BranchTrueFalseTotal
if (newval) { 2 17 19
64 2 THIS->port(SvIV(newval));
65 2 XSRETURN_UNDEF;
66 }
67 17 ▶ RETVAL = THIS->port();
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = THIS->port(); 0 17 17
68 }
69
70 string URI::path (SV* newval = NULL) {
71 65 ▶ if (newval) {
Branch: 1 branch
BranchTrueFalseTotal
if (newval) { 2 63 65
72 2 ▶ THIS->path(sv_defined(newval) ? xs::in<string>(newval) : "");
Branch: 4 branches
BranchTrueFalseTotal
THIS->path(sv_defined(newval) ? xs::in<string>(newval) : ""); 2 0 2
THIS->path(sv_defined(newval) ? xs::in<string>(newval) : ""); 2 0 2
THIS->path(sv_defined(newval) ? xs::in<string>(newval) : ""); 2 0 2
THIS->path(sv_defined(newval) ? xs::in<string>(newval) : ""); 2 0 2
73 2 XSRETURN_UNDEF;
74 }
75 63 ▶ RETVAL = THIS->path();
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = THIS->path(); 63 0 63
76 }
77  
78 0 ▶string URI::path_info ()
Branch: 2 branches
BranchTrueFalseTotal
string URI::path_info () 0 0 0
string URI::path_info () 0 0 0
79
80 string URI::query_string (SV* newval = NULL) {
81 76 ▶ if (newval) {
Branch: 1 branch
BranchTrueFalseTotal
if (newval) { 4 72 76
82 4 ▶ THIS->query_string(sv_defined(newval) ? xs::in<string>(newval) : "");
Branch: 4 branches
BranchTrueFalseTotal
THIS->query_string(sv_defined(newval) ? xs::in<string>(newval) : ""); 4 0 4
THIS->query_string(sv_defined(newval) ? xs::in<string>(newval) : ""); 4 0 4
THIS->query_string(sv_defined(newval) ? xs::in<string>(newval) : ""); 4 0 4
THIS->query_string(sv_defined(newval) ? xs::in<string>(newval) : ""); 4 0 4
83 4 XSRETURN_UNDEF;
84 }
85 72 ▶ RETVAL = THIS->query_string();
Branch: 2 branches
BranchTrueFalseTotal
RETVAL = THIS->query_string(); 72 0 72
RETVAL = THIS->query_string(); 72 0 72
86 }
87
88 string URI::raw_query (SV* newval = NULL) {
89 1 ▶ if (newval) {
Branch: 1 branch
BranchTrueFalseTotal
if (newval) { 0 1 1
90 0 ▶ THIS->raw_query(sv_defined(newval) ? xs::in<string>(newval) : "");
Branch: 4 branches
BranchTrueFalseTotal
THIS->raw_query(sv_defined(newval) ? xs::in<string>(newval) : ""); 0 0 0
THIS->raw_query(sv_defined(newval) ? xs::in<string>(newval) : ""); 0 0 0
THIS->raw_query(sv_defined(newval) ? xs::in<string>(newval) : ""); 0 0 0
THIS->raw_query(sv_defined(newval) ? xs::in<string>(newval) : ""); 0 0 0
91 0 XSRETURN_UNDEF;
92 }
93 1 ▶ RETVAL = THIS->raw_query();
Branch: 2 branches
BranchTrueFalseTotal
RETVAL = THIS->raw_query(); 1 0 1
RETVAL = THIS->raw_query(); 1 0 1
94 }
95
96 Ref URI::query (...) {
97 8 ▶ if (items > 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items > 1) { 2 6 8
98 2 ▶ add_query_args(THIS, MARK+2, items-1, true);
Branch: 1 branch
BranchTrueFalseTotal
add_query_args(THIS, MARK+2, items-1, true); 2 0 2
99 2 XSRETURN_UNDEF;
100 }
101 6 ▶ auto data = data_get(ST(0));
Branch: 1 branch
BranchTrueFalseTotal
auto data = data_get(ST(0)); 6 0 6
102 6 ▶ RETVAL = data->query_hash(THIS);
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = data->query_hash(THIS); 6 0 6
103 }
104
105 void URI::add_query (...) {
106 3 add_query_args(THIS, MARK+2, items-1);
107 }
108  
109 string URI::param (string_view name, SV* val = NULL) : ALIAS(multiparam = 1) {
110 17 ▶ if (val) {
Branch: 1 branch
BranchTrueFalseTotal
if (val) { 1 16 17
111 1 ▶ add_param(THIS, string(name), val, true);
Branch: 3 branches
BranchTrueFalseTotal
add_param(THIS, string(name), val, true); 1 0 1
add_param(THIS, string(name), val, true); 1 0 1
add_param(THIS, string(name), val, true); 1 0 1
112 1 XSRETURN_UNDEF;
113 }
114 16 ▶ if (ix == 0) { // param method
Branch: 1 branch
BranchTrueFalseTotal
if (ix == 0) { // param method 13 3 16
115 13 ▶ auto it = THIS->query().find(name);
Branch: 2 branches
BranchTrueFalseTotal
auto it = THIS->query().find(name); 13 0 13
auto it = THIS->query().find(name); 13 0 13
116 13 ▶ if (it == THIS->query().cend()) XSRETURN_UNDEF;
Branch: 2 branches
BranchTrueFalseTotal
if (it == THIS->query().cend()) XSRETURN_UNDEF; 13 0 13
if (it == THIS->query().cend()) XSRETURN_UNDEF; 1 12 13
117 12 ▶ RETVAL = it->second;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = it->second; 12 0 12
118 } else { // multiparam method
119 3 ▶ size_t nvals = THIS->query().count(name);
Branch: 2 branches
BranchTrueFalseTotal
size_t nvals = THIS->query().count(name); 3 0 3
size_t nvals = THIS->query().count(name); 3 0 3
120 3 switch (nvals) {
121 0 case 0:
122 3 XSRETURN_EMPTY; break;
123 1 case 1:
124 1 ▶ RETVAL = THIS->query().find(name)->second; break;
Branch: 3 branches
BranchTrueFalseTotal
RETVAL = THIS->query().find(name)->second; break; 1 0 1
RETVAL = THIS->query().find(name)->second; break; 1 0 1
RETVAL = THIS->query().find(name)->second; break; 1 0 1
125 2 default:
126 2 SP -= items;
127 2 ▶ EXTEND(SP, (int)nvals);
Branch: 4 branches
BranchTrueFalseTotal
EXTEND(SP, (int)nvals); 2 0 2
EXTEND(SP, (int)nvals); 0 2 2
EXTEND(SP, (int)nvals); 0 2 2
EXTEND(SP, (int)nvals); 0 0 0
128 2 ▶ const auto& query = THIS->query();
Branch: 1 branch
BranchTrueFalseTotal
const auto& query = THIS->query(); 2 0 2
129 2 ▶ auto pair = query.equal_range(name);
Branch: 1 branch
BranchTrueFalseTotal
auto pair = query.equal_range(name); 2 0 2
130 6 ▶ for (auto it = pair.first; it != pair.second; ++it) mPUSHp(it->second.data(), it->second.length());
Branch: 2 branches
BranchTrueFalseTotal
for (auto it = pair.first; it != pair.second; ++it) mPUSHp(it->second.data(), it->second.length()); 4 0 4
for (auto it = pair.first; it != pair.second; ++it) mPUSHp(it->second.data(), it->second.length()); 4 2 6
131 2 XSRETURN(nvals);
132 }
133 }
134 }
135  
136 int URI::nparam () {
137 1 ▶ RETVAL = THIS->query().size();
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = THIS->query().size(); 0 1 1
138 }
139
140 size_t URI::remove_param (string name) {
141 0 ▶ RETVAL = THIS->query().erase(name);
Branch: 3 branches
BranchTrueFalseTotal
RETVAL = THIS->query().erase(name); 0 0 0
RETVAL = THIS->query().erase(name); 0 0 0
RETVAL = THIS->query().erase(name); 0 0 0
142 }
143
144 string URI::fragment (SV* newval = NULL) : ALIAS(hash=1) {
145 122 ▶ if (newval) {
Branch: 1 branch
BranchTrueFalseTotal
if (newval) { 2 120 122
146 2 ▶ THIS->fragment(sv_defined(newval) ? xs::in<string>(newval) : "");
Branch: 4 branches
BranchTrueFalseTotal
THIS->fragment(sv_defined(newval) ? xs::in<string>(newval) : ""); 2 0 2
THIS->fragment(sv_defined(newval) ? xs::in<string>(newval) : ""); 2 0 2
THIS->fragment(sv_defined(newval) ? xs::in<string>(newval) : ""); 2 0 2
THIS->fragment(sv_defined(newval) ? xs::in<string>(newval) : ""); 2 0 2
147 2 XSRETURN_UNDEF;
148 }
149 120 ▶ RETVAL = THIS->fragment();
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = THIS->fragment(); 120 0 120
150 PERL_UNUSED_VAR(ix);
151 }
152
153 string URI::location (SV* newval = NULL) {
154 8 ▶ if (newval) {
Branch: 1 branch
BranchTrueFalseTotal
if (newval) { 2 6 8
155 2 ▶ THIS->location(sv_defined(newval) ? xs::in<string>(newval) : "");
Branch: 4 branches
BranchTrueFalseTotal
THIS->location(sv_defined(newval) ? xs::in<string>(newval) : ""); 2 0 2
THIS->location(sv_defined(newval) ? xs::in<string>(newval) : ""); 2 0 2
THIS->location(sv_defined(newval) ? xs::in<string>(newval) : ""); 2 0 2
THIS->location(sv_defined(newval) ? xs::in<string>(newval) : ""); 2 0 2
156 2 XSRETURN_UNDEF;
157 }
158 6 ▶ RETVAL = THIS->location();
Branch: 2 branches
BranchTrueFalseTotal
RETVAL = THIS->location(); 6 0 6
RETVAL = THIS->location(); 6 0 6
159 }
160  
161 63 uint16_t URI::explicit_port ()
162  
163 0 uint16_t URI::default_port ()
164  
165 2 ▶string URI::explicit_location ()
Branch: 2 branches
BranchTrueFalseTotal
string URI::explicit_location () 2 0 2
string URI::explicit_location () 2 0 2
166
167 string URI::relative () : ALIAS(rel=1) {
168 2 ▶ RETVAL = THIS->relative();
Branch: 2 branches
BranchTrueFalseTotal
RETVAL = THIS->relative(); 2 0 2
RETVAL = THIS->relative(); 2 0 2
169 PERL_UNUSED_VAR(ix);
170 }
171
172 string URI::to_string (...) : ALIAS(as_string=1) {
173 243 ▶ RETVAL = THIS->to_string();
Branch: 2 branches
BranchTrueFalseTotal
RETVAL = THIS->to_string(); 243 0 243
RETVAL = THIS->to_string(); 243 0 243
174 PERL_UNUSED_VAR(ix);
175 }
176  
177 13 bool URI::secure ()
178  
179 void URI::set (Sv source, int flags = 0) : ALIAS(assign=1) {
180 PERL_UNUSED_VAR(ix);
181 16 ▶ if (source.is_string()) THIS->assign(xs::in<string>(source), flags);
Branch: 3 branches
BranchTrueFalseTotal
if (source.is_string()) THIS->assign(xs::in<string>(source), flags); 11 4 15
if (source.is_string()) THIS->assign(xs::in<string>(source), flags); 11 0 11
if (source.is_string()) THIS->assign(xs::in<string>(source), flags); 10 1 11
182 4 ▶ else THIS->assign(*xs::in<xs::nn<const URI*>>(source));
Branch: 2 branches
BranchTrueFalseTotal
else THIS->assign(*xs::in<xs::nn<const URI*>>(source)); 4 0 4
else THIS->assign(*xs::in<xs::nn<const URI*>>(source)); 3 1 4
183 }
184
185 bool URI::equals (Sv other, ...) {
186 30 ▶ if (other.is_string()) RETVAL = THIS->to_string() == xs::in<string_view>(other);
Branch: 4 branches
BranchTrueFalseTotal
if (other.is_string()) RETVAL = THIS->to_string() == xs::in<string_view>(other); 30 0 30
if (other.is_string()) RETVAL = THIS->to_string() == xs::in<string_view>(other); 30 0 30
if (other.is_string()) RETVAL = THIS->to_string() == xs::in<string_view>(other); 30 0 30
if (other.is_string()) RETVAL = THIS->to_string() == xs::in<string_view>(other); 30 0 30
187 else {
188 0 ▶ Object obj = other;
Branch: 1 branch
BranchTrueFalseTotal
Object obj = other; 0 0 0
189 0 ▶ if (obj && obj.stash().isa("URI::XS")) RETVAL = THIS->equals(*xs::in<URI*>(obj));
Branch: 9 branches
BranchTrueFalseTotal
if (obj && obj.stash().isa("URI::XS")) RETVAL = THIS->equals(*xs::in<URI*>(obj)); 0 0 0
if (obj && obj.stash().isa("URI::XS")) RETVAL = THIS->equals(*xs::in<URI*>(obj)); 0 0 0
if (obj && obj.stash().isa("URI::XS")) RETVAL = THIS->equals(*xs::in<URI*>(obj)); 0 0 0
if (obj && obj.stash().isa("URI::XS")) RETVAL = THIS->equals(*xs::in<URI*>(obj)); 0 0 0
if (obj && obj.stash().isa("URI::XS")) RETVAL = THIS->equals(*xs::in<URI*>(obj)); 0 0 0
if (obj && obj.stash().isa("URI::XS")) RETVAL = THIS->equals(*xs::in<URI*>(obj)); 0 0 0
if (obj && obj.stash().isa("URI::XS")) RETVAL = THIS->equals(*xs::in<URI*>(obj)); 0 0 0
if (obj && obj.stash().isa("URI::XS")) RETVAL = THIS->equals(*xs::in<URI*>(obj)); 0 0 0
if (obj && obj.stash().isa("URI::XS")) RETVAL = THIS->equals(*xs::in<URI*>(obj)); 0 0 0
190 0 else RETVAL = false;
191 0 }
192 }
193  
194 URISP URI::clone () {
195 2 PROTO = Object(ST(0)).stash();
196 2 ▶ if (dynamic_cast<URIStrict*>(THIS)) RETVAL = URI::create(*THIS);
Branch: 2 branches
BranchTrueFalseTotal
if (dynamic_cast<URIStrict*>(THIS)) RETVAL = URI::create(*THIS); 2 0 2
if (dynamic_cast<URIStrict*>(THIS)) RETVAL = URI::create(*THIS); 2 0 2
197 2 ▶ else RETVAL = new URI(*THIS);
Branch: 3 branches
BranchTrueFalseTotal
else RETVAL = new URI(*THIS); 2 0 2
else RETVAL = new URI(*THIS); 1 1 2
else RETVAL = new URI(*THIS); 1 0 1
198 1 ▶}
Branch: 3 branches
BranchTrueFalseTotal
} 1 0 1
} 1 0 1
} 0 0 0
199
200 void URI::path_segments (...) {
201 8 ▶ if (items > 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items > 1) { 3 5 8
202 3 std::vector<string_view> list;
203 3 ▶ list.reserve(items-1);
Branch: 1 branch
BranchTrueFalseTotal
list.reserve(items-1); 3 0 3
204 10 ▶ for (I32 i = 1; i < items; ++i) list.push_back(xs::in<string_view>(ST(i)));
Branch: 3 branches
BranchTrueFalseTotal
for (I32 i = 1; i < items; ++i) list.push_back(xs::in<string_view>(ST(i))); 7 0 7
for (I32 i = 1; i < items; ++i) list.push_back(xs::in<string_view>(ST(i))); 7 0 7
for (I32 i = 1; i < items; ++i) list.push_back(xs::in<string_view>(ST(i))); 7 3 10
205 3 ▶ THIS->path_segments(list.cbegin(), list.cend());
Branch: 1 branch
BranchTrueFalseTotal
THIS->path_segments(list.cbegin(), list.cend()); 3 0 3
206 3 XSRETURN_EMPTY;
207 3 }
208 5 ▶ const std::vector<string> list = THIS->path_segments();
Branch: 1 branch
BranchTrueFalseTotal
const std::vector<string> list = THIS->path_segments(); 5 0 5
209 5 ▶ EXTEND(SP, (int)list.size());
Branch: 4 branches
BranchTrueFalseTotal
EXTEND(SP, (int)list.size()); 5 0 5
EXTEND(SP, (int)list.size()); 0 5 5
EXTEND(SP, (int)list.size()); 0 5 5
EXTEND(SP, (int)list.size()); 0 0 0
210 11 ▶ for (auto it = list.begin(); it != list.end(); ++it) mPUSHp(it->data(), it->length());
Branch: 2 branches
BranchTrueFalseTotal
for (auto it = list.begin(); it != list.end(); ++it) mPUSHp(it->data(), it->length()); 6 0 6
for (auto it = list.begin(); it != list.end(); ++it) mPUSHp(it->data(), it->length()); 6 5 11
211 }
212  
213 0 ▶bool URI::empty ()
Branch: 1 branch
BranchTrueFalseTotal
bool URI::empty () 0 0 0
214  
215 bool URI::to_bool (...) {
216 7 ▶ RETVAL = !THIS->empty();
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = !THIS->empty(); 0 7 7
217 }
218  
219 string URI::user (SV* newval = NULL) {
220 0 ▶ if (newval) {
Branch: 1 branch
BranchTrueFalseTotal
if (newval) { 0 0 0
221 0 ▶ THIS->user(xs::in<string>(newval));
Branch: 2 branches
BranchTrueFalseTotal
THIS->user(xs::in<string>(newval)); 0 0 0
THIS->user(xs::in<string>(newval)); 0 0 0
222 0 XSRETURN_UNDEF;
223 }
224 0 ▶ RETVAL = THIS->user();
Branch: 2 branches
BranchTrueFalseTotal
RETVAL = THIS->user(); 0 0 0
RETVAL = THIS->user(); 0 0 0
225 }
226  
227 string URI::password (SV* newval = NULL) {
228 0 ▶ if (newval) {
Branch: 1 branch
BranchTrueFalseTotal
if (newval) { 0 0 0
229 0 ▶ THIS->password(xs::in<string>(newval));
Branch: 2 branches
BranchTrueFalseTotal
THIS->password(xs::in<string>(newval)); 0 0 0
THIS->password(xs::in<string>(newval)); 0 0 0
230 0 XSRETURN_UNDEF;
231 }
232 0 ▶ RETVAL = THIS->password();
Branch: 2 branches
BranchTrueFalseTotal
RETVAL = THIS->password(); 0 0 0
RETVAL = THIS->password(); 0 0 0
233 }
« xs/main.xs ↑ Summary xs/main_xsgen.cc »