{"id":20049520,"url":"https://github.com/weaming/pcre2-binding-demo","last_synced_at":"2026-05-13T06:02:59.917Z","repository":{"id":51852874,"uuid":"520655193","full_name":"weaming/pcre2-binding-demo","owner":"weaming","description":null,"archived":false,"fork":false,"pushed_at":"2022-08-02T22:22:58.000Z","size":18,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-12T20:45:50.306Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/weaming.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-08-02T21:31:33.000Z","updated_at":"2023-08-22T03:34:46.000Z","dependencies_parsed_at":"2022-08-23T02:21:23.674Z","dependency_job_id":null,"html_url":"https://github.com/weaming/pcre2-binding-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weaming%2Fpcre2-binding-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weaming%2Fpcre2-binding-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weaming%2Fpcre2-binding-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weaming%2Fpcre2-binding-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/weaming","download_url":"https://codeload.github.com/weaming/pcre2-binding-demo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241479668,"owners_count":19969489,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T11:50:37.109Z","updated_at":"2026-05-13T06:02:54.883Z","avatar_url":"https://github.com/weaming.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Demo of FFI binding for pcre2\n\n## PCRE2\n\n- [pcre2api specification](https://www.pcre.org/current/doc/html/pcre2api.html)\n    - [pcre2demo](https://www.pcre.org/current/doc/html/pcre2demo.html)\n    - [pcre2_compile](https://www.pcre.org/current/doc/html/pcre2_compile.html)\n\n### Difference between functions with suffix `_8`、`_16`和`_32`\n\n    By default, a library called libpcre2-8 is built, containing functions that\n    take string arguments contained in arrays of bytes, interpreted either as\n    single-byte characters, or UTF-8 strings. You can also build two other\n    libraries, called libpcre2-16 and libpcre2-32, which process strings that\n    are contained in arrays of 16-bit and 32-bit code units, respectively.\n    These can be interpreted either as single-unit characters or UTF-16/UTF-32\n    strings.\n\n## How to play\n\n1. run `make` in one terminal window\n2. run `cargo run` in another terminal window\n3. you will see regexp match result showing on the screen in step 1","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweaming%2Fpcre2-binding-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweaming%2Fpcre2-binding-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweaming%2Fpcre2-binding-demo/lists"}