alla flaggor
forky  ] [  sid  ]
[ Källkod: simdutf  ]

Paket: libsimdutf29 (7.7.1-1)

Länkar för libsimdutf29

Screenshot

Debianresurser:

Hämta källkodspaketet simdutf:

Ansvariga:

Externa resurser:

Liknande paket:

Fast Unicode validation and transcoding

Most modern software relies on the Unicode standard. In memory, Unicode strings are represented using either UTF-8 or UTF-16. The UTF-8 format is the de facto standard on the web (JSON, HTML, etc.) and it has been adopted as the default in many popular programming languages (Go, Zig, Rust, Swift, etc.). The UTF-16 format is standard in Java, C# and in many Windows technologies.

Not all sequences of bytes are valid Unicode strings. It is unsafe to use Unicode strings in UTF-8 and UTF-16LE without first validating them. Furthermore, we often need to convert strings from one encoding to another, by a process called transcoding. For security purposes, such transcoding should be validating: it should refuse to transcode incorrect strings.

This library provide fast Unicode functions such as

 * ASCII, UTF-8, UTF-16LE/BE and UTF-32 validation, with and without error
   identification,
 * Latin1 to UTF-8 transcoding,
 * Latin1 to UTF-16LE/BE transcoding
 * Latin1 to UTF-32 transcoding
 * UTF-8 to Latin1 transcoding, with or without validation, with and without
   error identification,
 * UTF-8 to UTF-16LE/BE transcoding, with or without validation, with and
   without error identification,
 * UTF-8 to UTF-32 transcoding, with or without validation, with and without
   error identification,
 * UTF-16LE/BE to Latin1 transcoding, with or without validation, with and
   without error identification,
 * UTF-16LE/BE to UTF-8 transcoding, with or without validation, with and
   without error identification,
 * UTF-32 to Latin1 transcoding, with or without validation, with and without
   error identification,
 * UTF-32 to UTF-8 transcoding, with or without validation, with and without
   error identification,
 * UTF-32 to UTF-16LE/BE transcoding, with or without validation, with and
   without error identification,
 * UTF-16LE/BE to UTF-32 transcoding, with or without validation, with and
   without error identification,
 * From an UTF-8 string, compute the size of the Latin1 equivalent string,
 * From an UTF-8 string, compute the size of the UTF-16 equivalent string,
 * From an UTF-8 string, compute the size of the UTF-32 equivalent string
   (equivalent to UTF-8 character counting),
 * From an UTF-16LE/BE string, compute the size of the Latin1 equivalent
   string,
 * From an UTF-16LE/BE string, compute the size of the UTF-8 equivalent
   string,
 * From an UTF-32 string, compute the size of the UTF-8 or UTF-16LE equivalent
   string,
 * From an UTF-16LE/BE string, compute the size of the UTF-32 equivalent
   string (equivalent to UTF-16 character counting),
 * UTF-8 and UTF-16LE/BE character counting,
 * UTF-16 endianness change (UTF16-LE/BE to UTF-16-BE/LE),
 * WHATWG forgiving-base64 (with or without URL encoding) to binary,
 * Binary to base64 (with or without URL encoding).

The functions are accelerated using SIMD instructions (e.g., ARM NEON, SSE, AVX, AVX-512, RISC-V Vector Extension, LoongSon, POWER, etc.). When your strings contain hundreds of characters, we can often transcode them at speeds exceeding a billion characters per second. You should expect high speeds not only with English strings (ASCII) but also Chinese, Japanese, Arabic, and so forth. We handle the full character range (including, for example, emojis).

The library compiles down to a small library of a few hundred kilobytes. Our functions are exception-free and non allocating. We have extensive tests and extensive benchmarks.

This package ships the shared object.

Andra paket besläktade med libsimdutf29

  • beror
  • rekommenderar
  • föreslår
  • enhances

Hämta libsimdutf29

Hämtningar för alla tillgängliga arkitekturer
Arkitektur Paketstorlek Installerad storlek Filer
alpha (inofficiell anpassning) 36,3 kbyte213,0 kbyte [filförteckning]
amd64 135,7 kbyte553,0 kbyte [filförteckning]
arm64 50,6 kbyte277,0 kbyte [filförteckning]
armhf 32,3 kbyte148,0 kbyte [filförteckning]
hppa (inofficiell anpassning) 40,7 kbyte163,0 kbyte [filförteckning]
i386 37,7 kbyte148,0 kbyte [filförteckning]
loong64 55,6 kbyte276,0 kbyte [filförteckning]
m68k (inofficiell anpassning) 33,9 kbyte132,0 kbyte [filförteckning]
ppc64 (inofficiell anpassning) 38,6 kbyte213,0 kbyte [filförteckning]
ppc64el 71,0 kbyte340,0 kbyte [filförteckning]
riscv64 39,9 kbyte141,0 kbyte [filförteckning]
s390x 37,4 kbyte160,0 kbyte [filförteckning]
sh4 (inofficiell anpassning) 38,5 kbyte148,0 kbyte [filförteckning]
sparc64 (inofficiell anpassning) 31,4 kbyte1.047,0 kbyte [filförteckning]
x32 (inofficiell anpassning) 135,9 kbyte520,0 kbyte [filförteckning]