Sha256: 2b7112608bca1a78164c8d45baeb92dddc4a3a307f6f7aea05cfc5b0576eea64

Contents?: true

Size: 414 Bytes

Versions: 1

Compression:

Stored size: 414 Bytes

Contents

#ifndef LIBJARO_JARO_H
#define LIBJARO_JARO_H

#define SWAP(x, y) do{ __typeof__(x) SWAP = x; x = y; y = SWAP; }while(0)
#define MAX_WORD_LENGTH 64
#define DEFAULT_WEIGHT 0.1
#define DEFAULT_THRESHOLD 0.7

typedef struct LibJaroOption{
  double weight, threshold;
  char ignore_case, adj_table;
} LibJaroOption;

double jaro_winkler_distance(char *str1, int len1, char *str2, int len2, LibJaroOption *opt);

#endif

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jaro_winkler-1.3.6 ext/jaro_winkler/jaro.h