-
Notifications
You must be signed in to change notification settings - Fork 177
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Create StringType in String Module * Remove StringType From File dep * Add Back RC::File::String* for Compatibility * Seperate Stream Type into I/O and Keep Original Name * Use StreamIType in File * Use fmt for ToString * Include String as Deps
- Loading branch information
Showing
7 changed files
with
54 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#pragma once | ||
|
||
#include <string> | ||
|
||
// We will use this once we solve the circular dependency issue | ||
//#include <Unreal/Core/HAL/Platform.hpp> | ||
|
||
// This is a debug flag to force the use of u16string for testing purposes | ||
// char16_t and wchar_t are two different types, so we need to force the use of one of them | ||
// to ensure we have covered all the cases. | ||
// #define FORCE_U16 | ||
|
||
namespace RC { | ||
|
||
#ifdef FORCE_U16 | ||
using CharType = char16_t; | ||
#define STR(str) u ## str | ||
#else | ||
using CharType = wchar_t; | ||
#define STR(str) L ## str | ||
#endif | ||
|
||
using StringType = std::basic_string<CharType>; | ||
using StringViewType = std::basic_string_view<CharType>; | ||
using StreamIType = std::basic_ifstream<CharType>; | ||
using StreamOType = std::basic_ofstream<CharType>; | ||
} // namespace RC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
local projectName = "String" | ||
|
||
target(projectName) | ||
set_kind("headeronly") | ||
set_languages("cxx20") | ||
set_exceptions("cxx") | ||
add_rules("ue4ss.dependency") | ||
|
||
add_includedirs("include", { public = true }) | ||
add_headerfiles("include/**.hpp") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters