summaryrefslogtreecommitdiff
path: root/sa-extract/strmap.h
blob: a218a4c062563ae93d4c3b621f1bf4125669093f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef _STRMAP_H_
#define _STRMAP_H_

#ifdef __cplusplus
  extern "C" {
#else
    typedef struct StrMap StrMap; /* dummy type to stand in for class */
#endif

struct StrMap;

StrMap* stringmap_new();
void stringmap_delete(StrMap *vocab);
int stringmap_index(StrMap *vocab, char *s);
char* stringmap_word(StrMap *vocab, int i);

#ifdef __cplusplus
  }
#endif


#endif