mardi 26 avril 2016

C++ Parsing for OBJ Loader

I am writing a string parser for fun.And I need to know how to detect certain substrings and perform actions afterwards Eg: String - "5//5 6//6" or "5/5 6/6"

if(substr('/') { Action 1 } else if(substring ('//') { Action 2 }

Can anyone help me ? Thanks.

Aucun commentaire:

Enregistrer un commentaire