mirror of
https://github.com/allankoechke/raylib-cpp.git
synced 2026-11-30 10:59:00 +00:00
Add TextSplit
This commit is contained in:
@@ -94,6 +94,12 @@ int main(int argc, char *argv[]) {
|
||||
AssertEqual(output, "World");
|
||||
}
|
||||
|
||||
{
|
||||
std::vector<std::string> output = raylib::TextSplit("Hello|How|Are|You", '|');
|
||||
AssertEqual(output.size(), 4);
|
||||
AssertEqual(output[1], "How");
|
||||
}
|
||||
|
||||
// Wave
|
||||
{
|
||||
raylib::Wave wave(path + "/resources/weird.wav");
|
||||
|
||||
Reference in New Issue
Block a user