2022-05-19 01:51:26 -07:00
|
|
|
#ifndef STRING_PARSERS_H
|
|
|
|
#define STRING_PARSERS_H
|
|
|
|
|
2022-09-23 05:43:44 -07:00
|
|
|
namespace fallout {
|
|
|
|
|
2022-05-19 01:51:26 -07:00
|
|
|
typedef int(StringParserCallback)(char* string, int* valuePtr);
|
|
|
|
|
|
|
|
int strParseInt(char** stringPtr, int* valuePtr);
|
|
|
|
int strParseStrFromList(char** stringPtr, int* valuePtr, const char** list, int count);
|
|
|
|
int strParseStrFromFunc(char** stringPtr, int* valuePtr, StringParserCallback* callback);
|
|
|
|
int strParseIntWithKey(char** stringPtr, const char* key, int* valuePtr, const char* delimeter);
|
|
|
|
int strParseKeyValue(char** stringPtr, char* key, int* valuePtr, const char* delimeter);
|
|
|
|
|
2022-09-23 05:43:44 -07:00
|
|
|
} // namespace fallout
|
|
|
|
|
2022-05-19 01:51:26 -07:00
|
|
|
#endif /* STRING_PARSERS_H */
|