Textractor_test/GUI/host/util.h
Akash Mozumdar f409ee78ce small fixes
2018-12-02 15:55:02 -05:00

14 lines
490 B
C++

#pragma once
#include "common.h"
namespace Util
{
std::optional<std::wstring> GetModuleFileName(DWORD processId, HMODULE module = NULL);
std::optional<std::wstring> GetModuleFileName(HMODULE module = NULL);
std::optional<std::wstring> GetClipboardText();
std::optional<std::wstring> StringToWideString(std::string text, UINT encoding = CP_UTF8);
// return true if repetition found (see https://github.com/Artikash/Textractor/issues/40)
bool RemoveRepetition(std::wstring& text);
}