Also Factor out app constants that mods might change into Meson options and clean up format::URLEncode in the process, convert app and document icon data in arrays to actual images, actualize AppStream data for possible future packaging, add alternative command line format for opening filesystem saves and ptsave URLs, fix a memory leak in Platform::GetCwd, and add format::URLDecode.
25 lines
876 B
C++
25 lines
876 B
C++
#pragma once
|
|
#include "Config.h"
|
|
|
|
#include "common/String.h"
|
|
#include <vector>
|
|
|
|
class VideoBuffer;
|
|
|
|
namespace format
|
|
{
|
|
const static char hex[] = "0123456789ABCDEF";
|
|
|
|
ByteString URLEncode(ByteString value);
|
|
ByteString URLDecode(ByteString value);
|
|
ByteString UnixtimeToDate(time_t unixtime, ByteString dateFomat = ByteString("%d %b %Y"));
|
|
ByteString UnixtimeToDateMini(time_t unixtime);
|
|
String CleanString(String dirtyString, bool ascii, bool color, bool newlines, bool numeric = false);
|
|
std::vector<char> VideoBufferToPNG(const VideoBuffer & vidBuf);
|
|
std::vector<char> VideoBufferToBMP(const VideoBuffer & vidBuf);
|
|
std::vector<char> VideoBufferToPPM(const VideoBuffer & vidBuf);
|
|
std::vector<char> VideoBufferToPTI(const VideoBuffer & vidBuf);
|
|
VideoBuffer * PTIToVideoBuffer(std::vector<char> & data);
|
|
unsigned long CalculateCRC(unsigned char * data, int length);
|
|
}
|