Code: Select all
void getStackFromStr(irr::core::stringc str){
if(str.subString(str.size()-1,1)=="A"){
str = str.subString(0,str.size()-2);
}
std::vector<irr::core::stringc> tiles;
str.split(tiles,"A");
for(int i=0;i<tiles.size();i++){
printf("%s\n",tiles[i]);
}
}
Looking at my debugger it might be their is nothing in tiles at that stage.
Coming into the function str is equal to '1 0 24A1 0 24A2 0 24A'