init
This commit is contained in:
commit
c0a6e45559
7 changed files with 483 additions and 0 deletions
31
String.sln
Normal file
31
String.sln
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
|
# Visual Studio 15
|
||||||
|
VisualStudioVersion = 15.0.28307.1705
|
||||||
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "String", "String\String.vcxproj", "{5FE98B77-3558-4384-BDAF-82AC8B69B752}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|x64 = Debug|x64
|
||||||
|
Debug|x86 = Debug|x86
|
||||||
|
Release|x64 = Release|x64
|
||||||
|
Release|x86 = Release|x86
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{5FE98B77-3558-4384-BDAF-82AC8B69B752}.Debug|x64.ActiveCfg = Debug|x64
|
||||||
|
{5FE98B77-3558-4384-BDAF-82AC8B69B752}.Debug|x64.Build.0 = Debug|x64
|
||||||
|
{5FE98B77-3558-4384-BDAF-82AC8B69B752}.Debug|x86.ActiveCfg = Debug|Win32
|
||||||
|
{5FE98B77-3558-4384-BDAF-82AC8B69B752}.Debug|x86.Build.0 = Debug|Win32
|
||||||
|
{5FE98B77-3558-4384-BDAF-82AC8B69B752}.Release|x64.ActiveCfg = Release|x64
|
||||||
|
{5FE98B77-3558-4384-BDAF-82AC8B69B752}.Release|x64.Build.0 = Release|x64
|
||||||
|
{5FE98B77-3558-4384-BDAF-82AC8B69B752}.Release|x86.ActiveCfg = Release|Win32
|
||||||
|
{5FE98B77-3558-4384-BDAF-82AC8B69B752}.Release|x86.Build.0 = Release|Win32
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
|
HideSolutionNode = FALSE
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
|
SolutionGuid = {CDE2A97D-BF32-4748-9A47-B8D0E10D3A9D}
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
180
String/String.cpp
Normal file
180
String/String.cpp
Normal file
|
@ -0,0 +1,180 @@
|
||||||
|
#include "String.h"
|
||||||
|
#include <memory>
|
||||||
|
|
||||||
|
//-----------------------------------------------------------------------------------------------------------------------------
|
||||||
|
String::String(const char* pData)
|
||||||
|
{
|
||||||
|
if (!pData) return;
|
||||||
|
|
||||||
|
m_uiLength = StringLength(pData);
|
||||||
|
m_pData = new char[m_uiLength + 1];
|
||||||
|
memset(m_pData, 0, m_uiLength + 1);
|
||||||
|
memcpy(m_pData, pData, m_uiLength);
|
||||||
|
m_uiCapacity = m_uiLength;
|
||||||
|
}
|
||||||
|
|
||||||
|
//-----------------------------------------------------------------------------------------------------------------------------
|
||||||
|
String::String(const std::string &sString)
|
||||||
|
: m_pData(new char[sString.length()])
|
||||||
|
, m_uiLength(sString.length())
|
||||||
|
, m_uiCapacity(sString.length())
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
//-----------------------------------------------------------------------------------------------------------------------------
|
||||||
|
String::String(const String& sRhs)
|
||||||
|
: m_uiLength(sRhs.m_uiLength)
|
||||||
|
, m_pData(new char[sRhs.m_uiLength + 1])
|
||||||
|
, m_uiCapacity(sRhs.m_uiCapacity)
|
||||||
|
{
|
||||||
|
memset(m_pData + m_uiLength, 0, 1);
|
||||||
|
memcpy(m_pData, sRhs.m_pData, m_uiLength);
|
||||||
|
}
|
||||||
|
|
||||||
|
//-----------------------------------------------------------------------------------------------------------------------------
|
||||||
|
String::~String()
|
||||||
|
{
|
||||||
|
DELETE_ARRAY(m_pData);
|
||||||
|
}
|
||||||
|
|
||||||
|
//-----------------------------------------------------------------------------------------------------------------------------
|
||||||
|
int String::StringLength(const char* pChar)
|
||||||
|
{
|
||||||
|
int iRet = 0;
|
||||||
|
while (*pChar != 0x0)
|
||||||
|
{
|
||||||
|
pChar++;
|
||||||
|
iRet++;
|
||||||
|
}
|
||||||
|
return iRet;
|
||||||
|
}
|
||||||
|
|
||||||
|
//-----------------------------------------------------------------------------------------------------------------------------
|
||||||
|
void String::Insert(const char *pData, unsigned int uiPos)
|
||||||
|
{
|
||||||
|
if (!pData) return;
|
||||||
|
|
||||||
|
unsigned int uilength = StringLength(pData);
|
||||||
|
unsigned int uiNewLength = m_uiLength + uilength;
|
||||||
|
|
||||||
|
while (uiNewLength > m_uiCapacity)
|
||||||
|
{
|
||||||
|
IncreaseCapacity();
|
||||||
|
}
|
||||||
|
|
||||||
|
char* pLeft = m_pData + uiPos;
|
||||||
|
char* pRight = m_pData + uiPos + uilength;
|
||||||
|
|
||||||
|
memcpy(pRight, m_pData + uiPos, m_uiLength - uiPos);
|
||||||
|
memcpy(pLeft, pData, uilength);
|
||||||
|
|
||||||
|
m_uiLength = uiNewLength;
|
||||||
|
}
|
||||||
|
|
||||||
|
//-----------------------------------------------------------------------------------------------------------------------------
|
||||||
|
void String::Append(const char *pData)
|
||||||
|
{
|
||||||
|
Insert(pData, m_uiLength);
|
||||||
|
}
|
||||||
|
|
||||||
|
//-----------------------------------------------------------------------------------------------------------------------------
|
||||||
|
bool String::Contains(const String& sRhs)
|
||||||
|
{
|
||||||
|
return Contains(sRhs.m_pData);
|
||||||
|
}
|
||||||
|
|
||||||
|
//-----------------------------------------------------------------------------------------------------------------------------
|
||||||
|
bool String::Contains(const char *pData)
|
||||||
|
{
|
||||||
|
int iRet = 1;
|
||||||
|
unsigned int uiLength = StringLength(pData);
|
||||||
|
unsigned int uiOffset = 0;
|
||||||
|
|
||||||
|
while (iRet != 0)
|
||||||
|
{
|
||||||
|
if (uiLength > m_uiLength || uiOffset > m_uiLength) break;
|
||||||
|
iRet = memcmp(m_pData + uiOffset, pData, uiLength);
|
||||||
|
uiOffset++;
|
||||||
|
}
|
||||||
|
|
||||||
|
return iRet == 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
//-----------------------------------------------------------------------------------------------------------------------------
|
||||||
|
unsigned int String::Find(const String& sRhs, unsigned int uiOffset)
|
||||||
|
{
|
||||||
|
return Find(sRhs.m_pData, uiOffset);
|
||||||
|
}
|
||||||
|
|
||||||
|
//-----------------------------------------------------------------------------------------------------------------------------
|
||||||
|
unsigned int String::Find(const char *pData, unsigned int uiOffset)
|
||||||
|
{
|
||||||
|
unsigned int uiLength = StringLength(pData);
|
||||||
|
unsigned int uiCurrentOffset = uiOffset;
|
||||||
|
|
||||||
|
for (int iRet = 1; iRet != 0; uiCurrentOffset++)
|
||||||
|
{
|
||||||
|
if (uiLength > m_uiLength || uiCurrentOffset > m_uiLength)
|
||||||
|
{
|
||||||
|
uiCurrentOffset = -1;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
iRet = memcmp(m_pData + uiCurrentOffset, pData, uiLength);
|
||||||
|
}
|
||||||
|
|
||||||
|
return uiCurrentOffset;
|
||||||
|
}
|
||||||
|
|
||||||
|
//-----------------------------------------------------------------------------------------------------------------------------
|
||||||
|
char String::At(unsigned int uiPos)
|
||||||
|
{
|
||||||
|
return *(m_pData + uiPos);
|
||||||
|
}
|
||||||
|
|
||||||
|
//-----------------------------------------------------------------------------------------------------------------------------
|
||||||
|
bool String::Remove(const String& sRhs)
|
||||||
|
{
|
||||||
|
return RemoveAt(Find(sRhs), sRhs.m_uiLength);
|
||||||
|
}
|
||||||
|
|
||||||
|
//-----------------------------------------------------------------------------------------------------------------------------
|
||||||
|
bool String::Remove(const char *pData)
|
||||||
|
{
|
||||||
|
return RemoveAt(Find(pData), StringLength(pData));
|
||||||
|
}
|
||||||
|
|
||||||
|
//-----------------------------------------------------------------------------------------------------------------------------
|
||||||
|
bool String::RemoveAt(unsigned int uiPos, unsigned int uiSize)
|
||||||
|
{
|
||||||
|
if (uiPos > m_uiLength) return false;
|
||||||
|
|
||||||
|
m_uiLength = m_uiLength - uiSize;
|
||||||
|
char* pLast = m_pData + uiPos + uiSize;
|
||||||
|
memcpy(m_pData + uiPos, pLast, uiSize);
|
||||||
|
memset(pLast, 0, uiSize);
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
//-----------------------------------------------------------------------------------------------------------------------------
|
||||||
|
unsigned int String::Length() const
|
||||||
|
{
|
||||||
|
return m_uiLength;
|
||||||
|
}
|
||||||
|
|
||||||
|
//-----------------------------------------------------------------------------------------------------------------------------
|
||||||
|
std::string String::ToStdString()
|
||||||
|
{
|
||||||
|
return std::string(m_pData);
|
||||||
|
}
|
||||||
|
|
||||||
|
//-----------------------------------------------------------------------------------------------------------------------------
|
||||||
|
void String::IncreaseCapacity()
|
||||||
|
{
|
||||||
|
m_uiCapacity = m_uiCapacity * c_uiCapacityIncreaseFactor;
|
||||||
|
char *pNew = new char[m_uiCapacity + 1];
|
||||||
|
memset(pNew, 0, m_uiCapacity + 1);
|
||||||
|
memcpy(pNew, m_pData, m_uiLength);
|
||||||
|
DELETE_ARRAY(m_pData);
|
||||||
|
m_pData = pNew;
|
||||||
|
}
|
68
String/String.h
Normal file
68
String/String.h
Normal file
|
@ -0,0 +1,68 @@
|
||||||
|
#pragma once
|
||||||
|
#include <string>
|
||||||
|
|
||||||
|
class String
|
||||||
|
{
|
||||||
|
private:
|
||||||
|
#define DELETE_POINTER(Pointer) \
|
||||||
|
if (Pointer != nullptr)\
|
||||||
|
{\
|
||||||
|
delete Pointer;\
|
||||||
|
Pointer = nullptr;\
|
||||||
|
}
|
||||||
|
|
||||||
|
#define DELETE_ARRAY(Array) \
|
||||||
|
if (Array != nullptr)\
|
||||||
|
{\
|
||||||
|
delete[] Array;\
|
||||||
|
Array = nullptr;\
|
||||||
|
}
|
||||||
|
|
||||||
|
public:
|
||||||
|
String() = default;
|
||||||
|
|
||||||
|
String(const char* pData);
|
||||||
|
|
||||||
|
String(const std::string& sString);
|
||||||
|
|
||||||
|
String(const String& sRhs);
|
||||||
|
|
||||||
|
String& operator=(const String& sRhs) = delete;
|
||||||
|
|
||||||
|
~String();
|
||||||
|
|
||||||
|
int StringLength(const char* pData);
|
||||||
|
|
||||||
|
void Insert(const char *pData, unsigned int uiPos);
|
||||||
|
|
||||||
|
void Append(const char *pData);
|
||||||
|
|
||||||
|
bool Contains(const String& sRhs);
|
||||||
|
|
||||||
|
bool Contains(const char *pData);
|
||||||
|
|
||||||
|
unsigned int Find(const String& sRhs, unsigned int uiOffset = 0);
|
||||||
|
|
||||||
|
unsigned int Find(const char *pData, unsigned int uiOffset = 0);
|
||||||
|
|
||||||
|
char At(unsigned int uiPos);
|
||||||
|
|
||||||
|
bool Remove(const String& sRhs);
|
||||||
|
|
||||||
|
bool Remove(const char *pData);
|
||||||
|
|
||||||
|
bool RemoveAt(unsigned int uiPos, unsigned int uiSize);
|
||||||
|
|
||||||
|
unsigned int Length() const;
|
||||||
|
|
||||||
|
std::string ToStdString();
|
||||||
|
|
||||||
|
private:
|
||||||
|
|
||||||
|
void IncreaseCapacity();
|
||||||
|
|
||||||
|
char* m_pData = nullptr;
|
||||||
|
unsigned int m_uiLength = 0;
|
||||||
|
unsigned int m_uiCapacity = 0;
|
||||||
|
const float c_uiCapacityIncreaseFactor = 1.5;
|
||||||
|
};
|
163
String/String.vcxproj
Normal file
163
String/String.vcxproj
Normal file
|
@ -0,0 +1,163 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup Label="ProjectConfigurations">
|
||||||
|
<ProjectConfiguration Include="Debug|Win32">
|
||||||
|
<Configuration>Debug</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release|Win32">
|
||||||
|
<Configuration>Release</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug|x64">
|
||||||
|
<Configuration>Debug</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release|x64">
|
||||||
|
<Configuration>Release</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
</ItemGroup>
|
||||||
|
<PropertyGroup Label="Globals">
|
||||||
|
<VCProjectVersion>15.0</VCProjectVersion>
|
||||||
|
<ProjectGuid>{5FE98B77-3558-4384-BDAF-82AC8B69B752}</ProjectGuid>
|
||||||
|
<Keyword>Win32Proj</Keyword>
|
||||||
|
<RootNamespace>String</RootNamespace>
|
||||||
|
<WindowsTargetPlatformVersion>10.0.19041.0</WindowsTargetPlatformVersion>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v141</PlatformToolset>
|
||||||
|
<CharacterSet>Unicode</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v141</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
<CharacterSet>Unicode</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v141</PlatformToolset>
|
||||||
|
<CharacterSet>Unicode</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v141</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
<CharacterSet>Unicode</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||||
|
<ImportGroup Label="ExtensionSettings">
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="Shared">
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
</ImportGroup>
|
||||||
|
<PropertyGroup Label="UserMacros" />
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
|
<LinkIncremental>true</LinkIncremental>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||||
|
<LinkIncremental>true</LinkIncremental>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<PrecompiledHeader>
|
||||||
|
</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<SDLCheck>true</SDLCheck>
|
||||||
|
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<ConformanceMode>true</ConformanceMode>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<PrecompiledHeader>
|
||||||
|
</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<SDLCheck>true</SDLCheck>
|
||||||
|
<PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<ConformanceMode>true</ConformanceMode>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<PrecompiledHeader>
|
||||||
|
</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<Optimization>MaxSpeed</Optimization>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<SDLCheck>true</SDLCheck>
|
||||||
|
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<ConformanceMode>true</ConformanceMode>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<PrecompiledHeader>
|
||||||
|
</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<Optimization>MaxSpeed</Optimization>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<SDLCheck>true</SDLCheck>
|
||||||
|
<PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<ConformanceMode>true</ConformanceMode>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="main.cpp" />
|
||||||
|
<ClCompile Include="String.cpp" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClInclude Include="String.h" />
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||||
|
<ImportGroup Label="ExtensionTargets">
|
||||||
|
</ImportGroup>
|
||||||
|
</Project>
|
30
String/String.vcxproj.filters
Normal file
30
String/String.vcxproj.filters
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup>
|
||||||
|
<Filter Include="Quelldateien">
|
||||||
|
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
|
||||||
|
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Headerdateien">
|
||||||
|
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
||||||
|
<Extensions>h;hh;hpp;hxx;hm;inl;inc;ipp;xsd</Extensions>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Ressourcendateien">
|
||||||
|
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
|
||||||
|
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
|
||||||
|
</Filter>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="main.cpp">
|
||||||
|
<Filter>Quelldateien</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="String.cpp">
|
||||||
|
<Filter>Quelldateien</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClInclude Include="String.h">
|
||||||
|
<Filter>Headerdateien</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
</ItemGroup>
|
||||||
|
</Project>
|
4
String/String.vcxproj.user
Normal file
4
String/String.vcxproj.user
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<PropertyGroup />
|
||||||
|
</Project>
|
7
String/main.cpp
Normal file
7
String/main.cpp
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
#include <iostream>
|
||||||
|
#include "String.h"
|
||||||
|
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue