Topic: [Help] Chat-Command-Registering and Argument-parsing
Hello, and sorry for posting again so soon, but I've come to another problem... Well, actually 2 questions.
So, first, where is teeworlds command-parsing done? I could add mine in onMessage, but is there a more convenient/beautiful way to do this?
My second question is, how do you split a text by a certain regex? In java you would do it like that;
"Hello, world! It's me!".split(" ");
//returns String[]:
// {"Hello,", "world!", "It's", "me!"}
How would you do that in c++?
Thanks in advance,
Ikaron