Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Universally Unique Lexicographically Sortable Identifier

License

NotificationsYou must be signed in to change notification settings

VSoftTechnologies/VSoft.Ulid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Delphi Implementation ofULID for Delphi XE2 or later.

  • 128-bit compatibility with UUID
  • Lexicographically sortable!
  • Canonically encoded as a 26 character string, as opposed to the 36 character UUID
  • Uses Crockford's base32 for better efficiency and readability (5 bits per character)
  • Case insensitive
  • No special characters (URL safe)
  • Monotonic sort order (correctly detects and handles the same millisecond)

Installation

DPM

Install VSoft.Ulid in the DPM IDE plugin, or

dpm install VSoft.Ulid .\yourproject.dproj

Manually

Clone the repository and add the VSoft.Ulid.pas file to your project, or add the repo\Source folder to your project's search path.

Usage

var  ulid : TUlid;  s : string;begin  ulid := TUlid.Create;  s := ulid.ToString;    .....  ulid := TUlid.Parse('01J4H739Z46PZEFF5F6X5Q338Z');  writeln(ulid.ToString);end;

About

Universally Unique Lexicographically Sortable Identifier

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp