20210707
This commit is contained in:
parent
4ce2f8f672
commit
3ee973d911
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,6 +1,4 @@
|
|||||||
using System;
|
namespace anbs_componentspack
|
||||||
|
|
||||||
namespace anbs_componentspack
|
|
||||||
{
|
{
|
||||||
public static class TypeConverter
|
public static class TypeConverter
|
||||||
{
|
{
|
||||||
|
@ -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>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user