diff options
Diffstat (limited to 'src/include/mime-utils.h')
-rw-r--r-- | src/include/mime-utils.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/include/mime-utils.h b/src/include/mime-utils.h new file mode 100644 index 0000000..732234a --- /dev/null +++ b/src/include/mime-utils.h @@ -0,0 +1,27 @@ +/** -------------------------------------------------------------------- + * @file mime.cc + * @brief Implementation of main mime parser components + * @author Andreas Aardal Hanssen + * @date 2002-2005 + * ----------------------------------------------------------------- **/ +#ifndef mime_utils_h_included +#define mime_utils_h_included + +#include <string.h> +#include <ctype.h> +#include <stdio.h> +#include <errno.h> + +using namespace ::std; + +inline bool compareStringToQueue(const char *s_in, char *bqueue, + int pos, int size) +{ + for (int i = 0; i < size; ++i) + if (s_in[i] != bqueue[(pos + i) % size]) + return false; + + return true; +} + +#endif |