| 1234567891011121314151617181920212223242526272829303132 |
- #pragma once
- #include <string>
- #include <vector>
- namespace pika
- {
- //todo overengineer with restrict and stuff
- //dest can be also source
- void removeCharacters(char *dest, const char *source, const char *charsToRemove, size_t destSize);
- //dest can be also source
- void toLower(char *dest, const char *source, size_t size);
- //dest can be also source
- void toUpper(char *dest, const char *source, size_t size);
- //checks if char is in source
- bool findChar(const char *source, char c);
- //returns char coppied (will be at max size-1)
- size_t strlcpy(char *dst, const char *src, size_t size);
- size_t strlcpy(char *dst, std::string src, size_t size);
- std::vector<std::string> split(const char *source, char c);
-
- }
|