Skip to content

Instantly share code, notes, and snippets.

@asSqr
Created December 17, 2019 09:22
Show Gist options
  • Save asSqr/9ed425fdf113fa70ecd22065e30dc3d9 to your computer and use it in GitHub Desktop.
Save asSqr/9ed425fdf113fa70ecd22065e30dc3d9 to your computer and use it in GitHub Desktop.
#include <fstream>
#include <sstream>
#include <string>
std::string fileName;
std::string tab;
void indent()
{
tab += " ";
return;
}
void unindent()
{
tab = tab.substr( 2 );
return;
}
void newline( std::string &s )
{
s += "\n";
s += tab;
return;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment