27#ifndef __PEBLUTILITY_H__
28#define __PEBLUTILITY_H__
35#include "../devices/PKeyboard.h"
47typedef struct PROCESS_INFORMATION;
58 std::string
ToUpper(
const std::string & text);
59 std::string
ToLower(
const std::string & text);
91 std::string
ShiftSwitch(
int modkeys, std::string lower, std::string upper);
106 const std::string
StripFile(
const std::string & file);
111 PROCESS_INFORMATION SystemCallAndReturn(std::string path, std::string args);
113 bool is_utf8(
const std::string str);
116 std::string
strrev(std::string p);
120 std::string
MD5File(
const std::string & filename);
121 std::string
MD5String(
const std::string & text);
Variant SystemCall(std::string path, std::string args)
pDouble StringToPDouble(const char *mystring)
Variant ResolvePropertyChain(Variant obj, const std::string &propertyChain)
Variant LaunchFile(std::string file)
Variant GetHomeDirectory()
PEBL_Keycode TranslateString(const std::string &letters)
PEBLVideoDepth GetVideoDepth(std::string depthline)
const std::string GetBaseFileName(const std::string &file)
bool is_utf8(const std::string str)
pDouble Log2(pDouble val)
void SetPropertyChain(Variant obj, const std::string &propertyChain, Variant value)
const std::string StripFile(const std::string &file)
std::string TranslateKeycode(const PEBL_Keycode key, int modkeys)
void InitializeKeycodeLookups()
std::string ToUpper(const std::string &text)
Variant SetWorkingDirectory(std::string path)
void strrev_utf8(char *p)
std::string DetectScript(const std::string &text)
Variant DeleteMyFile(std::string path)
Variant ParseJSON(const std::string &text)
std::string MD5String(const std::string &text)
Variant ExtractJSONObject(const std::string &text, int remaining, jsmntok_t **t, int start, int end)
bool IsRTLScript(const std::string &script)
std::string MD5File(const std::string &filename)
Variant FileExists(std::string path)
void CopyToClipboard(const std::string &text)
std::string ShiftSwitch(int modkeys, std::string lower, std::string upper)
Variant Tokenize(const char *line, char separator)
Variant GetDirectoryListing(std::string path)
std::string GetFontForLanguageOrScript(const std::string &code, int fontType)
Variant GetWorkingDirectory()
pInt Truncate(pDouble val)
Variant MakeDirectory(std::string path)
std::string ToLower(const std::string &text)
Variant IsDirectory(std::string path)
PEBLVideoMode GetVideoMode(std::string modeline)