diff --git a/docs/api.md b/docs/api.md index 9744ef3..ca56a5d 100644 --- a/docs/api.md +++ b/docs/api.md @@ -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 diff --git a/docs/license.md b/docs/license.md index 823eaa9..3d26326 100644 --- a/docs/license.md +++ b/docs/license.md @@ -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. diff --git a/docs/overview.md b/docs/overview.md index d793f14..c828a9e 100644 --- a/docs/overview.md +++ b/docs/overview.md @@ -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.