Doxygen Samurai Engine 0.0.1
Doxygen Samurai Engine Documentation
Loading...
Searching...
No Matches
stringManipulation.h
Go to the documentation of this file.
1#pragma once
2#include <string>
3#include <vector>
4
5namespace samurai
6{
7
8 //dest can be also source
9 void removeCharacters(char *dest, const char *source, const char *charsToRemove, size_t destSize);
10
11 //dest can be also source
12 void toLower(char *dest, const char *source, size_t size);
13
14 //dest can be also source
15 void toUpper(char *dest, const char *source, size_t size);
16
17 //checks if char is in source
18 bool findChar(const char *source, char c);
19
20 //returns char coppied (will be at max size-1)
21 size_t strlcpy(char *dst, const char *src, size_t size);
22
23 size_t strlcpy(char *dst, std::string src, size_t size);
24
25
26 std::vector<std::string> split(const char *source, char c);
27
28
29}
bool findChar(const char *source, char c)
void toLower(char *dest, const char *source, size_t size)
void toUpper(char *dest, const char *source, size_t size)
void removeCharacters(char *dest, const char *source, const char *charsToRemove, size_t destSize)
size_t strlcpy(char *dst, const char *src, size_t size)
std::vector< std::string > split(const char *source, char c)