text
stringlengths
14
6.51M
{ Web Open Font Format 1.0 } {$MODE OBJFPC} {$H+} {$INLINE ON} unit fi_woff; interface uses fi_common, fi_info_reader, fi_sfnt_common, classes, sysutils, zstream; implementation const WOFF_SIGNATURE = $774f4646; // 'wOFF' type TWOFFHeader = packed record signature, flavor, length:...
{**************************************************************************************************} { } { Project JEDI Code Library (JCL) } { ...
unit VamLib.Animation; interface uses SysUtils, VamLib.UniqueID, VamLib.ZeroObject, ExtCtrls, Contnrs, Generics.Collections; type // TODO: It would be awesome to exten the animations with easing curves. // For a list of different curves. // http://easings.net/ //================================...
{ ===================================================================================================================== PROGRAM: register-script-use.exe DESCRIPTION: Register the use of a script. VERSION: 01 2015-04-23 PVDH Initial version; dirty version; fixed path to export folder. RETURNS: Nothing ...
(*----------------------------------------------------------------------------- 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 tf_customops; //********************************************************************************************************************************** // // Pascal methods to create and manage TensorFlow based custom operations, built over the raw operations // // Copyright: (C) 2023, Zsolt Szakaly // // This sour...
{ ****************************************************************** Principal component analysis ****************************************************************** } unit upca; interface uses utypes, ujacobi, umachar, uConstants; procedure VecMean(X: TMatrix; Lb, Ub, Nvar: Integer; out M: TVector)...
{*************************************************************************} { AdvMetroHint component } { for Delphi & C++Builder } { } { written by TMS...
{ ****************************************************************** Polynomial evaluations for special functions. Translated from C code in Cephes library (http://www.moshier.net) ****************************************************************** } unit upolev; interface uses utypes, uConstants; ...
{ MIT License Copyright (c) 2017 Jamie Geddes Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, di...
unit Principal; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Data.DB, Datasnap.DBClient, Vcl.Grids, Vcl.DBGrids, Vcl.StdCtrls, Vcl.ExtCtrls, Vcl.Buttons, CsvReader, ReaderFactory, Dados; type TForm1 = c...
unit DContacts.Controllers.Contact; interface uses System.Classes, DContacts.Models.Entities.Contact, DContacts.PresentationModel.Dialog, Spring.Collections, Spring.Container.Common, Spring.Persistence.Core.Interfaces; type TContactController = class private FContactId: Integer; FContact: ...
unit LPTControlerClient; interface uses Windows, Winsock, Classes, SysUtils, Log4D, IniFiles, Dialogs, LPTPort, Protocol; type TEvent = record Timestamp: TDateTime; Bit: TBit; Status: TBitStatus; end; TEventList = array of TEvent; TLPTControlerClient = class (TObject) pr...
{ Pascal Validation Suite Version 5.7 } { } { (C) Copyright 1982, British Standards Institution } { } { TEST 6.2.2-2, FILE=CONF026, CLASS=...
PROGRAM InsertSort2(INPUT, OUTPUT); USES SortToFile; TYPE StateType = (NoEOF, BothEOF, FirstEOF, SecondEOF); {состояние файлов при копировании в процедуре CopySortFiles} VAR ArrayForSort: ArraySort; CountWord, Index: INTEGER; Ch: CHAR; MaxAch: BOOLEAN; Inp, F1, FTemp, SortFile: TEXT; Word...
{******************************************************************************* Title: T2Ti ERP Description: Classe de controle do operador. 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 documentati...
{ ******************************************++*********************************** * * * LGPL with linking exception (like Lazarus). See the file license.md, * * included in this distribution, for details about the copyright. ...
{ ****************************************************************** Multinormal distribution ****************************************************************** } unit uranmult; interface uses utypes, urandist, urandom; type TRanMult = class(TRandomGen) private Gen: TRanGauss; public ...
unit UnitTAddDeckView; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, UnitTMainMenuView, UnitTDeck; type TAddDeckView = class(TForm) DeckNameTextBox: TEdit; SaveDeckButton: TButton; ...
unit UServerMain; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs,INIFILES, Vcl.ExtCtrls, Vcl.AppEvnts, IdContext, Vcl.Menus, IdBaseComponent, IdComponent, IdCustomTCPServer, IdTCPServer, Vcl.Buttons, IdLogBas...
program parseclauses; (* ident "@(#)dapro/simple/parseclauses.p 1.70 17/02/03" *) { Assumes a ps3.p file has clause-atoms; made into a ps4.p file. Works into two directions: reads a clset; adds the <S>, <P>, <O> parsing of clauses to it; reads a PS4.p file, picks up parsing proposals from there; or add...
unit CliUsage; interface uses CliParam, System.Generics.Collections; type /// A class that generates a text describing how to use command line arguments. TCliUsage = class(TObject) strict private FFileName: String; FCliParams: Tarray<TCliParam>; function GenerateText(): String; const HORIZON...
// Language Bath - Assign Timings // 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 // This form contains the frame with all sentences, and some controls for book...
unit DContacts.Modules.Connections.Interfaces; interface type IConnectionModule<T: class, constructor> = interface ['{C9672A9A-84E1-4F08-B870-F5D2A41941E9}'] {$REGION 'Accesors'} function GetConnection: T; function GetDriverName: String; {$ENDREGION} property Connection: T read GetConnection...
unit uLucidityData; interface uses Generics.Collections, VamLib.ZeroObject; type { Lucidity uses two data directories. - \Data\Factory - \Data\User The FACTORY directory contains all data files that are default to a installation. They will sometimes be deleted or over-writ...
{ Pascal Validation Suite Version 5.7 } { } { (C) Copyright 1982, British Standards Institution } { } { TEST 6.8.2.3-2, FILE=IMPDEP13,...
{ Pascal Validation Suite Version 5.7 } { } { (C) Copyright 1982, British Standards Institution } { } { TEST 6.2.2-4, FILE=CONF028, CLASS=...
unit Services.Base; interface uses System.Generics.Collections, FireDAC.Stan.Option, FireDAC.Comp.Client, FireDAC.Stan.Param, MVCFramework.FireDAC.Utils, MVCFramework.DataSet.Utils, MVCFramework.Serializer.Commons, System.SysUtils, JsonDataObjects, MainDM; type TServiceBase = class abstract strict protected ...
unit Tiny.Rtti; {******************************************************************************} { Copyright (c) Dmitry Mozulyov } { } { Permission is hereby granted, free of charge, to any perso...
unit FormViewTypes; interface uses System.Classes, FMX.Controls, FMX.Forms; type IFormViewHost = interface procedure Back; procedure ShowSideBar; procedure EditSettings; procedure SettingsChanged; procedure ShowActivityPanel( const Msg: string ); procedure HideActivityPan...
program YesNo; procedure YesOrNo(input: char); begin; if input = 'y' then writeln('YES') else writeln('NO') end; begin YesOrNo('y'); YesOrNo('Y'); end.
// // type TControlMode = (cmManual, cmScript, cmRemote); TRobotControls = record Fh: double; V1, V2: double; end; TPartState = (psRed, psGreen, psBlue, psYellow, psBlank); TCellState = (msEmpty, msBusy, msFull); // Global Variables var irobot, NumRobots: integer; t,sens_esq...
program LAN2LAN; uses Crt, Dos; var File1 : text; File2 : text; Key : char; Line1 : string; Line2 : string; Station : integer; count : integer; Temp2 : string; Row1 : integer; Row2 : integer; finished : boolean; Hour, Minute, Second, Sec...
unit CadExp; {*************************************************************************} {* *} {* Author: Alcindo Schleder *} {* Copyright: © 2003 by Alcindo Schleder. All rights reserved. ...
unit uFrmStorage; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.ExtCtrls, Vcl.Grids, Vcl.DBGrids, Vcl.Buttons, Vcl.StdCtrls, Vcl.ComCtrls, uMdlStorage, uUtlForm, uUtlAlert, uEntStorage; type TFrmStorag...
{ Pascal Validation Suite Version 5.7 } { } { (C) Copyright 1982, British Standards Institution } { } { TEST 6.7.1-8, FILE=CONF148, CLASS=...
{ Pascal Validation Suite Version 5.7 } { } { (C) Copyright 1982, British Standards Institution } { } { TEST 6.6.3.5-2, FILE=DEV135, C...
{ Pascal Validation Suite Version 5.7 } { } { (C) Copyright 1982, British Standards Institution } { } { TEST 6.8.3.9-5, FILE=DEV222, C...
unit Model.Services.CEP.ViaCEP; interface Uses System.SysUtils, Model.Services.Interfaces; Type TModelServicesCEPViaCEP = Class(TInterfacedObject, iModelServicesCEP) private FParent : iModelServicesCEP; FReturn: String; FCode : String; FDisplay : TProc<String>; procedure _Retu...
{ Pascal Validation Suite Version 5.7 } { } { (C) Copyright 1982, British Standards Institution } { } { TEST 6.9.1-2, FILE=CONF195, CLASS=...
unit frmInputBoxDecimal; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, //Auto Create StdCtrls, Menus, cxLookAndFeelPainters, ActnList, ImgList, cxButtons, cxControls, cxContainer, cxEdit, cxTextEdit, cxMaskEdit, cxDropDownEdit, cxCalc; ty...
{ Pascal Validation Suite Version 5.7 } { } { (C) Copyright 1982, British Standards Institution } { } { TEST 6.8.3.9-3, FILE=CONF179, CLAS...
unit CadTMov; {*************************************************************************} {* *} {* Author: Alcindo Schleder *} {* Copyright: © 2003 by Alcindo Schleder. All rights reserved. ...
unit UResMan; interface uses SysUtils, IniFiles, TypInfo, Windows, Graphics, Controls, Classes, // other units Usingleton, // Self-made units UGraph, Ucommon; type RGrafcfg = reCord // for config Loading Width, Height, Cadres : Word; transCol : Cardinal; BoundRec...
{ Pascal Validation Suite Version 5.7 } { } { (C) Copyright 1982, British Standards Institution } { } { TEST 6.4.3.2-5, FILE=DEV070, C...
unit TestmlLibraryManager; interface uses TestFramework, Windows, Classes, SysUtils, mlLibrary, mlTypes, TestConstants; type TestLibraryManager = class(TTestCase) private fMemStream: TMemoryStream; fEventCalled: Boolean; procedure TestEvent(const aLibName, aDependentLib: String; var aLo...
unit swPHPSerializer; interface uses sysutils, math; type TPHPSerializer = class private const _BRACKET_OPEN = '{'; _BRACKET_CLOSE = '}'; _DATA_DELIMITER = ';'; var _result_string: string; public constructor Create; procedure Clear(dummy: boolean = true); proc...
unit VamLib.Collections.Lists; interface type // The 'Simple' list classes are lightweight list classes for use // where a full list class isn't required. // - Iteration via the Raw:TArray field is quick. // - Delete operations are slow. // - Insert operations are slow. // - Append operations are good. ...
unit uAttributeRel; interface uses Uni, UTableBase, System.Generics.Collections, uAttribut; type TAttributRel = class(TEntityBase) private // Felder private, durch property veröffentlichen fId: Integer; fTaskID: Integer; fAttributID: Integer; public property id: integer read fID write f...
unit uChartPainter; interface uses SysUtils, Types, Windows, Graphics, uMathIntf, uMath, Math, uFPUSupport, uChartScale, uFunctionsGraphing; type TLegendPosition = (leNone, leTopLeft, leTopRight, leBottomLeft, leBottomRight); TPaintTarget = record // In Canvas: TCanvas; DrawRect: TRect; // O...
(* * Copyright (c) 2012, Linas Naginionis * Contacts: lnaginionis@gmail.com or support@soundvibe.net * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code m...
unit soFilter.RingModA; interface uses soSineOsc; type TRingModA = class private fSampleRate: single; fOscFreq: single; fMix: single; procedure SetOscFreq(const Value: single); procedure SetSampleRate(const Value: single); procedure SetMix(const Value: single); protect...
(*----------------------------------------------------------------------------- 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...
{ Pascal Validation Suite Version 5.7 } { } { (C) Copyright 1982, British Standards Institution } { } { TEST 6.1.7-9, FILE=DEV022, CLA...
{ Pascal Validation Suite Version 5.7 } { } { (C) Copyright 1982, British Standards Institution } { } { TEST 6.4.4-1, FILE=CONF077, CLASS=...
unit AudioPlugin.PlugEdit; interface uses Windows, Vcl.Forms, Types, AudioPlugin.Globals; type TAudioPlugEditor = class; TAudioPlugEditorClass = class of TAudioPlugEditor; TAudioPlugEditor = class private FIsOpen: boolean; protected property IsOpen : boolean read FIsOpen; public clas...
unit uComboBoxMongo; interface uses FMX.ListBox, System.Classes, System.SysUtils, System.Variants, uMongo_Tipificacoes, bsonDoc, mongoWire, bsonUtils, System.Generics.Collections, uMongoQuery; type TComboBoxMongo = class(TComboBox) private FMongoCampo: String; FMongoTipoCampo: TCampo; FText: s...
{ Pascal Validation Suite Version 5.7 } { } { (C) Copyright 1982, British Standards Institution } { } { TEST 6.7.2.1-3, FILE=IMPDEP17,...
{ Pascal Validation Suite Version 5.7 } { } { (C) Copyright 1982, British Standards Institution } { } { TEST 6.6.4.1-1, FILE=CONF116, CLAS...
unit VamLib.FlexValue; interface uses SysUtils; type EFlexException = class(Exception); TFlexValue = class; IFlexValue = interface; // NOTE: Start by using a limited number of FlexValue types. It might be useful // to extend the supported types to Cromis.AnyValue, TObject, TClass, IInterface and more i...
unit Dao.TQueryBuilder; interface uses Data.DB, System.Classes, System.Generics.Collections, System.Rtti, System.SysUtils, Dao.IConection, SQLBuilder4D, Dao.IQueryBuilder, Model.Atributos.Funcoes, Dao.IResultAdapter, Model.CampoValor; type TQueryBuilder<T: class> = class(TInterfacedObject, IQueryBuilder<T>)...
unit emailsettings; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; type TFormEmailSettings = class(TForm) cxLabel2: TLabel; cxLabel4: TLabel; cxLabel3: TLabel; cxLabel5: TLabel; cxLabel6: TLabel; cxLabel7: TLabel; c...
UNIT NumberIO; INTERFACE PROCEDURE ReadNumber(VAR Source: TEXT; VAR Number: INTEGER); PROCEDURE ReadDigit(VAR Source: TEXT; VAR Digit: INTEGER); IMPLEMENTATION PROCEDURE ReadDigit(VAR Source: TEXT; VAR Digit: INTEGER); VAR Ch: CHAR; BEGIN Digit := -1; READ(Source, Ch); IF Ch = '0' THEN Digit := 0 ELSE IF Ch = '...
unit UMain; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, Menus, Grids, ActnList, StdActns, ToolWin, ComCtrls, ExtCtrls, StdCtrls, Buttons, ImgList; type TFrmMain = class(TForm) MainMenu: TMainMenu; MMFile: TMenuItem; MMNew: TMenuI...
unit MenuItem; interface uses System.SysUtils; type TMenuItem = class private Name : string; Artist : string; Cod : integer; Price : Currency; public constructor Create(Name, Artist : string;Cod : Integer;Price : Currency); function getAllSpecs : variant; functio...
UNIT Hashing; INTERFACE PROCEDURE AddPerson(name: STRING; VAR ok: BOOLEAN); FUNCTION ContainsPerson(name: STRING): BOOLEAN; PROCEDURE Dispaly; IMPLEMENTATION TYPE Hash = 0..9; FUNCTION ComputeHash(name: STRING) : Hash; BEGIN IF Length(name) = 0 THEN ComputeHash := Low(Hash) ELSE Comput...
unit Forms.Main; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, VCL.TMSFNCTypes, VCL.TMSFNCUtils, VCL.TMSFNCGraphics, VCL.TMSFNCGraphicsTypes, VCL.TMSFNCMapsCommonTypes, VCL.TMSFNCCustomControl, VCL.TMSFNCWebB...
unit hookHelper64; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.ExtCtrls; const WM_HELPER64 = WM_USER + 64; type TForm1 = class(TForm) Timer1: TTimer; procedure FormCreate(Sende...
{ Pascal Validation Suite Version 5.7 } { } { (C) Copyright 1982, British Standards Institution } { } { TEST 6.6.6.2-12, FILE=ERR51T, ...
{ Pascal Validation Suite Version 5.7 } { } { (C) Copyright 1982, British Standards Institution } { } { TEST 6.1.3-8, FILE=EXTEND8, CL...
unit Main; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, Menus, StdCtrls, ExtCtrls, Buttons, libmng; {****************************************************************************} {* For conditions of distribution and use, *} {* ...
procedure DetectFlats; // Looks for blocks of 3x3 or 4x4 pixels of the same color in bmpdata.image^ // of view 0. Each match adds points to flats[color].weight, and at the end // the array is sorted in order of descending weights. var ofsx, ofsy, cmpw1 : word; poku, poku2, poku3, poku4 : pointer; refcolor...
PROGRAM PrintSantaClaus(INPUT, OUTPUT); BEGIN WRITELN('Santa Claus') END.
{==============================================================================| | Project : Ararat Synapse | 001.000.001 | |==============================================================================| | Content: SSL support for SecureBlackBox ...
unit DelphiMaps.Location; interface uses DelphiMaps.GoogleMaps, Classes; type TLocationType = (ltCoordinates, ltText); TLocation = class private FText: String; FPosition: TGLatLng; FOnChange: TNotifyEvent; FLocationType: TLocationType; procedure SetText(const Value: ...
PROGRAM What(INPUT, OUTPUT); VAR Ch: CHAR; BEGIN READ(Ch); WRITELN('Ваш символ: ', Ch); WRITE('Является ли он числом? '); IF '0' <= Ch THEN IF Ch <= '9' THEN WRITELN('RHZ') END.
unit TSysManAux; {*************************************************************************} {* *} {* Author : Alcindo Schleder *} {* Copyright: © 2003 by Alcindo Schleder. All rights reserved. ...
unit PluginMsBuildmodule; {$I jedi.inc} {$IFDEF DELPHI6_UP} {$WARN SYMBOL_PLATFORM OFF} {$ENDIF DELPHI6_UP} interface uses ComObj, ActiveX, StdVCL, Graphics, makestudio_TLB, Classes, Windows, Dialogs, Controls, SysUtils; type TPluginTestcommand = class(TComponent, ICommand2, IExecCallback) ...
{----------------------------------------------------------------------------- Package: Graphing -----------------------------------------------------------------------------} unit uFunctionsGraphing; interface uses SysUtils, Classes, Graphics, uMathIntf, uMathValues, uMath, uFPUSupport; type TPlotRange = recor...
unit USubstitui; interface uses UISubstitui, System.SysUtils; type TSubstitui = class(TInterfacedObject, ISubstitui) public function Substituir(const aStr, aVelho, aNovo: String): String; end; implementation //Função utilizada para substituir parte de uma string por outra. //Parâmetros: // aStr: é a ...
//****************************************************************************** // CubicExplorer // Version: 0.90 // // The Original Code is CE_InfoBar.pas. // // The Initial Developer of the Original Code is Marko Savolainen (cubicreality@gmail.com). // Portions created by Marko Savolainen Copyright (C) M...
unit UEntidades; interface uses Aurelius.Mapping.Attributes, System.SysUtils, System.Variants, System.Classes, uFuncoes; type [Entity] [Automapping] TFornecedor = class private FId: Integer; FRazaosocial: string; FEndereco: string; FCidade: string; FTelefone: string; FD...
{ ******************************************************************************* * * * LGPL with linking exception (like Lazarus). See the file license.md, * * included in this distribution, for details about the copyright. ...
unit uBllThread; interface uses System.Classes, SysUtils, ActiveX, HttpApp, JSON, uCommon, IdHttp, FireDAC.Stan.Param, Data.DB; type TBllThread = class(TThread) private FIn: TIn; function HttpGet(url: string): string; procedure SaveResult(json: string); protected procedure Execute; override...
{ A classic lofi effect. Parameter 1 - Sample rate reduction Parameter 2 - Bit rate reduction. It's called LofiA because it probably will not be the only lofi effect. } unit djfxLofiA; interface uses eeGlobals, VamLib.MoreTypes, djfxBase; type TDJFXLofiA = class(TDJFXCustomFX) prot...
var max, min, a, b, c: integer; begin read(a, b, c); max := integer.MinValue; if a > max then max := a; if b > max then max := b; if c > max then max := c; min := integer.MaxValue; if a < min then min := a; if b < min then min := b; if c < min then min := c; writeln(min + max); end.
unit uTests; interface uses SysUtils, uMath, ComCtrls; type TMathSysTest = class private FIndent: string; Sys: TMathSystem; FTotal, FFailed: integer; procedure BeginGroup(Name: string); procedure EndGroup; procedure Expect(Condition: Boolean; FailMessage: string; SuccessMessage: string='...
unit uLocalLog; {* * <p>Title:U_FileLog</p> * <p>Description:实现文件存储日志的各项功能</p> * <p>Copyright: Copyright (c) 2004</p> * <p>Company: 北京紫光华宇软件股份有限公司</p> * @author LiDH * @date 2004.08.23 * @version 1.0 * modified by puzm 2006-07-07,去掉U_Consts, 将基本常量全部都定义到自己内部 * modified by zhangyx 2010-2-3,修改为增量保存方式以提高效率 *} in...
unit NGINX.WebModule; interface uses System.SysUtils, System.Classes, NGINX.FCGIApplication, NGINX.FCGIRequest, NGINX.FCGIResponse, System.Generics.Collections; type TWebModule = class private public procedure FCGIRequestIncoming(const sender: TObject; const Request: TFCGIRequest); procedure ...
program ejer5; type celular = record codigo: Longint; nombre: string; descripcion: string; marca: string; precio: Longint; stockMin: Longint; stock: Longint; end; arcCelulares= file of celular; var celulares: arcCelulares; carga: text; nombreArchivo:String; ops:char; buscado: s...
program alg003; { #-------------------------------------------# # Autor: Samuel T. C. Santos # # Data: 24-04-2014 # # Free Pascal Compiler # #-------------------------------------------# } var altura, base, area, perimetro: real; begin write('Altura? '); ...
var ch: Char; pos: integer; str: string; procedure error(); begin writeln('^':pos); WritelnFormat('Ошибка в символе {0}. Символы в последовательности должны чередоваться!', ch); halt; end; procedure NextCh; begin read(ch); pos += 1; end; begin writeln('Введите последовательност...
{Dieser Programmteil dient zum Anzeigen von 3D-Objekten über die Grafikschnittstelle OpenGL } unit oglDrawing; {$mode objfpc}{$H+} interface uses Classes, SysUtils,graphics,gl,glu; type { TOGLObject } //Verwaltet ein einfaches 3D-Objekt TOGLObject=class private _color: T4fArray; list: ...
unit VamLib.VclLayout; interface uses Controls; type IVclLayoutWizard = interface; IVclMultiLayoutWizard = interface; IVclLayoutWizard = interface ['{61A58D4D-3A21-4D48-9B7D-727E3DD5AC2B}'] function SnapToLeftEdge:IVclLayoutWizard; function SnapToRightEdge:IVclLayoutWizard; function SnapToT...
unit TLog; interface uses System.SysUtils, System.SyncObjs; type TDLog = class(TObject) private class var FInstance: TDLog; class function GetInstance: TDLog; static; public class property Instance: TDLog read GetInstance; class procedure ReleaseInstance; constructor Create; des...
{******************************************************************************* Title: T2Ti ERP Description: Classe de controle das configurações. 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 docum...
{==============================================================================| | Project : Delphree - Synapse | 001.001.000 | |==============================================================================| | Content: support procedures and functions ...
unit RepositoryConfig; interface uses ObjectsMappers, System.JSON; type /// <summary> /// A configuration for a repository. /// For the moment, it is supposed that there might be two types of repository: /// file system and database. /// </summary> [MapperJSONNaming(JSONNameLowerCase)] TRepositoryConf...
function gcd(a,b:longint):longint; var r:longint; begin repeat r:=a mod b; a:=b; b:=r until r=0; exit(a); end;{log(n)}
{----------------------------------------------------------------------------- Lookup table for constants supported via const() and constinfo() -----------------------------------------------------------------------------} unit uMathConstants; interface uses uMathIntf; type TConstantDef = record LongName: s...