Refactoring, dialog work

This commit is contained in:
elasota
2019-12-31 02:42:20 -05:00
parent 04a955213c
commit 84e4f9fb0b
26 changed files with 817 additions and 271 deletions

View File

@@ -1,9 +1,8 @@
#pragma once
#ifndef __PL_PASCALSTR_H__
#define __PL_PASCALSTR_H__
#include "UnsafePascalStr.h"
#include "UnsafePascalStr.h"
class PLPasStr;
namespace PortabilityLayer
{
@@ -12,11 +11,13 @@ namespace PortabilityLayer
{
public:
PascalStr();
PascalStr(size_t size, const char *str);
PascalStr(size_t size, const char *str);
explicit PascalStr(const PLPasStr &pstr);
};
}
#include <string.h>
#include <string.h>
#include "PLPasStr.h"
namespace PortabilityLayer
{
@@ -31,6 +32,10 @@ namespace PortabilityLayer
: UnsafePascalStr<TSize, true>(size, str)
{
}
}
#endif
template<size_t TSize>
PascalStr<TSize>::PascalStr(const PLPasStr &pstr)
: UnsafePascalStr<TSize, true>(pstr.Length(), pstr.Chars())
{
}
}