Sha256: 1d790d8c379aaa53b3ac94070a62d20ee3c1a5fc355b09b55aed7bb3690046ca

Contents?: true

Size: 837 Bytes

Versions: 2

Compression:

Stored size: 837 Bytes

Contents

/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
 * alpha-map.h - map between character codes and trie alphabet
 * Created: 2006-08-19
 * Author:  Theppitak Karoonboonyanan <thep@linux.thai.net>
 */

#ifndef __ALPHA_MAP_H
#define __ALPHA_MAP_H

#include "typedefs.h"
#include "triedefs.h"

typedef uint16  UniChar;

#define UNI_CHAR_ERROR   (~(UniChar)0)

typedef struct _AlphaMap    AlphaMap;

AlphaMap *  alpha_map_open (const char *path,
                            const char *name,
                            const char *ext);

void        alpha_map_free (AlphaMap *alpha_map);

TrieChar    alpha_map_char_to_alphabet (const AlphaMap *alpha_map, UniChar uc);

UniChar     alpha_map_alphabet_to_char (const AlphaMap *alpha_map, TrieChar tc);


#endif /* __ALPHA_MAP_H */


/*
vi:ts=4:ai:expandtab
*/

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tyler-trie-0.1.0 ext/libdatrie/datrie/alpha-map.h
tyler-trie-0.1.1 ext/libdatrie/datrie/alpha-map.h