[Complex Test Layouts] Change String to use UTF-32 encoding on all platforms.
This commit is contained in:
parent
0864f12f0d
commit
80b8eff6aa
94 changed files with 4889 additions and 1686 deletions
|
|
@ -86,7 +86,7 @@ String abspath(const String &p_path) {
|
|||
String realpath(const String &p_path) {
|
||||
#ifdef WINDOWS_ENABLED
|
||||
// Open file without read/write access
|
||||
HANDLE hFile = ::CreateFileW(p_path.c_str(), 0,
|
||||
HANDLE hFile = ::CreateFileW((LPCWSTR)(p_path.utf16().get_data()), 0,
|
||||
FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE,
|
||||
nullptr, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, nullptr);
|
||||
|
||||
|
|
@ -130,7 +130,7 @@ String join(const String &p_a, const String &p_b) {
|
|||
return p_b;
|
||||
}
|
||||
|
||||
const CharType a_last = p_a[p_a.length() - 1];
|
||||
const char32_t a_last = p_a[p_a.length() - 1];
|
||||
if ((a_last == '/' || a_last == '\\') ||
|
||||
(p_b.size() > 0 && (p_b[0] == '/' || p_b[0] == '\\'))) {
|
||||
return p_a + p_b;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue