<commit_before># server.c

[semver](http://semver.org) v2.0 compliant parser and matcher implemented in [ANSI C](https://en.wikipedia.org/wiki/ANSI_C) with zero dependencies.

**This is much a work in progress**

## Features

- [x] Basic parsing
- [ ] Version stage parsing
- [ ] Version build parsing
- [ ] Version prerelease parsing
- [x] Versions comparison
- [ ] Comparison helpers
- [ ] Comparison operators

## Usage

```c
#include <stdio.h>
#include <semver.h>

char current[] = "1.5.10";
char compare[] = "2.3.0";
<commit_msg>feat(docs): add travis badge<commit_after># server.c [![Build Status](https://travis-ci.org/h2non/semver.c.png)](https://travis-ci.org/h2non/semver.c)

[semver](http://semver.org) v2.0 compliant parser written in [ANSI C](https://en.wikipedia.org/wiki/ANSI_C) with zero dependencies.

**This is much a work in progress**

## Features

- [x] Basic parsing
- [ ] Version stage parsing
- [ ] Version build parsing
- [ ] Version prerelease parsing
- [x] Versions comparison
- [ ] Comparison helpers
- [ ] Comparison operators

## Usage

```c
#include <stdio.h>
#include <semver.h>

char current[] = "1.5.10";
char compare[] = "2.3.0";

{'fraction_non_alphanumeric': 0.16566523605150216, 'fraction_numerical': 0.017167381974248927, 'mean_word_length': 4.0042918454935625, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5053381', 'n_tokens_mistral': 428, 'n_tokens_neox': 403, 'n_words': 111}