diff options
Diffstat (limited to 'include/StringOperations.h')
| -rw-r--r-- | include/StringOperations.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/include/StringOperations.h b/include/StringOperations.h new file mode 100644 index 0000000..81d7144 --- /dev/null +++ b/include/StringOperations.h @@ -0,0 +1,31 @@ +#ifndef STRINGOPERATIONS_H +#define STRINGOPERATIONS_H + +#include <types.h> + + +class MemArea +{ + private: + memAddr start, final; + public: + MemArea(); + MemArea(const memAddr start, const memAddr final); + memAddr begin(); + memAddr end(); + bool valid(); + + typedef memAddr iterator; +}; + +class StringOperations +{ + public: + // Return the starting address where is sequence is allocated + // else NULL + static void *findInMemory(const char *sequence, MemArea memory); + // Return size of ASCIZ sequence without 0-symbol, NULL on failure + static uint32 sequenceSize(const char *chars); +}; + +#endif |
