xref: /unit/src/nxt_parse.h (revision 0:a63ceefd6ab0)
1 
2 /*
3  * Copyright (C) Igor Sysoev
4  * Copyright (C) NGINX, Inc.
5  */
6 
7 #ifndef _NXT_PARSE_H_INCLUDED_
8 #define _NXT_PARSE_H_INCLUDED_
9 
10 
11 NXT_EXPORT nxt_int_t nxt_int_parse(const u_char *p, size_t len);
12 NXT_EXPORT ssize_t nxt_size_t_parse(const u_char *p, size_t len);
13 NXT_EXPORT ssize_t nxt_size_parse(const u_char *p, size_t len);
14 NXT_EXPORT nxt_off_t nxt_off_t_parse(const u_char *p, size_t len);
15 
16 NXT_EXPORT nxt_int_t nxt_str_int_parse(nxt_str_t *s);
17 
18 NXT_EXPORT double nxt_number_parse(const u_char **start, const u_char *end);
19 
20 NXT_EXPORT nxt_time_t nxt_time_parse(const u_char *p, size_t len);
21 NXT_EXPORT nxt_int_t nxt_term_parse(const u_char *p, size_t len,
22     nxt_bool_t seconds);
23 
24 
25 #endif /* _NXT_PARSE_H_INCLUDED_ */
26