Zen0x7 / RegexQL

A human readable RegEx abstraction layer
Other
0 stars 0 forks source link

Performance, Platform and API? #5

Open Zen0x7 opened 5 months ago

Zen0x7 commented 5 months ago

The project requires run fast with a small number of allocations, ideally, with zero-copies.

Also must be platform independant and able to be compile in different CPU architectures.

We need to build a stable API in order to extends the usages via library, SDK's or binaries.

Zen0x7 commented 5 months ago

POC of API

C++

#include <regexql>

bool matched = regexql::test("there are groups of two numbers separated by comma", "33,34,35");

PHP

use RegexQL;

$matched = RegexQL::test("there are groups of two numbers separated by comma", "33,34,35")

$matchs = RegexQL::match("there are numbers", "33,34,35")

dd($matchs)
// [ 33, 34, 35 ]