Skip to content

Instantly share code, notes, and snippets.

@neesenk
neesenk / jarowinkler_distance.c
Created December 25, 2011 14:30
比较两个字符串的相似程度Jaro–Winkler距离
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
/**
* Jaro–Winkler distance
* http://en.wikipedia.org/wiki/Jaro%E2%80%93Winkler_distance
*
* 比较两个字符串的相似程度

Quick install PHP 7.0:

1. Install depends PHP 7.0
$ brew install autoconf automake gmp homebrew/versions/bison27 gd freetype t1lib gettext zlib mcrypt
2. Configure PHP 7.0
$ git clone --depth=1 https://github.com/php/php-src.git

$ cd php-src