mirror of
https://github.com/cesanta/slre.git
synced 2024-11-24 03:15:30 +00:00
Improve CI-related comments a bit
PUBLISHED_FROM=b16b5d7805da449c85f4fe22f3fcc4a4e68cbf00
This commit is contained in:
parent
1ac661a5f5
commit
a97e6939a6
@ -7,8 +7,8 @@ int slre_match(const char *regexp, const char *buf, int buf_len,
|
||||
struct slre_cap *caps, int num_caps, int flags);
|
||||
```
|
||||
|
||||
`slre_match()` matches string buffer `buf` of length `buf_len` against regular
|
||||
expression `regexp`, which should conform the syntax outlined above. If regular
|
||||
`slre_match()` matches the string buffer `buf` in length `buf_len` against the regular
|
||||
expression `regexp`, which should conform the syntax outlined above. If the regular
|
||||
expression `regexp` contains brackets, `slre_match()` can capture the
|
||||
respective substrings into the array of `struct slre_cap` structures:
|
||||
|
||||
@ -22,8 +22,8 @@ struct slre_cap {
|
||||
|
||||
N-th member of the `caps` array will contain fragment that corresponds to the
|
||||
N-th opening bracket in the `regex`, N is zero-based. `slre_match()` returns
|
||||
number of bytes scanned from the beginning of the string. If return value is
|
||||
greater or equal to 0, there is a match. If return value is less then 0, there
|
||||
the number of bytes scanned from the beginning of the string. If the return value is
|
||||
greater or equal to 0, there is a match. If the return value is less then 0, there
|
||||
is no match. Negative return codes are as follows:
|
||||
|
||||
```c
|
||||
|
@ -8,14 +8,11 @@ licenses.
|
||||
|
||||
Commercial Projects: Once your project becomes commercialised GPLv2 licensing
|
||||
dictates that you need to either open your source fully or purchase a
|
||||
commercial license. Cesanta offer full, royalty-free commercial licenses
|
||||
commercial license. Cesanta offers full, royalty-free commercial licenses
|
||||
without any GPL restrictions. If your needs require a custom license, we’d be
|
||||
happy to work on a solution with you. [Contact us for
|
||||
pricing](https://www.cesanta.com/contact).
|
||||
|
||||
Prototyping: While your project is still in prototyping stage and not for sale,
|
||||
you can use SLRE’s open source code without license restrictions.
|
||||
you can use SLRE’s open source code without any license restrictions.
|
||||
|
||||
[Super Light DNS Resolver](https://github.com/cesanta/sldr), [Mongoose web
|
||||
server](https://github.com/cesanta/mongoose) are other projects by Cesanta
|
||||
Software, developed with the same philosophy of functionality and simplicity.
|
||||
|
@ -3,13 +3,13 @@ title: "Overview"
|
||||
---
|
||||
|
||||
SLRE is an ISO C library that implements a subset of Perl regular
|
||||
expression syntax. Main features of SLRE are:
|
||||
expression syntax. The main features of SLRE are:
|
||||
|
||||
* Written in strict ANSI C'89
|
||||
* Small size (compiled x86 code is about 5kB)
|
||||
* Uses little stack and does no dynamic memory allocation
|
||||
* Provides simple intuitive API
|
||||
* Implements most useful subset of Perl regex syntax (see below)
|
||||
* Provides a simple intuitive API
|
||||
* Implements the most useful subset of Perl regex syntax (see below)
|
||||
* Easily extensible. E.g. if one wants to introduce a new metacharacter `\i`,
|
||||
meaning "IPv4 address", it is easy to do so with SLRE.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user