Initial commit

This commit is contained in:
Henrik Rydgard committed 2012-03-24 23:39:19 +01:00
commit 22dfdd2832
201 files changed
+33683

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
#pragma once
#include <stdlib.h>
#include <stdio.h>
#include <string>
class ITOA {
public:
char buffer[16];
const char *p(int i) {
sprintf(buffer, "%i", i);
return &buffer[0];
}
};
inline bool endsWith(const std::string &str, const std::string &what) {
return str.substr(str.size() - what.size()) == what;
}