mirror of
https://github.com/DaedalusX64/daedalus.git
synced 2025-04-02 10:21:48 -04:00
18 lines
548 B
C++
18 lines
548 B
C++
#ifndef UTILITY_STRINGUTIL_H_
|
|
#define UTILITY_STRINGUTIL_H_
|
|
|
|
#include <vector>
|
|
#include "Utility/String.h"
|
|
|
|
// Splits at all instances of split_char.
|
|
void Split(ConstStringRef str, char split_char, std::vector<ConstStringRef> * pieces);
|
|
|
|
// Splits at the first instance of split_char.
|
|
void SplitAt(ConstStringRef str, char split_char, ConstStringRef * left, ConstStringRef * right);
|
|
|
|
// Unlike atoi, atol etc, this works with unterminated ranges.
|
|
u32 ParseU32(ConstStringRef str, u32 base);
|
|
|
|
char * Tidy(char * s);
|
|
|
|
#endif // UTILITY_STRINGUTIL_H_
|