mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-19 12:42:37 +02:00
44 lines
1.4 KiB
ObjectPascal
44 lines
1.4 KiB
ObjectPascal
{
|
|
*****************************************************************************
|
|
* *
|
|
* See the file COPYING.modifiedLGPL, included in this distribution, *
|
|
* for details about the copyright. *
|
|
* *
|
|
* This program is distributed in the hope that it will be useful, *
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
|
|
* *
|
|
*****************************************************************************
|
|
|
|
Author: Mattias Gaertner
|
|
|
|
Abstract:
|
|
Interface to various IDE tools manipulating text.
|
|
}
|
|
unit TextTools;
|
|
|
|
{$mode objfpc}{$H+}
|
|
|
|
interface
|
|
|
|
uses
|
|
Classes, SysUtils, Forms;
|
|
|
|
type
|
|
TSortDirection = (sdAscending, sdDescending);
|
|
TSortDomain = (sdWords, sdLines, sdParagraphs);
|
|
|
|
TShowSortSelectionDialogFunc = function(const TheText: string;
|
|
Highlighter: TObject; var SortedText: string): TModalResult;
|
|
TSortTextFunc = function(const TheText: string; Direction: TSortDirection;
|
|
Domain: TSortDomain; CaseSensitive, IgnoreSpace: boolean): string;
|
|
|
|
var
|
|
ShowSortSelectionDialogFunc: TShowSortSelectionDialogFunc;
|
|
SortTextFunc: TSortTextFunc;
|
|
|
|
implementation
|
|
|
|
end.
|
|
|