We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bfb57ec commit 968b881Copy full SHA for 968b881
ngxpp/NgxValue.hpp
@@ -80,13 +80,19 @@ class NgxValue final
80
}
81
82
83
- static void merge(ngx_str_t& c, const ngx_str_t& p, const ngx_str_t& d)
+public:
84
+ static bool invalid(const ngx_str_t& v)
85
{
- if(!c.data)
86
- {
87
- c = p.data ? p : d;
88
- }
+ return !v.data || !v.len;
89
+
+ //static void merge(ngx_str_t& c, const ngx_str_t& p, const ngx_str_t& d)
90
+ //{
91
+ // if(!c.data)
92
+ // {
93
+ // c = p.data ? p : d;
94
+ // }
95
+ //}
96
};
97
98
#endif //_NGX_VALUE_HPP
0 commit comments