Code Monkey home page Code Monkey logo

decal's Introduction

DeCAL

The Delphi Container and Algorithm Library (DeCAL) is a powerful library of reusable container classes, generic algorithms, and an easy to use persistence mechanism. It is similar to and based on Stepanov's STL.

Back in the first decade, DeCAL and it's predecessor STL was used in many commercial applications. It was released by Ross Judson on 22nd Sep 2000.

Motivation

I'm still using DeCAL for some small tools. Changing to Delphi 9 broke DeCAL due to the lack of WideString support which is now the default string type in Delphi. After finding the problem and fixing it some time ago, I finally decided to share the code.

Original Source

Source: https://sourceforge.net/projects/decal/

I didn't check in the original source to GitHub, because the Delphi IDE messes with the spaces and tabs making a diff impossible because almost every line is marked as changed.

License

Mozilla Public License 1.0

Notable Changes

  • Added String support for Delphi XE standard strings (former WideString)
  • Fixed a bug in Superstream. A TChar was incremented to walk a buffer which was okay when every char in a string was one byte. (Changed TChar to TByte)

Testing

I'm still using DeCAL for a bunch of projects. It's easily implemented with a very small footprint and has decent performance. There are no TESTS included other than the original files "DeCALTesting.pas" and "RandomTesting.pas". Test Driven Development (TDD) was unknown in the 1990's.

I'm currently using DeCAL with Delphi 11 "Community Edition" with no problems. I wouldn't suggest using it for large projects due to the missing tests. Use this fix at your own risk

decal's People

Contributors

olray avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.