mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-25 08:14:45 +02:00
18 lines
319 B
C++
18 lines
319 B
C++
#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;
|
|
} |