diff options
author | Tobias Brunner <tobias@strongswan.org> | 2008-12-03 09:45:58 +0000 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2008-12-03 09:45:58 +0000 |
commit | 81736d7d243036220621a438e4d92528798fdc09 (patch) | |
tree | 74083f9cd5c2af13cfccca6848990148fb063873 /src/libstrongswan/utils/lexparser.h | |
parent | 0948edbbff1b7afe8d0a8040e2357f2ae227e642 (diff) | |
download | strongswan-81736d7d243036220621a438e4d92528798fdc09.tar.bz2 strongswan-81736d7d243036220621a438e4d92528798fdc09.tar.xz |
added memstr and extract_token_str helper functions
Diffstat (limited to 'src/libstrongswan/utils/lexparser.h')
-rw-r--r-- | src/libstrongswan/utils/lexparser.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/libstrongswan/utils/lexparser.h b/src/libstrongswan/utils/lexparser.h index 1cbbc05f7..46a715b21 100644 --- a/src/libstrongswan/utils/lexparser.h +++ b/src/libstrongswan/utils/lexparser.h @@ -37,12 +37,17 @@ bool eat_whitespace(chunk_t *src); bool match(const char *pattern, const chunk_t *ch); /** - * Extracts a token ending with the first occurence a given termination symbol + * Extracts a token ending with the first occurrence of a given termination symbol */ bool extract_token(chunk_t *token, const char termination, chunk_t *src); /** - * Extracts a token ending with the last occurence a given termination symbol + * Extracts a token ending with the first occurrence of a given null-terminated string + */ +bool extract_token_str(chunk_t *token, const char *termination, chunk_t *src); + +/** + * Extracts a token ending with the last occurrence of a given termination symbol */ bool extract_last_token(chunk_t *token, const char termination, chunk_t *src); |