Plasma Engine  2.0
Loading...
Searching...
No Matches
DosDevicePath_Win.h
1#pragma once
2
3#include <Foundation/FoundationInternal.h>
4PL_FOUNDATION_INTERNAL_HEADER
5
6#include <Foundation/Strings/StringBuilder.h>
7#include <Foundation/Strings/StringConversion.h>
8
15{
16public:
18 {
19 plStringBuilder tmp("\\\\?\\", sPath);
20 tmp.ReplaceAll("/", "\\");
21 m_Data = tmp.GetData();
22 }
23
24 const wchar_t* GetData() const { return m_Data.GetData(); }
25
26 operator const wchar_t*() const { return m_Data.GetData(); }
27
28 plStringWChar m_Data;
29};
Converts an absolute path to a 'DOS device path'.
Definition DosDevicePath_Win.h:15
plStringBuilder is a class that is meant for creating and modifying strings.
Definition StringBuilder.h:35
const char * GetData() const
Returns a char pointer to the internal Utf8 data.
Definition StringBuilder_inl.h:148
plUInt32 ReplaceAll(plStringView sSearchFor, plStringView sReplacement)
Replaces all occurrences of szSearchFor by szReplacement. Returns the number of replacements.
Definition StringBuilder.cpp:537
plStringView represent a read-only sub-string of a larger string, as it can store a dedicated string ...
Definition StringView.h:34
A very simple string class that should only be used to temporarily convert text to the OSes native wc...
Definition StringConversion.h:20