Skip to content

Commit

Permalink
str invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
Chrono Law committed Nov 16, 2015
1 parent bfb57ec commit 968b881
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions ngxpp/NgxValue.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,19 @@ class NgxValue final
}
}

static void merge(ngx_str_t& c, const ngx_str_t& p, const ngx_str_t& d)
public:
static bool invalid(const ngx_str_t& v)
{
if(!c.data)
{
c = p.data ? p : d;
}
return !v.data || !v.len;
}

//static void merge(ngx_str_t& c, const ngx_str_t& p, const ngx_str_t& d)
//{
// if(!c.data)
// {
// c = p.data ? p : d;
// }
//}
};

#endif //_NGX_VALUE_HPP

0 comments on commit 968b881

Please sign in to comment.