This commit is contained in:
Александр Бабаев 2021-07-07 22:54:57 +03:00
parent 4ce2f8f672
commit 3ee973d911
3 changed files with 25 additions and 10 deletions

View File

@ -1,10 +1,8 @@
using System; using System.Collections.Generic;
using System.Collections.Generic;
using System.Text;
namespace anbs_cp namespace anbs_cp
{ {
public class LikeDelphi public static class LikeDelphi
{ {
/* /*
* Аналог функции "IncludeTrailingBackslash * Аналог функции "IncludeTrailingBackslash
@ -19,5 +17,24 @@ namespace anbs_cp
} }
return result; return result;
} }
public static List<string> ParseString(string AString, char ADelim)
{
int from = -1;
int to = AString.Length;
List<string> result = new List<string>();
do
{
from++;
to = AString.IndexOf(ADelim, from);
if (to <= 0)
{
to = AString.Length;
}
if (from != to)
result.Add(AString.Substring(from, to - from));
from = to;
} while (to != AString.Length);
return result;
}
} }
} }

View File

@ -1,6 +1,4 @@
using System; namespace anbs_componentspack
namespace anbs_componentspack
{ {
public static class TypeConverter public static class TypeConverter
{ {

View File

@ -4,8 +4,8 @@
<TargetFramework>netcoreapp3.1</TargetFramework> <TargetFramework>netcoreapp3.1</TargetFramework>
<Version>0.1.0</Version> <Version>0.1.0</Version>
<Authors>Alexander Babaev</Authors> <Authors>Alexander Babaev</Authors>
<Product>delphi2c#</Product> <Product>ANB Software Components Pack</Product>
<Description>Library to import some useful functions from Delphi language to C# language.</Description> <Description>Library of some useful functions in C# language.</Description>
<Copyright /> <Copyright />
</PropertyGroup> </PropertyGroup>