Files
Ben Marsh e1fe0cc030 Integrating live coding feature (aka Live++) into UE4.
Allows fast iteration of C++ changes without restarting the application. To use, select the "Live Coding (Experimental)" mode from the drop down menu next to the editor's compile button, or type "LiveCoding" into the console for a monolithic build. Press Ctrl+Alt+F11 to find changes and compile.

Changes vs standalone Live++ version:

* UBT is used to execute builds. This allows standard UE4 adaptive unity mode, allows us to reuse object files when we do regular builds, supports using any build executor allowed by UBT (XGE, SNDBS, etc..).
* Adding new source files is supported.
* Custom visualizer for FNames is supported via a weakly linked symbol in a static library (Engine/Extras/NatvisHelpers).
* Settings are exposed in the editor's project settings dialog.
* Standalone application has been rewritten as a Slate app ("LiveCodingConsole"). There is an additional option to start the program as hidden, where it will not be visible until Ctrl+Alt+F11 is hit. Similarly, closing the window will hide it instead of closing the application.
* Does not require a standalone licensed version of Live++.

Known issues:

* Does not currently support class layout changes / object reinstancing

#rb none
#fyi Marc.Audy, Stefan.Boberg, Nick.Penwarden
#jira

[CL 5304722 by Ben Marsh in 4.22 branch]
2019-03-05 15:54:02 -05:00

46 lines
1.7 KiB
C++

// Copyright 2011-2019 Molecular Matters GmbH, all rights reserved.
#pragma once
#include "CoreTypes.h"
#include <string>
namespace string
{
std::wstring ToWideString(const char* utf8Str);
std::wstring ToWideString(const char* utf8Str, size_t count);
std::wstring ToWideString(const std::string& str);
std::string Replace(const std::string& str, const std::string& from, const std::string& to);
std::wstring Replace(const std::wstring& str, const std::wstring& from, const std::wstring& to);
std::wstring ReplaceAll(const std::wstring& str, const std::wstring& from, const std::wstring& to);
std::wstring EraseAll(const std::wstring& str, const std::wstring& subString);
char* Find(char* str, const char* subString);
wchar_t* Find(wchar_t* str, const wchar_t* subString);
const char* Find(const char* str, const char* subString);
const wchar_t* Find(const wchar_t* str, const wchar_t* subString);
bool Matches(const char* str1, const char* str2);
bool Matches(const wchar_t* str1, const wchar_t* str2);
bool Contains(const char* str, const char* subString);
bool Contains(const wchar_t* str, const wchar_t* subString);
bool StartsWith(const char* str, const char* subString);
bool StartsWith(const wchar_t* str, const wchar_t* subString);
std::string ToUpper(const char* str);
std::string ToUpper(const std::string& str);
std::wstring ToUpper(const wchar_t* str);
std::wstring ToUpper(const std::wstring& str);
std::wstring ToLower(const wchar_t* str);
std::wstring ToLower(const std::wstring& str);
// Turns invalid characters (\ / : * ? " < > | : ; , .) in file names, names for OS objects, etc. into underscores
std::wstring MakeSafeName(const std::wstring& name);
}