Skip to content

Commit

Permalink
Order и OrderDescending для строк с Ordinal
Browse files Browse the repository at this point in the history
  • Loading branch information
miks1965 committed Mar 2, 2024
1 parent 6fbc020 commit c9d7ba7
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Configuration/GlobalAssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ internal static class RevisionClass
public const string Major = "3";
public const string Minor = "9";
public const string Build = "0";
public const string Revision = "3425";
public const string Revision = "3426";

public const string MainVersion = Major + "." + Minor;
public const string FullVersion = Major + "." + Minor + "." + Build + "." + Revision;
Expand Down
4 changes: 2 additions & 2 deletions Configuration/Version.defs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
%MINOR%=9
%REVISION%=3425
%COREVERSION%=0
%REVISION%=3426
%MINOR%=9
%MAJOR%=3
2 changes: 1 addition & 1 deletion Release/pabcversion.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.9.0.3425
3.9.0.3426
2 changes: 1 addition & 1 deletion ReleaseGenerators/PascalABCNET_version.nsh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
!define VERSION '3.9.0.3425'
!define VERSION '3.9.0.3426'
12 changes: 12 additions & 0 deletions TestSuite/CompilationSamples/PABCSystem.pas
Original file line number Diff line number Diff line change
Expand Up @@ -10192,6 +10192,18 @@ function OrderDescending<T>(Self: sequence of T): sequence of T; extensionmethod
Result := Self.OrderByDescending(x -> x);
end;

/// Возвращает отсортированную по возрастанию последовательность
function Order(Self: sequence of string): sequence of string; extensionmethod;
begin
Result := Self.OrderBy(x -> x, System.StringComparer.Ordinal);
end;

/// Возвращает отсортированную по убыванию последовательность
function OrderDescending(Self: sequence of string): sequence of string; extensionmethod;
begin
Result := Self.OrderByDescending(x -> x, System.StringComparer.Ordinal);
end;

/// Возвращает множество HashSet по данной последовательности
function ToHashSet<T>(Self: sequence of T): HashSet<T>; extensionmethod;
begin
Expand Down
12 changes: 12 additions & 0 deletions bin/Lib/PABCSystem.pas
Original file line number Diff line number Diff line change
Expand Up @@ -10192,6 +10192,18 @@ function OrderDescending<T>(Self: sequence of T): sequence of T; extensionmethod
Result := Self.OrderByDescending(x -> x);
end;

/// Возвращает отсортированную по возрастанию последовательность
function Order(Self: sequence of string): sequence of string; extensionmethod;
begin
Result := Self.OrderBy(x -> x, System.StringComparer.Ordinal);
end;

/// Возвращает отсортированную по убыванию последовательность
function OrderDescending(Self: sequence of string): sequence of string; extensionmethod;
begin
Result := Self.OrderByDescending(x -> x, System.StringComparer.Ordinal);
end;

/// Возвращает множество HashSet по данной последовательности
function ToHashSet<T>(Self: sequence of T): HashSet<T>; extensionmethod;
begin
Expand Down
6 changes: 6 additions & 0 deletions bin/Lib/PABCSystem.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3098,6 +3098,12 @@
<member name="M:OrderDescending``1(System.Collections.Generic.IEnumerable{``0})">
<summary>Возвращает отсортированную по убыванию последовательность</summary>
</member>
<member name="M:Order(System.Collections.Generic.IEnumerable{System.String})">
<summary>Возвращает отсортированную по возрастанию последовательность</summary>
</member>
<member name="M:OrderDescending(System.Collections.Generic.IEnumerable{System.String})">
<summary>Возвращает отсортированную по убыванию последовательность</summary>
</member>
<member name="M:ToHashSet``1(System.Collections.Generic.IEnumerable{``0})">
<summary>Возвращает множество HashSet по данной последовательности</summary>
</member>
Expand Down

0 comments on commit c9d7ba7

Please sign in to comment.