diff --git a/anbs_cp/LikeDelphi.cs b/anbs_cp/LikeDelphi.cs index 9103027..42be5e9 100644 --- a/anbs_cp/LikeDelphi.cs +++ b/anbs_cp/LikeDelphi.cs @@ -1,10 +1,8 @@ -using System; -using System.Collections.Generic; -using System.Text; +using System.Collections.Generic; namespace anbs_cp { - public class LikeDelphi + public static class LikeDelphi { /* * Аналог функции "IncludeTrailingBackslash @@ -19,5 +17,24 @@ namespace anbs_cp } return result; } + public static List ParseString(string AString, char ADelim) + { + int from = -1; + int to = AString.Length; + List result = new List(); + 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; + } } -} +} \ No newline at end of file diff --git a/anbs_cp/TypeConverter.cs b/anbs_cp/TypeConverter.cs index a765c2d..1909928 100644 --- a/anbs_cp/TypeConverter.cs +++ b/anbs_cp/TypeConverter.cs @@ -1,6 +1,4 @@ -using System; - -namespace anbs_componentspack +namespace anbs_componentspack { public static class TypeConverter { diff --git a/anbs_cp/anbs_cp.csproj b/anbs_cp/anbs_cp.csproj index 86a736d..7e7517f 100644 --- a/anbs_cp/anbs_cp.csproj +++ b/anbs_cp/anbs_cp.csproj @@ -4,8 +4,8 @@ netcoreapp3.1 0.1.0 Alexander Babaev - delphi2c# - Library to import some useful functions from Delphi language to C# language. + ANB Software Components Pack + Library of some useful functions in C# language.