text stringlengths 14 6.51M |
|---|
unit CinemaLights;
interface
type
TCinemaLights = class
procedure LightOn;
procedure LightOff;
procedure Potencia(Pot: string);
end;
implementation
{ TCinemaLights }
procedure TCinemaLights.LightOff;
begin
Writeln('Luzes Desligadas');
end;
procedure TCinemaLights.LightOn;
begin
Writeln('Luzes L... |
UNIT ReadD;
INTERFACE
PROCEDURE ReadDigit(VAR Temp: TEXT; VAR D: INTEGER);
IMPLEMENTATION
PROCEDURE ReadDigit(VAR Temp: TEXT; VAR D: INTEGER);
VAR
Ch: CHAR;
BEGIN {ReadDigit}
D := -1;
IF NOT EOLN(Temp)
THEN
BEGIN
READ(Temp, Ch);
IF Ch = '0' THEN D := 0 ELSE
IF Ch = '1' THEN D := 1 ELSE
... |
unit Ron.Lexer;
{
This unit contains low level parsing functions.
}
{
NOTES:
TOML Spec
https://github.com/toml-lang/toml
Building a parser
http://jayconrod.com/posts/37/a-simple-interpreter-from-scratch-in-python-part-1
How to build a parser by hand.
http://jayconrod.com/posts/65/how-to-build-a-par... |
unit uTestMain;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.Buttons,
Cayan.Genius, IdBaseComponent, IdComponent, IdTCPConnection,
IdTCPClient, IdHTTP, IdURI,
Cayan.XSuperObject,
Caya... |
unit soFilter.DistortionA;
interface
type
TDistortionA = class
private
fSampleRate: single;
fPar2: single;
fPar3: single;
fPar1: single;
procedure SetSampleRate(const Value: single);
procedure SetPar1(const Value: single);
procedure SetPar2(const Value: single);
proce... |
unit VamLabel;
interface
uses
Controls,
WinApi.Messages,
Agg2D, Graphics,
Classes, RedFox, RedFoxWinControl, VamWinControl;
type
TVamLabel = class(TVamWinControl)
private
fText: string;
fTextVAlign: TRedFoxAlign;
fTextAlign: TRedFoxAlign;
fAutoSize: boolean;
fAutoTrimText: boolean;
... |
unit MatesUnit;
interface
uses
SysUtils,
cStrings,
BF2ServerInfo,
Unit1, //DEBUG
MUnit,
Options;
type
TCompareBy = (fpPrefix, fpName, fpClantag, fpAll);
TGPriority = (pStars, pBolds, pNotes, pAll);//(pFull, pFast);
(*
43... |
unit ufTarefa1;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, FireDAC.Stan.Intf,
FireDAC.Stan.Option, FireDAC.Stan.Param, FireDAC.Stan.Error, FireDAC.DatS,
FireDAC.Phys.Intf, FireDAC.DApt.Intf... |
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls, MMSystem,
RsaOpenSSL;
type
TForm1 = class(TForm)
Memo1: TMemo;
Memo2: TMemo;
Memo3: TMemo;
meLog: TMemo;
Button1: TButton;
Button2: TButton;
... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.8.3.9-14, FILE=DEV229, ... |
(* Copyright (c) 2017. Cary Jensen, Jensen Data Systems, Inc.
This code sample is intended for the readers of
"Delphi in Depth: FireDAC"
by Cary Jensen
ISBN-13: 978-1546391272
ISBN-10: 1546391274
No guarantees or warranties are expressed or implied concerning
the applicability of techniques or... |
unit Test.LucidityBug.SetGuiParameter;
interface
uses
WatchTower,
eeGlobals,
eePlugin;
type
TLucidityBug_SetGUIPar = class(TWatchTowerTest)
private
protected
Globals : TGlobals;
Plug : TeePlugin;
public
procedure Setup; override;
procedure TearDown; override;
[Test]
procedure A... |
{
Windowed Sinc Interpolation
This unit contains functions for windowed sinc interpolation as described by
Julius Orion Smith at
https://ccrma.stanford.edu/~jos/pasp/Bandlimited_Interpolation.html
The method is also detailed in
``Physical Audio Signal Processing'', by Julius O. Smith III, W3K ... |
unit MetaDarkStyleDSGNOptions;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils,
LazConfigStorage, LazFileUtils, LazFileCache,
LCLProc, ComCtrls, Graphics,
BaseIDEIntf;
const
amOptAllowDarkName='Allow dark';
amOptForceDarkName='Force dark';
amOptForceLightName='Force light';
resourcestring
RSamO... |
unit UStudentRegistration;
interface
uses
Winapi.Windows, Winapi.Messages,
System.SysUtils, System.Variants, System.Classes, System.Math, System.UItypes,
Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, uFRegistrationTemplate, cxGraphics,
cxControls, cxLookAndFeels, cxLookAndFeelPainters, cxStyles, dxSkins... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.9.5-1, FILE=CONF207, CLASS=... |
unit uFrmMain;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs,SysTem.UiTypes,
dxGDIPlusClasses, Vcl.ExtCtrls, Vcl.StdCtrls, Data.Cloud.CloudAPI,
Data.Cloud.AmazonAPI, Vcl.ExtDlgs, Vcl.FileCtrl;
type
TFrmMa... |
unit eeBeatLoopAnalyser.EqualLengthChopperStrategy;
interface
uses
Contnrs, eeSampleFloat, VamLib.MoreTypes,
eeBeatLoopAnalyser.GenericChopperStrategy;
type
TEqualLengthChopper = class(TGenericChopper)
private
fRequiredSliceCount: integer;
public
procedure Chop; override;
proper... |
unit uSFXBase;
interface
type
PSFXPar = ^TSFXPar;
TSFXPar = record
Name:string;
Value:single; //range 0..1
ValueDisplay:string;
end;
TSFXBase = class
private
fParCount: integer;
fSampleRate: integer;
function GetPar(Index: integer): TSFXPar;
procedure SetSampl... |
unit Utils.Rtti;
interface
uses System.Classes,
System.Generics.Collections,
System.TypInfo,
System.sysutils, db,
System.Rtti;
Type
TRttiUtil = Class
public
class procedure CopyTo<T, Y: Class>(ASource: T; ATarget: Y); static;
class procedure Copy<T: Class>(ASource: T; ATarget: T; AIgnore: stri... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.5.3.3-2, FILE=DEV108, C... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.6.6.5-10, FILE=CONF143, CLA... |
unit InWindowDialog.ModalShadow.Form;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms;
type
TModalShadow = class(TForm)
procedure FormClick(Sender: TObject);
private
{ Private declarations }
FBmp: TBitmap;
... |
(*-----------------------------------------------------------------------------
The contents of this file are subject to the Mozilla Public License
Version 1.1 (the "License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.mozilla.org/MPL/MPL-1.1... |
{ ******************************************************************
Linear regression : Y = B(1) + B(2) * X
****************************************************************** }
unit ulinfit;
interface
uses
utypes;
procedure LinFit(X, Y: TVector; Lb, Ub: Integer; out B: TVector;
out V: TMatrix);... |
{
FireMonkey Enhancements Library [FMXE]
Copyright (c) 2014, LaKraven Studios Ltd, All Rights Reserved
Original Source Location: https://github.com/LaKraven/FireMonkey-Enhancements
License:
- You may use this library as you see fit, including use within commercial applications.
- You may modify this l... |
unit CommandLineParser;
{ MiniCoin Wallet and Miner Copyright (c) 2019 by Preben Bjorn Biermann Madsen
Based on Kreditz Coin Copyright (c) 2018 Pjor, Kreditz Team
Distributed under the MIT software license, see the accompanying file LICENSE
or visit http://www.opensource.org/licenses/mit-license.php.
Thi... |
unit EasyEffect.AudioOutputController.Custom;
interface
uses
VamVst2.DAEffect, VamLib.MoreTypes;
type
IVstAudioOutputController = interface
['{45889513-D156-4CF7-B258-8064FE25C9EB}']
// TODO: The plugin has an array of "Outputs", a array of PSingle that point to
// the actual output buff... |
unit sfContnrs;
interface
{$DEFINE MULTI_THREAD_QUEUE} // 线程安全版本,如果不需要线程安全,请注释掉此行代码
{$IFDEF MULTI_THREAD_QUEUE}
uses
Windows;
{$ENDIF}
type
TsfQueue = class
private
FCapacity: Integer;
FTmpBuff: Pointer;
FBuff: Pointer;
FPosition: Integer;
{$IFDEF MULTI_THREAD_QUEUE}
FCS: TRTLCriticalSec... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.6.6.2-4, FILE=ERR49T, C... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.8.3.5-4, FILE=DEV209, C... |
unit UCL.DragReorder;
interface
uses
Classes,
SysUtils,
Controls,
CommCtrl,
Graphics,
Types,
Windows,
Variants,
StdCtrls,
ExtCtrls,
UCL.Classes;
type
TUDragObject = class(TDragControlObjectEx)
private
FDragImages: TDragImageList;
protected
function GetDragImages: TDragImageList; ... |
unit AppSync;
interface
uses
SysUtils, AppUtils2, ZjhCtrls, Dialogs, ADODB, AppDB2, DB,Classes;
type
TAppSync = class
private
{ Private declarations }
procedure CopyFields(Target, Source: TAppDataSet;const Args: array of String); overload;
procedure CopyFields(Target: TAppDataSet;Source:TADOQuery;... |
{*******************************************************************************
Title: T2Ti ERP
Description: VO da resolução.
The MIT License
Copyright: Copyright (C) 2010 T2Ti.COM
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "... |
unit Prepare;
interface
// Поиск символа в строке начиная с позиции startIndex
function myPos( const C: char; Str: string; startIndex: integer ):integer; overload;
// Если startIndex не указывать, то поиск начинается с начала строки
function myPos( const C: char; Str: string ):integer; overload;
// Замен... |
{*******************************************************************************
Title: T2Ti ERP
Description: Classe de controle da unidade.
The MIT License
Copyright: Copyright (C) 2010 T2Ti.COM
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentatio... |
//==============================================================================
unit uDefines;
//==============================================================================
//==============================================================================
interface
//=================================================... |
{**
@abstract(This units contains utf-8 aware versions of certain XQuery functions)
If this unit is included in any uses clause it overrides the default string-length, substring, translate, string-to-codepoints XQuery functions
with utf8-aware functions.
It depends on the utf8tools (http://wiki.lazarus.freepa... |
unit VamLib.Logging.AbstractLog;
interface
type
ITrackMethod = interface
['{F84BCE54-9594-4605-9468-F9AB792DC707}']
end;
ITrackMethodTime = interface
['{BA9C746A-9ED1-4C8B-9A35-0D99113A3E86}']
end;
IAbstractLog = interface
['{D85AE125-B21C-42EB-9737-2CB3A236B8E8}']
procedure LogTime(const ... |
unit FileManager.Providers.Frames.Base;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, System.IOUtils,
Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, System.Math, IdCustomHTTPServer;
type
TFrameBase = class(TFrame)
procedure FrameMouseEnter(Sender: TO... |
unit Unit1;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, IdContext, IdCustomHTTPServer, IniFiles,
Vcl.StdCtrls, IdBaseComponent, IdComponent, IdCustomTCPServer, IdHTTPServer,
uCommon, uLogger, uSQLHelper, ... |
unit QzUtils;
interface
uses
Dialogs;
function NextToken(var str: String;
const dlm: String = #9;
triming: Boolean = True): String;
function IntToDec(val: Integer; digit: Integer): String; overload;
function IntToDec(val: Int64; digit: Integer): String; overload;
... |
unit trsProjects;
{**
* This file is part of the "Mini Translator" http://www.sourceforge.net/projects/minilib
*
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
* @author Zaher Dirkey <zaher at parmaja dot com>
*}
{$mode objfpc}{$H+}
interface
uses
SysUtils, Variants, Classes, Forms... |
{**************************************************************************}
{ TAdvFancyLabel component }
{ for Delphi & C++Builder }
{ }
{ written ... |
// Модуль сгенерирован 03.05.2007 21:44:25 программой DelphiXML, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// По всем вопросам обращайтесь к Денису Степулёнку +79117117850 (super.denis@gmail.com)
{
Test(Test):None Структура
HelloWorld(HelloWorld):UnsignedInt ПростойТип
}
unit Xmlfile1_;
int... |
object Scanline: TScanline
Left = 270
Top = 141
BorderStyle = bsDialog
Caption = 'Video Settings'
ClientHeight = 266
ClientWidth = 233
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'MS Sans Serif'
Font.Style = []
OldCreate... |
unit unitCodeSoft;
interface
uses classes,sysutils,windows,dialogs,forms,unitThreadSample, ExtCtrls,
unitLog,unitCodeSoft6,unitCodeSoftSample,unitCodeSoft5,unitCodeSoft4,unitCSPrintData;
type
TLabelType=(LabelSN,LabelCarton,LabelelPallet);
TCSType=(CS6,CS5,CS4);
TCodeSoft=class(TComponent)
private
... |
unit AggCheckBoxControl;
////////////////////////////////////////////////////////////////////////////////
// //
// Anti-Grain Geometry (modernized Pascal fork, aka 'AggPasMod') //
// Maintained by Christian-W. Budde (Christ... |
UNIT StackADT2;
INTERFACE
TYPE
Node = ^NodeRec;
NodeRec = RECORD
value: INTEGER;
next: Node;
END;
List = Node;
Stack = RECORD
data: List;
END;
// Initializes a Stack
// IN Stack
// Must be called before any other operation is called on a stack.
PROCEDURE InitStack(VA... |
unit untCommFunc;
interface
uses
Windows, SysUtils, Registry, JwaWinIoctl, WinSvc;
const
RUN_VALUE_NAME = 'LCXLShadow';
IDE_ATA_IDENTIFY = $EC; // ATA的ID指令(IDENTIFY DEVICE)
// #define DFP_RECEIVE_DRIVE_DATA 0x0007c088
DFP_RECEIVE_DRIVE_DATA = ((IOCTL_DISK_BASE shl 16) or
((FILE_READ_ACCESS or FILE_WRI... |
unit UTesteCheque;
{
Delphi DUnit Test Case
----------------------
This unit contains a skeleton test case class generated by the Test Case Wizard.
Modify the generated code to correctly setup and call the methods from the unit
being tested.
}
interface
uses
TestFramework, UCheque;
typ... |
(*
Interface with the TSR.
The TSR must be loaded before the program, with the following parameters:
TSRFisc -sn
where 'n' is the serial port number.
If necessary, there are two additional parameters (-b and -q) that
set I/O base address and IRQ of the serial port, respectively.
After the program's terminati... |
{******************************************************************
* 项目名称:
* 单元名称:如何成为玛法勇士(10级)
* 单元作者:
* 摘 要:
* 备 注:
*******************************************************************}
program Mir2;
{$I common.pas}
//本任务的任务编号,每个任务对应不同的任务编号,这个不可以重复
const CurrentTaskID = 103;
//TASK_TYPE_MAIN 任务类型... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.6.5.2-7, FILE=ERR21T, C... |
{
*******************************************************************************
* *
* LGPL with linking exception (like Lazarus). See the file license.md, *
* included in this distribution, for details about the copyright. ... |
{ ******************************************************************
Two-way analysis of variance
****************************************************************** }
unit uanova2;
interface
uses
utypes;
procedure AnOVa2(NA, NB, Nobs: Integer; M, S: TMatrix; out V, F: TVector;
out DoF: TIntVecto... |
unit SoundElement.ModuleController;
interface
uses
SysUtils,
Contnrs,
SoundElement.Types,
SoundElement.ModulePins,
SoundElement.Modules;
type
TModuleController = class
private
FModules: TChildModuleList;
FProcessingList : TObjectList;
protected
procedure EventHandle_ModuleListChanged(Sen... |
unit TestAppMain;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, System.Generics.Collections, NPCompiler.Package,
NPCompiler.Intf, OPCompiler, NPCompiler.Classes, SynEdit, SynEditHighlighter, Syn... |
Program DAudio;
{$PMTYPE PM }{$S-}{$R *.RES}{&CDecl+}
uses Use32,Os2Def,Os2PMApi,os2mm;
const
ID_DIALOG = 100;
ID_PLAY = 101;
ID_RECORD = 102;
ID_STOP = 103;
ID_ICON = 104;
STRING_LENGTH = 128;
MAX_BUFFERS = 256;
DEFAULT_FILE = 'daudio.wav';
var
hwndFrame : HWND;... |
unit uDebugger;
{$I SynEdit.inc}
interface
uses
Windows, Classes;
type
TDebuggerState = (dsStopped, dsRunning, dsPaused);
TDebuggerLineInfo = (dlCurrentLine, dlBreakpointLine, dlExecutableLine);
TDebuggerLineInfos = set of TDebuggerLineInfo;
TBreakpointChangeEvent = procedure(Sender: TObject; ALine: int... |
// Language Bath
// Copyright (c) 2020 Barend Gehrels, Amsterdam, the Netherlands.
// Use, modification and distribution is subject to the MIT License
// https://raw.githubusercontent.com/barendgehrels/langbath/main/LICENSE
// See description in the main unit
program split_sentences;
{$mode objfpc}{$H+}
uses
Clas... |
(*-----------------------------------------------------------------------------
The contents of this file are subject to the Mozilla Public License
Version 1.1 (the "License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.mozilla.org/MPL/MPL-1.1... |
unit Cayan.Genius;
interface
uses
System.Classes, System.SysUtils,
Cayan,
Cayan.Genius.Intf,
Cayan.Genius.Impl,
Cayan.MWv4.Intf,
Cayan.MWv4.Impl,
Cayan.Common;
type
TCayanGeniusDevice = class;
TCayanGenius = class;
TCayanGeniusDevice = class(TPersistent)
private
FOwner: TCayanGenius;
f... |
{ *********************************************************** }
{ * ksTools Library * }
{ * Copyright (c) Sergey Kasandrov 1997, 2010 * }
{ * ----------------------------------------- * }
{ * http://sergworks.wordpress.com/kstools * }
... |
unit ViewTypes;
{$mode objfpc}{$H+}
interface
uses
Classes, TaskRunner, Graphics;
const
MinCaptureViewWidth = 2;
MinCaptureViewHeight = 2;
type
TViewFlags = set of (
vfExpanding,
vfCollapsing,
vfExpanded,
vfVisibilityInvisible,
vfVisibilityGone,
vfMatchFilter);
{ TView }
TVie... |
unit F16;
interface
uses bentukan;
procedure tambahResep(var arrresep:tabresep;var arrmentah:tabMentah;var arrolah:tabOlah);
{
I.S.: arresep, arrmentah, arrolah terdefinisi
F.S.: melakukan penambahan resep. Setiap resep dibuat dari minimum 2 buah bahan mentah/olahan yang ada (tidak boleh dari bahan yang tida... |
{
******************************************++***********************************
* *
* LGPL with linking exception (like Lazarus). See the file license.md, *
* included in this distribution, for details about the copyright. ... |
unit Lucidity.Dsp;
interface
{$INCLUDE Defines.inc}
procedure ComputeMixBalance(const MixBalance : single; var MixDry, MixWet : single);
implementation
procedure ComputeMixBalance(const MixBalance : single; var MixDry, MixWet : single);
begin
assert(MixBalance >= 0);
assert(MixBalance <= 1);
MixDry := Sqrt(... |
unit Unit2;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Tee.Collection, Vcl.StdCtrls, MyComponent;
type
TFormExample = class(TForm)
Memo1: TMemo;
Button1: TButton;
Button2: TButton;... |
{-----------------------------------------------}
program Cradle;
{-----------------------------------------------}
{Constant Declaration}
const TAB = ^I;
const CR = ^M;
const LF = ^J;
{-----------------------------------------------}
{Variable Declarations}
var Look: char; {Lookahead Character}
{----------... |
unit Terrain;
interface
uses SwinGame;
type
//
// Valid tile types for building maps with.
// Used as a terrain flag for different logic.
//
TileType = (Water, Sand, Dirt, Grass, MediumGrass, HighGrass, SnowyGrass, Mountain);
//
// Represents a feature on top of a tile that can have a bitmap,
// c... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.8.2.3-4, FILE=DEV201, C... |
unit JavaCodeUtils;
interface
uses
SysUtils;
function ConvToBeanName(ANormalName: string): string;
implementation
function ConvToBeanName(ANormalName: string): string;
var
TempStr: string;
begin
TempStr := Trim(ANormalName);
if Length(TempStr) > 0 then
Result := LowerCase(TempStr[1]) + C... |
{
******************************************++***********************************
* *
* LGPL with linking exception (like Lazarus). See the file license.md, *
* included in this distribution, for details about the copyright. ... |
{ ******************************************************************
Incomplete Beta function.
Translated from C code in Cephes library (http://www.moshier.net)
****************************************************************** }
unit uibeta;
interface
uses
uConstants, umath, ugamma;
function IB... |
{$D-,S-,R-,Q-,A+}
unit VGA;
interface
procedure SetHorizontalTotal(Value: Byte);
procedure SetHorizontalDisplay(Value: Byte);
procedure SetStartHorizontalBlank(Value: Byte);
procedure SetEndHorizontalBlank(Value: Byte);
procedure SetStartHorizontalRetrace(Value: Byte);
procedure SetEndHorizontalRetrace(Valu... |
Unit BufferedFile;
INTERFACE
Const BufferSize = 4096;
TYPE
TBufferInfo = Record
buf : pchar;
Start : Longint; // File Postion for the Start of the Buffer
Size : Longint; // Data Size within the Buffer
Index : Longint; // Current Cursor Position
... |
unit Classes.Utils;
interface
type
TStringUtils = class
class function ehNumerico(AChar: Char):boolean;
class function ehApenasNumerico(Texto: string):boolean;
class function StringFormatada(const Texto: string; const Tamanho: Integer):string;
/// Escolhi essa implementação por ter melhor performance... |
unit Tcpgameserver;
interface
uses
Tcpserver, System.Classes, GameProtocol, System.SysUtils, LogServer,
GameSqlServer, TBotFindPlayer, System.Math, System.SyncObjs, DateUtils,
Winapi.Windows, Vcl.ExtCtrls, Vcl.Dialogs;
type
TGameClient = class
private
FClient: TTCPClient;
FUsername: AnsiString;
... |
unit uXYPadsFrame;
interface
{$INCLUDE Defines.inc}
uses
VamLib.Vcl.ZeroFrame,
uGuiFeedbackData,
VamLib.ZeroObject, eePlugin, Lucidity.GuiStandard,
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes,
Vcl.Graphics, Vcl.Controls, Vcl.Forms, RedFoxWinControl,
VamWinControl, Va... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.6.3.7.1-6, FILE=LEV1F15... |
unit JSON.Atributes.Funcoes;
interface
uses
System.SysUtils,
System.Classes,
System.Generics.Collections,
System.Rtti,
Data.DBXJSONReflect,
JSON.Atributes;
type
TProperties = array of TRttiProperty;
TJsonAtributosFuncoes = class
class function Ignore<T: class>(prop: TRttiProperty): boolean; stat... |
uses System;
function IsFive(num: Integer): Boolean
begin
if num = 5 then begin
exit true;
end;
WriteLn('it''s not five');
false
end;
for let i := 1 to 5 do begin
if IsFive(i) then WriteLn('found five!');
end; |
unit AggGammaSpline;
////////////////////////////////////////////////////////////////////////////////
// //
// Anti-Grain Geometry (modernized Pascal fork, aka 'AggPasMod') //
// Maintained by Christian-W. Budde (Christian@... |
unit uListViewSort;
interface
(*https://www.swissdelphicenter.ch/en/showcode.php?id=1103*)
uses
Vcl.ComCtrls, System.SysUtils, Winapi.Windows;
type
TCustomSortStyle = (cssAlphaNum, cssNumeric, cssDateTime);
var
{ variable to hold the sort style }
LvSortStyle: TCustomSortStyle;
{ array to hold the sort ord... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.9-2, FILE=CONF193, CLASS=CO... |
unit uStyleMgr;
interface
type
TStyleMgr = class
class procedure LoadCalypsoStyle;
class procedure LoadVaperStyle;
class procedure LoadWedgewoodStyle;
class procedure LoadEmeraldStyle;
end;
implementation
uses
FMX.Styles;
{ TStyleMgr }
class procedure TStyleMgr.LoadCalypsoStyle;
begin
{$I... |
segment vstrseg;
{Erick Nave
DS&A I 10-26-93}
{The segment VSTRSEG enables a user to incorporate variable length
strings into another program. VSTRSEG contains functions and
procedures that perform the operations performed on ADT Variable
Length String}
{The include file defines constants and types used ... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.7.2.2-4, FILE=CONF154, CLAS... |
unit UnitLogs;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, DBCGrids, DB, ADODB, Grids, DBGrids, ExtCtrls, StdCtrls, ComCtrls, UnitMain;
type
TFrameLogs = class(TFrame)
DataSourceLogs: TDataSource;
DBGridLogs: TDBGrid;
GridPanelLeft: TGridPanel... |
{***************************************************************************}
{ TAdvMemo styler component }
{ for Delphi & C++Builder }
{ }
{ writte... |
unit AdvSmoothDropDownList;
{$I TMSDEFS.INC}
interface
uses
Windows, Controls, ExtCtrls, Classes, StdCtrls,
AdvSmoothListBox, AdvStyleIF, dialogs;
type
TAdvSmoothCrackedListBox = class(TAdvSmoothListBox)
end;
TAdvSmoothDropDownListItemSelect = procedure(Sender: TObject; Value: String) of object;
TAdv... |
unit eeGuiStandard_Types;
interface
uses
eeTypes,
eeMidiMap;
type
TGetParemeterDisplayFunction = function(ParameterID:integer):string of object;
TGetParemeterLabelFunction = function(ParameterID:integer):string of object;
TGetCurrentMidiBinding = function (ParameterID:integer; TargetType:TTargetType):integ... |
program GameMain;
uses SplashKit, sysUtils;
const
GRAVITY = 0.08;
MAX_SPEED = 5;
JUMP_RECOVERY_BOOST = 2;
FOREGROUND_FOREROOF_POLE_SCROLL_SPEED = -2;
BACKGROUND_SCROLL_SPEED = -1;
NUM_POLES = 4;
GAME_FONT_SIZE = 21;
type
PoleData = record
UpPole: Sprite;
DownPole: Sprite;
end;
P... |
{******************************************************************************}
{ Unit description: }
{ Developer: Date: }
{ Modifier: CGY Date: 2002/3/8 ... |
unit TDlgSFXTag;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, AnimationSeekBarImpl1;
type
TSFXTagDialog = class(TForm)
Lable_SFXTagList: TLabel;
Combo_SFXTagList: TComboBox;
Group_SFXTagContent: TGroupBox;
BindEdit: TBut... |
unit ScrReport;
{*************************************************************************}
{* *}
{* Author : Alcindo Schleder *}
{* Copyright: © 2003 by Alcindo Schleder. All rights reserved. ... |
unit Fearless.Bind;
interface
implementation
uses
System.SysUtils,
System.Bindings.Methods, System.Bindings.EvalProtocol,
System.Bindings.Consts, System.TypInfo,
System.TimeSpan;
function MakeNowMethod: IInvokable;
begin
Result := MakeInvokable(function(Args: TArray<IValue>): IValue
begin
Result... |
Unit TCP_HostlistWizard;
Interface
Uses
Classes, Forms, Graphics, TabCtrls, StdCtrls, Buttons, ExtCtrls,Messages;
Type
THostListWizard = Class (TForm)
NoteBook1: TNoteBook;
GroupBox1: TGroupBox;
Info: TLabel;
Label1: TLabel;
LabelStep1: TLabel;
GroupBoxIP: TGroupBox;
EditHostIP: TEdit... |
unit Tuner;
interface
type
TTuner = class
procedure TunerOn;
procedure TunerOff;
procedure SetAm;
procedure SetPm;
procedure SetFrequency(freq : string);
end;
implementation
{ TTuner }
procedure TTuner.SetAm;
begin
Writeln('Tunner On Am');
end;
procedure TTuner.SetFrequency;
begin
Write... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.