套件:libsimdutf31(8.0.0-1)
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.
其他與 libsimdutf31 有關的套件
|
|
|
|
-
- dep: libc6 (>= 2.14) [amd64]
- GNU C 函式庫:共用函式庫
同時作為一個虛擬套件由這些套件填實: libc6-udeb
- dep: libc6 (>= 2.16) [x32]
- dep: libc6 (>= 2.17) [arm64, ppc64el]
- dep: libc6 (>= 2.2) [hppa]
- dep: libc6 (>= 2.27) [riscv64]
- dep: libc6 (>= 2.4) [armhf, i386, m68k, ppc64, s390x, sparc64]
- dep: libc6 (>= 2.42) [loong64, sh4]
-
- dep: libc6.1 (>= 2.1.3) [alpha]
- GNU C 函式庫:共用函式庫
同時作為一個虛擬套件由這些套件填實: libc6.1-udeb
-
- dep: libgcc-s1 (>= 3.0) [amd64, arm64, loong64, ppc64, ppc64el, riscv64, x32]
- GCC 支援函式庫
- dep: libgcc-s1 (>= 3.5) [armhf]
- dep: libgcc-s1 (>= 4.2) [alpha, i386, s390x, sh4, sparc64]
-
- dep: libgcc-s2 (>= 4.2.1) [m68k]
- GCC 支援函式庫
-
- dep: libgcc-s4 (>= 4.1.1) [hppa]
- GCC 支援函式庫
-
- dep: libstdc++6 (>= 13.1)
- GNU Standard C++ Library v3
下載 libsimdutf31
| 硬體架構 | 套件大小 | 安裝後大小 | 檔案 |
|---|---|---|---|
| alpha (非官方移植版) | 39。5 kB | 214。0 kB | [檔案列表] |
| amd64 | 135。2 kB | 557。0 kB | [檔案列表] |
| arm64 | 54。0 kB | 277。0 kB | [檔案列表] |
| armhf | 34。7 kB | 148。0 kB | [檔案列表] |
| hppa (非官方移植版) | 44。3 kB | 180。0 kB | [檔案列表] |
| i386 | 41。3 kB | 168。0 kB | [檔案列表] |
| loong64 | 88。7 kB | 404。0 kB | [檔案列表] |
| m68k (非官方移植版) | 37。1 kB | 148。0 kB | [檔案列表] |
| ppc64 (非官方移植版) | 42。4 kB | 277。0 kB | [檔案列表] |
| ppc64el | 74。5 kB | 340。0 kB | [檔案列表] |
| riscv64 | 42。1 kB | 157。0 kB | [檔案列表] |
| s390x | 40。2 kB | 176。0 kB | [檔案列表] |
| sh4 (非官方移植版) | 42。0 kB | 212。0 kB | [檔案列表] |
| sparc64 (非官方移植版) | 34。4 kB | 1,049。0 kB | [檔案列表] |
| x32 (非官方移植版) | 135。3 kB | 524。0 kB | [檔案列表] |
