diff options
author | Igor Sysoev <igor@sysoev.ru> | 2017-01-17 20:00:00 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2017-01-17 20:00:00 +0300 |
commit | 16cbf3c076a0aca6d47adaf3f719493674cf2363 (patch) | |
tree | e6530480020f62a2bdbf249988ec3e2a751d3927 /src/nxt_parse.h | |
download | unit-16cbf3c076a0aca6d47adaf3f719493674cf2363.tar.gz unit-16cbf3c076a0aca6d47adaf3f719493674cf2363.tar.bz2 |
Initial version.
Diffstat (limited to 'src/nxt_parse.h')
-rw-r--r-- | src/nxt_parse.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/nxt_parse.h b/src/nxt_parse.h new file mode 100644 index 00000000..0643af1e --- /dev/null +++ b/src/nxt_parse.h @@ -0,0 +1,25 @@ + +/* + * Copyright (C) Igor Sysoev + * Copyright (C) NGINX, Inc. + */ + +#ifndef _NXT_PARSE_H_INCLUDED_ +#define _NXT_PARSE_H_INCLUDED_ + + +NXT_EXPORT nxt_int_t nxt_int_parse(const u_char *p, size_t len); +NXT_EXPORT ssize_t nxt_size_t_parse(const u_char *p, size_t len); +NXT_EXPORT ssize_t nxt_size_parse(const u_char *p, size_t len); +NXT_EXPORT nxt_off_t nxt_off_t_parse(const u_char *p, size_t len); + +NXT_EXPORT nxt_int_t nxt_str_int_parse(nxt_str_t *s); + +NXT_EXPORT double nxt_number_parse(const u_char **start, const u_char *end); + +NXT_EXPORT nxt_time_t nxt_time_parse(const u_char *p, size_t len); +NXT_EXPORT nxt_int_t nxt_term_parse(const u_char *p, size_t len, + nxt_bool_t seconds); + + +#endif /* _NXT_PARSE_H_INCLUDED_ */ |