Auto update
... and manual cleanup
This commit is contained in:
parent
2d9dbe0722
commit
90fa6fba91
169 changed files with 20281 additions and 61 deletions
14
marisa/x86/include/marisa.h
Normal file
14
marisa/x86/include/marisa.h
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
#ifndef MARISA_H_
|
||||
#define MARISA_H_
|
||||
|
||||
// "marisa/stdio.h" includes <cstdio> for I/O using std::FILE.
|
||||
#include "marisa/stdio.h"
|
||||
|
||||
// "marisa/iostream.h" includes <iosfwd> for I/O using std::iostream.
|
||||
#include "marisa/iostream.h"
|
||||
|
||||
// You can use <marisa/trie.h> instead of <marisa.h> if you don't need the
|
||||
// above I/O interfaces and don't want to include the above I/O headers.
|
||||
#include "marisa/trie.h"
|
||||
|
||||
#endif // MARISA_H_
|
||||
87
marisa/x86/include/marisa/agent.h
Normal file
87
marisa/x86/include/marisa/agent.h
Normal file
|
|
@ -0,0 +1,87 @@
|
|||
#ifndef MARISA_AGENT_H_
|
||||
#define MARISA_AGENT_H_
|
||||
|
||||
#if __cplusplus >= 201703L
|
||||
#include <string_view>
|
||||
#endif // __cplusplus >= 201703L
|
||||
|
||||
#include "marisa/key.h"
|
||||
#include "marisa/query.h"
|
||||
|
||||
namespace marisa {
|
||||
namespace grimoire {
|
||||
namespace trie {
|
||||
|
||||
class State;
|
||||
|
||||
} // namespace trie
|
||||
} // namespace grimoire
|
||||
|
||||
class Agent {
|
||||
public:
|
||||
Agent();
|
||||
~Agent();
|
||||
|
||||
const Query &query() const {
|
||||
return query_;
|
||||
}
|
||||
const Key &key() const {
|
||||
return key_;
|
||||
}
|
||||
|
||||
#if __cplusplus >= 201703L
|
||||
void set_query(std::string_view str) {
|
||||
set_query(str.data(), str.length());
|
||||
}
|
||||
#endif // __cplusplus >= 201703L
|
||||
void set_query(const char *str);
|
||||
void set_query(const char *ptr, std::size_t length);
|
||||
void set_query(std::size_t key_id);
|
||||
|
||||
const grimoire::trie::State &state() const {
|
||||
return *state_;
|
||||
}
|
||||
grimoire::trie::State &state() {
|
||||
return *state_;
|
||||
}
|
||||
|
||||
#if __cplusplus >= 201703L
|
||||
void set_key(std::string_view str) {
|
||||
set_key(str.data(), str.length());
|
||||
}
|
||||
#endif // __cplusplus >= 201703L
|
||||
void set_key(const char *str) {
|
||||
MARISA_DEBUG_IF(str == NULL, MARISA_NULL_ERROR);
|
||||
key_.set_str(str);
|
||||
}
|
||||
void set_key(const char *ptr, std::size_t length) {
|
||||
MARISA_DEBUG_IF((ptr == NULL) && (length != 0), MARISA_NULL_ERROR);
|
||||
MARISA_DEBUG_IF(length > MARISA_UINT32_MAX, MARISA_SIZE_ERROR);
|
||||
key_.set_str(ptr, length);
|
||||
}
|
||||
void set_key(std::size_t id) {
|
||||
MARISA_DEBUG_IF(id > MARISA_UINT32_MAX, MARISA_SIZE_ERROR);
|
||||
key_.set_id(id);
|
||||
}
|
||||
|
||||
bool has_state() const {
|
||||
return state_.get() != NULL;
|
||||
}
|
||||
void init_state();
|
||||
|
||||
void clear();
|
||||
void swap(Agent &rhs);
|
||||
|
||||
private:
|
||||
Query query_;
|
||||
Key key_;
|
||||
scoped_ptr<grimoire::trie::State> state_;
|
||||
|
||||
// Disallows copy and assignment.
|
||||
Agent(const Agent &);
|
||||
Agent &operator=(const Agent &);
|
||||
};
|
||||
|
||||
} // namespace marisa
|
||||
|
||||
#endif // MARISA_AGENT_H_
|
||||
196
marisa/x86/include/marisa/base.h
Normal file
196
marisa/x86/include/marisa/base.h
Normal file
|
|
@ -0,0 +1,196 @@
|
|||
#ifndef MARISA_BASE_H_
|
||||
#define MARISA_BASE_H_
|
||||
|
||||
// Old Visual C++ does not provide stdint.h.
|
||||
#ifndef _MSC_VER
|
||||
#include <stdint.h>
|
||||
#endif // _MSC_VER
|
||||
|
||||
#ifdef __cplusplus
|
||||
#include <cstddef>
|
||||
#else // __cplusplus
|
||||
#include <stddef.h>
|
||||
#endif // __cplusplus
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif // __cplusplus
|
||||
|
||||
#ifdef _MSC_VER
|
||||
typedef unsigned __int8 marisa_uint8;
|
||||
typedef unsigned __int16 marisa_uint16;
|
||||
typedef unsigned __int32 marisa_uint32;
|
||||
typedef unsigned __int64 marisa_uint64;
|
||||
#else // _MSC_VER
|
||||
typedef uint8_t marisa_uint8;
|
||||
typedef uint16_t marisa_uint16;
|
||||
typedef uint32_t marisa_uint32;
|
||||
typedef uint64_t marisa_uint64;
|
||||
#endif // _MSC_VER
|
||||
|
||||
#if defined(_WIN64) || defined(__amd64__) || defined(__x86_64__) || \
|
||||
defined(__ia64__) || defined(__ppc64__) || defined(__powerpc64__) || \
|
||||
defined(__sparc64__) || defined(__mips64__) || defined(__aarch64__) || \
|
||||
defined(__s390x__)
|
||||
#define MARISA_WORD_SIZE 64
|
||||
#else // defined(_WIN64), etc.
|
||||
#define MARISA_WORD_SIZE 32
|
||||
#endif // defined(_WIN64), etc.
|
||||
|
||||
//#define MARISA_WORD_SIZE (sizeof(void *) * 8)
|
||||
|
||||
#define MARISA_UINT8_MAX ((marisa_uint8)~(marisa_uint8)0)
|
||||
#define MARISA_UINT16_MAX ((marisa_uint16)~(marisa_uint16)0)
|
||||
#define MARISA_UINT32_MAX ((marisa_uint32)~(marisa_uint32)0)
|
||||
#define MARISA_UINT64_MAX ((marisa_uint64)~(marisa_uint64)0)
|
||||
#define MARISA_SIZE_MAX ((size_t)~(size_t)0)
|
||||
|
||||
#define MARISA_INVALID_LINK_ID MARISA_UINT32_MAX
|
||||
#define MARISA_INVALID_KEY_ID MARISA_UINT32_MAX
|
||||
#define MARISA_INVALID_EXTRA (MARISA_UINT32_MAX >> 8)
|
||||
|
||||
// Error codes are defined as members of marisa_error_code. This library throws
|
||||
// an exception with one of the error codes when an error occurs.
|
||||
typedef enum marisa_error_code_ {
|
||||
// MARISA_OK means that a requested operation has succeeded. In practice, an
|
||||
// exception never has MARISA_OK because it is not an error.
|
||||
MARISA_OK = 0,
|
||||
|
||||
// MARISA_STATE_ERROR means that an object was not ready for a requested
|
||||
// operation. For example, an operation to modify a fixed vector throws an
|
||||
// exception with MARISA_STATE_ERROR.
|
||||
MARISA_STATE_ERROR = 1,
|
||||
|
||||
// MARISA_NULL_ERROR means that an invalid NULL pointer has been given.
|
||||
MARISA_NULL_ERROR = 2,
|
||||
|
||||
// MARISA_BOUND_ERROR means that an operation has tried to access an out of
|
||||
// range address.
|
||||
MARISA_BOUND_ERROR = 3,
|
||||
|
||||
// MARISA_RANGE_ERROR means that an out of range value has appeared in
|
||||
// operation.
|
||||
MARISA_RANGE_ERROR = 4,
|
||||
|
||||
// MARISA_CODE_ERROR means that an undefined code has appeared in operation.
|
||||
MARISA_CODE_ERROR = 5,
|
||||
|
||||
// MARISA_RESET_ERROR means that a smart pointer has tried to reset itself.
|
||||
MARISA_RESET_ERROR = 6,
|
||||
|
||||
// MARISA_SIZE_ERROR means that a size has exceeded a library limitation.
|
||||
MARISA_SIZE_ERROR = 7,
|
||||
|
||||
// MARISA_MEMORY_ERROR means that a memory allocation has failed.
|
||||
MARISA_MEMORY_ERROR = 8,
|
||||
|
||||
// MARISA_IO_ERROR means that an I/O operation has failed.
|
||||
MARISA_IO_ERROR = 9,
|
||||
|
||||
// MARISA_FORMAT_ERROR means that input was in invalid format.
|
||||
MARISA_FORMAT_ERROR = 10,
|
||||
} marisa_error_code;
|
||||
|
||||
// Min/max values, flags and masks for dictionary settings are defined below.
|
||||
// Please note that unspecified settings will be replaced with the default
|
||||
// settings. For example, 0 is equivalent to (MARISA_DEFAULT_NUM_TRIES |
|
||||
// MARISA_DEFAULT_TRIE | MARISA_DEFAULT_TAIL | MARISA_DEFAULT_ORDER).
|
||||
|
||||
// A dictionary consists of 3 tries in default. Usually more tries make a
|
||||
// dictionary space-efficient but time-inefficient.
|
||||
typedef enum marisa_num_tries_ {
|
||||
MARISA_MIN_NUM_TRIES = 0x00001,
|
||||
MARISA_MAX_NUM_TRIES = 0x0007F,
|
||||
MARISA_DEFAULT_NUM_TRIES = 0x00003,
|
||||
} marisa_num_tries;
|
||||
|
||||
// This library uses a cache technique to accelerate search functions. The
|
||||
// following enumerated type marisa_cache_level gives a list of available cache
|
||||
// size options. A larger cache enables faster search but takes a more space.
|
||||
typedef enum marisa_cache_level_ {
|
||||
MARISA_HUGE_CACHE = 0x00080,
|
||||
MARISA_LARGE_CACHE = 0x00100,
|
||||
MARISA_NORMAL_CACHE = 0x00200,
|
||||
MARISA_SMALL_CACHE = 0x00400,
|
||||
MARISA_TINY_CACHE = 0x00800,
|
||||
MARISA_DEFAULT_CACHE = MARISA_NORMAL_CACHE
|
||||
} marisa_cache_level;
|
||||
|
||||
// This library provides 2 kinds of TAIL implementations.
|
||||
typedef enum marisa_tail_mode_ {
|
||||
// MARISA_TEXT_TAIL merges last labels as zero-terminated strings. So, it is
|
||||
// available if and only if the last labels do not contain a NULL character.
|
||||
// If MARISA_TEXT_TAIL is specified and a NULL character exists in the last
|
||||
// labels, the setting is automatically switched to MARISA_BINARY_TAIL.
|
||||
MARISA_TEXT_TAIL = 0x01000,
|
||||
|
||||
// MARISA_BINARY_TAIL also merges last labels but as byte sequences. It uses
|
||||
// a bit vector to detect the end of a sequence, instead of NULL characters.
|
||||
// So, MARISA_BINARY_TAIL requires a larger space if the average length of
|
||||
// labels is greater than 8.
|
||||
MARISA_BINARY_TAIL = 0x02000,
|
||||
|
||||
MARISA_DEFAULT_TAIL = MARISA_TEXT_TAIL,
|
||||
} marisa_tail_mode;
|
||||
|
||||
// The arrangement of nodes affects the time cost of matching and the order of
|
||||
// predictive search.
|
||||
typedef enum marisa_node_order_ {
|
||||
// MARISA_LABEL_ORDER arranges nodes in ascending label order.
|
||||
// MARISA_LABEL_ORDER is useful if an application needs to predict keys in
|
||||
// label order.
|
||||
MARISA_LABEL_ORDER = 0x10000,
|
||||
|
||||
// MARISA_WEIGHT_ORDER arranges nodes in descending weight order.
|
||||
// MARISA_WEIGHT_ORDER is generally a better choice because it enables faster
|
||||
// matching.
|
||||
MARISA_WEIGHT_ORDER = 0x20000,
|
||||
|
||||
MARISA_DEFAULT_ORDER = MARISA_WEIGHT_ORDER,
|
||||
} marisa_node_order;
|
||||
|
||||
typedef enum marisa_config_mask_ {
|
||||
MARISA_NUM_TRIES_MASK = 0x0007F,
|
||||
MARISA_CACHE_LEVEL_MASK = 0x00F80,
|
||||
MARISA_TAIL_MODE_MASK = 0x0F000,
|
||||
MARISA_NODE_ORDER_MASK = 0xF0000,
|
||||
MARISA_CONFIG_MASK = 0xFFFFF
|
||||
} marisa_config_mask;
|
||||
|
||||
#ifdef __cplusplus
|
||||
} // extern "C"
|
||||
#endif // __cplusplus
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
// `std::swap` is in <utility> since C++ 11 but in <algorithm> in C++ 98:
|
||||
#if __cplusplus >= 201103L
|
||||
#include <utility>
|
||||
#else
|
||||
#include <algorithm>
|
||||
#endif
|
||||
namespace marisa {
|
||||
|
||||
typedef ::marisa_uint8 UInt8;
|
||||
typedef ::marisa_uint16 UInt16;
|
||||
typedef ::marisa_uint32 UInt32;
|
||||
typedef ::marisa_uint64 UInt64;
|
||||
|
||||
typedef ::marisa_error_code ErrorCode;
|
||||
|
||||
typedef ::marisa_cache_level CacheLevel;
|
||||
typedef ::marisa_tail_mode TailMode;
|
||||
typedef ::marisa_node_order NodeOrder;
|
||||
|
||||
using std::swap;
|
||||
|
||||
} // namespace marisa
|
||||
#endif // __cplusplus
|
||||
|
||||
#ifdef __cplusplus
|
||||
#include "marisa/exception.h"
|
||||
#include "marisa/scoped-ptr.h"
|
||||
#include "marisa/scoped-array.h"
|
||||
#endif // __cplusplus
|
||||
|
||||
#endif // MARISA_BASE_H_
|
||||
82
marisa/x86/include/marisa/exception.h
Normal file
82
marisa/x86/include/marisa/exception.h
Normal file
|
|
@ -0,0 +1,82 @@
|
|||
#ifndef MARISA_EXCEPTION_H_
|
||||
#define MARISA_EXCEPTION_H_
|
||||
|
||||
#include <exception>
|
||||
|
||||
#include "marisa/base.h"
|
||||
|
||||
namespace marisa {
|
||||
|
||||
// An exception object keeps a filename, a line number, an error code and an
|
||||
// error message. The message format is as follows:
|
||||
// "__FILE__:__LINE__: error_code: error_message"
|
||||
class Exception : public std::exception {
|
||||
public:
|
||||
Exception(const char *filename, int line,
|
||||
ErrorCode error_code, const char *error_message)
|
||||
: std::exception(), filename_(filename), line_(line),
|
||||
error_code_(error_code), error_message_(error_message) {}
|
||||
Exception(const Exception &ex)
|
||||
: std::exception(), filename_(ex.filename_), line_(ex.line_),
|
||||
error_code_(ex.error_code_), error_message_(ex.error_message_) {}
|
||||
virtual ~Exception() throw() {}
|
||||
|
||||
Exception &operator=(const Exception &rhs) {
|
||||
filename_ = rhs.filename_;
|
||||
line_ = rhs.line_;
|
||||
error_code_ = rhs.error_code_;
|
||||
error_message_ = rhs.error_message_;
|
||||
return *this;
|
||||
}
|
||||
|
||||
const char *filename() const {
|
||||
return filename_;
|
||||
}
|
||||
int line() const {
|
||||
return line_;
|
||||
}
|
||||
ErrorCode error_code() const {
|
||||
return error_code_;
|
||||
}
|
||||
const char *error_message() const {
|
||||
return error_message_;
|
||||
}
|
||||
|
||||
virtual const char *what() const throw() {
|
||||
return error_message_;
|
||||
}
|
||||
|
||||
private:
|
||||
const char *filename_;
|
||||
int line_;
|
||||
ErrorCode error_code_;
|
||||
const char *error_message_;
|
||||
};
|
||||
|
||||
// These macros are used to convert a line number to a string constant.
|
||||
#define MARISA_INT_TO_STR(value) #value
|
||||
#define MARISA_LINE_TO_STR(line) MARISA_INT_TO_STR(line)
|
||||
#define MARISA_LINE_STR MARISA_LINE_TO_STR(__LINE__)
|
||||
|
||||
// MARISA_THROW throws an exception with a filename, a line number, an error
|
||||
// code and an error message. The message format is as follows:
|
||||
// "__FILE__:__LINE__: error_code: error_message"
|
||||
#define MARISA_THROW(error_code, error_message) \
|
||||
(throw marisa::Exception(__FILE__, __LINE__, error_code, \
|
||||
__FILE__ ":" MARISA_LINE_STR ": " #error_code ": " error_message))
|
||||
|
||||
// MARISA_THROW_IF throws an exception if `condition' is true.
|
||||
#define MARISA_THROW_IF(condition, error_code) \
|
||||
(void)((!(condition)) || (MARISA_THROW(error_code, #condition), 0))
|
||||
|
||||
// MARISA_DEBUG_IF is ignored if _DEBUG is undefined. So, it is useful for
|
||||
// debugging time-critical codes.
|
||||
#ifdef _DEBUG
|
||||
#define MARISA_DEBUG_IF(cond, error_code) MARISA_THROW_IF(cond, error_code)
|
||||
#else
|
||||
#define MARISA_DEBUG_IF(cond, error_code)
|
||||
#endif
|
||||
|
||||
} // namespace marisa
|
||||
|
||||
#endif // MARISA_EXCEPTION_H_
|
||||
18
marisa/x86/include/marisa/iostream.h
Normal file
18
marisa/x86/include/marisa/iostream.h
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#ifndef MARISA_IOSTREAM_H_
|
||||
#define MARISA_IOSTREAM_H_
|
||||
|
||||
#include <iosfwd>
|
||||
|
||||
namespace marisa {
|
||||
|
||||
class Trie;
|
||||
|
||||
std::istream &read(std::istream &stream, Trie *trie);
|
||||
std::ostream &write(std::ostream &stream, const Trie &trie);
|
||||
|
||||
std::istream &operator>>(std::istream &stream, Trie &trie);
|
||||
std::ostream &operator<<(std::ostream &stream, const Trie &trie);
|
||||
|
||||
} // namespace marisa
|
||||
|
||||
#endif // MARISA_IOSTREAM_H_
|
||||
99
marisa/x86/include/marisa/key.h
Normal file
99
marisa/x86/include/marisa/key.h
Normal file
|
|
@ -0,0 +1,99 @@
|
|||
#ifndef MARISA_KEY_H_
|
||||
#define MARISA_KEY_H_
|
||||
|
||||
#if __cplusplus >= 201703L
|
||||
#include <string_view>
|
||||
#endif // __cplusplus >= 201703L
|
||||
|
||||
#include "marisa/base.h"
|
||||
|
||||
namespace marisa {
|
||||
|
||||
class Key {
|
||||
public:
|
||||
Key() : ptr_(NULL), length_(0), union_() {
|
||||
union_.id = 0;
|
||||
}
|
||||
Key(const Key &key)
|
||||
: ptr_(key.ptr_), length_(key.length_), union_(key.union_) {}
|
||||
|
||||
Key &operator=(const Key &key) {
|
||||
ptr_ = key.ptr_;
|
||||
length_ = key.length_;
|
||||
union_ = key.union_;
|
||||
return *this;
|
||||
}
|
||||
|
||||
char operator[](std::size_t i) const {
|
||||
MARISA_DEBUG_IF(i >= length_, MARISA_BOUND_ERROR);
|
||||
return ptr_[i];
|
||||
}
|
||||
|
||||
#if __cplusplus >= 201703L
|
||||
void set_str(std::string_view str) {
|
||||
set_str(str.data(), str.length());
|
||||
}
|
||||
#endif // __cplusplus >= 201703L
|
||||
void set_str(const char *str) {
|
||||
MARISA_DEBUG_IF(str == NULL, MARISA_NULL_ERROR);
|
||||
std::size_t length = 0;
|
||||
while (str[length] != '\0') {
|
||||
++length;
|
||||
}
|
||||
MARISA_DEBUG_IF(length > MARISA_UINT32_MAX, MARISA_SIZE_ERROR);
|
||||
ptr_ = str;
|
||||
length_ = (UInt32)length;
|
||||
}
|
||||
void set_str(const char *ptr, std::size_t length) {
|
||||
MARISA_DEBUG_IF((ptr == NULL) && (length != 0), MARISA_NULL_ERROR);
|
||||
MARISA_DEBUG_IF(length > MARISA_UINT32_MAX, MARISA_SIZE_ERROR);
|
||||
ptr_ = ptr;
|
||||
length_ = (UInt32)length;
|
||||
}
|
||||
void set_id(std::size_t id) {
|
||||
MARISA_DEBUG_IF(id > MARISA_UINT32_MAX, MARISA_SIZE_ERROR);
|
||||
union_.id = (UInt32)id;
|
||||
}
|
||||
void set_weight(float weight) {
|
||||
union_.weight = weight;
|
||||
}
|
||||
|
||||
#if __cplusplus >= 201703L
|
||||
std::string_view str() const {
|
||||
return std::string_view(ptr_, length_);
|
||||
}
|
||||
#endif // __cplusplus >= 201703L
|
||||
const char *ptr() const {
|
||||
return ptr_;
|
||||
}
|
||||
std::size_t length() const {
|
||||
return length_;
|
||||
}
|
||||
std::size_t id() const {
|
||||
return union_.id;
|
||||
}
|
||||
float weight() const {
|
||||
return union_.weight;
|
||||
}
|
||||
|
||||
void clear() {
|
||||
Key().swap(*this);
|
||||
}
|
||||
void swap(Key &rhs) {
|
||||
marisa::swap(ptr_, rhs.ptr_);
|
||||
marisa::swap(length_, rhs.length_);
|
||||
marisa::swap(union_.id, rhs.union_.id);
|
||||
}
|
||||
|
||||
private:
|
||||
const char *ptr_;
|
||||
UInt32 length_;
|
||||
union Union {
|
||||
UInt32 id;
|
||||
float weight;
|
||||
} union_;
|
||||
};
|
||||
|
||||
} // namespace marisa
|
||||
|
||||
#endif // MARISA_KEY_H_
|
||||
89
marisa/x86/include/marisa/keyset.h
Normal file
89
marisa/x86/include/marisa/keyset.h
Normal file
|
|
@ -0,0 +1,89 @@
|
|||
#ifndef MARISA_KEYSET_H_
|
||||
#define MARISA_KEYSET_H_
|
||||
|
||||
#if __cplusplus >= 201703L
|
||||
#include <string_view>
|
||||
#endif // __cplusplus >= 201703L
|
||||
|
||||
#include "marisa/key.h"
|
||||
|
||||
namespace marisa {
|
||||
|
||||
class Keyset {
|
||||
public:
|
||||
enum {
|
||||
BASE_BLOCK_SIZE = 4096,
|
||||
EXTRA_BLOCK_SIZE = 1024,
|
||||
KEY_BLOCK_SIZE = 256
|
||||
};
|
||||
|
||||
Keyset();
|
||||
|
||||
void push_back(const Key &key);
|
||||
void push_back(const Key &key, char end_marker);
|
||||
|
||||
#if __cplusplus >= 201703L
|
||||
void push_back(std::string_view str, float weight = 1.0) {
|
||||
push_back(str.data(), str.length(), weight);
|
||||
}
|
||||
#endif // __cplusplus >= 201703L
|
||||
void push_back(const char *str);
|
||||
void push_back(const char *ptr, std::size_t length, float weight = 1.0);
|
||||
|
||||
const Key &operator[](std::size_t i) const {
|
||||
MARISA_DEBUG_IF(i >= size_, MARISA_BOUND_ERROR);
|
||||
return key_blocks_[i / KEY_BLOCK_SIZE][i % KEY_BLOCK_SIZE];
|
||||
}
|
||||
Key &operator[](std::size_t i) {
|
||||
MARISA_DEBUG_IF(i >= size_, MARISA_BOUND_ERROR);
|
||||
return key_blocks_[i / KEY_BLOCK_SIZE][i % KEY_BLOCK_SIZE];
|
||||
}
|
||||
|
||||
std::size_t num_keys() const {
|
||||
return size_;
|
||||
}
|
||||
|
||||
bool empty() const {
|
||||
return size_ == 0;
|
||||
}
|
||||
std::size_t size() const {
|
||||
return size_;
|
||||
}
|
||||
std::size_t total_length() const {
|
||||
return total_length_;
|
||||
}
|
||||
|
||||
void reset();
|
||||
|
||||
void clear();
|
||||
void swap(Keyset &rhs);
|
||||
|
||||
private:
|
||||
scoped_array<scoped_array<char> > base_blocks_;
|
||||
std::size_t base_blocks_size_;
|
||||
std::size_t base_blocks_capacity_;
|
||||
scoped_array<scoped_array<char> > extra_blocks_;
|
||||
std::size_t extra_blocks_size_;
|
||||
std::size_t extra_blocks_capacity_;
|
||||
scoped_array<scoped_array<Key> > key_blocks_;
|
||||
std::size_t key_blocks_size_;
|
||||
std::size_t key_blocks_capacity_;
|
||||
char *ptr_;
|
||||
std::size_t avail_;
|
||||
std::size_t size_;
|
||||
std::size_t total_length_;
|
||||
|
||||
char *reserve(std::size_t size);
|
||||
|
||||
void append_base_block();
|
||||
void append_extra_block(std::size_t size);
|
||||
void append_key_block();
|
||||
|
||||
// Disallows copy and assignment.
|
||||
Keyset(const Keyset &);
|
||||
Keyset &operator=(const Keyset &);
|
||||
};
|
||||
|
||||
} // namespace marisa
|
||||
|
||||
#endif // MARISA_KEYSET_H_
|
||||
85
marisa/x86/include/marisa/query.h
Normal file
85
marisa/x86/include/marisa/query.h
Normal file
|
|
@ -0,0 +1,85 @@
|
|||
#ifndef MARISA_QUERY_H_
|
||||
#define MARISA_QUERY_H_
|
||||
|
||||
#if __cplusplus >= 201703L
|
||||
#include <string_view>
|
||||
#endif // __cplusplus >= 201703L
|
||||
|
||||
#include "marisa/base.h"
|
||||
|
||||
namespace marisa {
|
||||
|
||||
class Query {
|
||||
public:
|
||||
Query() : ptr_(NULL), length_(0), id_(0) {}
|
||||
Query(const Query &query)
|
||||
: ptr_(query.ptr_), length_(query.length_), id_(query.id_) {}
|
||||
|
||||
Query &operator=(const Query &query) {
|
||||
ptr_ = query.ptr_;
|
||||
length_ = query.length_;
|
||||
id_ = query.id_;
|
||||
return *this;
|
||||
}
|
||||
|
||||
char operator[](std::size_t i) const {
|
||||
MARISA_DEBUG_IF(i >= length_, MARISA_BOUND_ERROR);
|
||||
return ptr_[i];
|
||||
}
|
||||
|
||||
#if __cplusplus >= 201703L
|
||||
void set_str(std::string_view str) {
|
||||
set_str(str.data(), str.length());
|
||||
}
|
||||
#endif // __cplusplus >= 201703L
|
||||
void set_str(const char *str) {
|
||||
MARISA_DEBUG_IF(str == NULL, MARISA_NULL_ERROR);
|
||||
std::size_t length = 0;
|
||||
while (str[length] != '\0') {
|
||||
++length;
|
||||
}
|
||||
ptr_ = str;
|
||||
length_ = length;
|
||||
}
|
||||
void set_str(const char *ptr, std::size_t length) {
|
||||
MARISA_DEBUG_IF((ptr == NULL) && (length != 0), MARISA_NULL_ERROR);
|
||||
ptr_ = ptr;
|
||||
length_ = length;
|
||||
}
|
||||
void set_id(std::size_t id) {
|
||||
id_ = id;
|
||||
}
|
||||
|
||||
#if __cplusplus >= 201703L
|
||||
std::string_view str() const {
|
||||
return std::string_view(ptr_, length_);
|
||||
}
|
||||
#endif // __cplusplus >= 201703L
|
||||
const char *ptr() const {
|
||||
return ptr_;
|
||||
}
|
||||
std::size_t length() const {
|
||||
return length_;
|
||||
}
|
||||
std::size_t id() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
void clear() {
|
||||
Query().swap(*this);
|
||||
}
|
||||
void swap(Query &rhs) {
|
||||
marisa::swap(ptr_, rhs.ptr_);
|
||||
marisa::swap(length_, rhs.length_);
|
||||
marisa::swap(id_, rhs.id_);
|
||||
}
|
||||
|
||||
private:
|
||||
const char *ptr_;
|
||||
std::size_t length_;
|
||||
std::size_t id_;
|
||||
};
|
||||
|
||||
} // namespace marisa
|
||||
|
||||
#endif // MARISA_QUERY_H_
|
||||
48
marisa/x86/include/marisa/scoped-array.h
Normal file
48
marisa/x86/include/marisa/scoped-array.h
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
#ifndef MARISA_SCOPED_ARRAY_H_
|
||||
#define MARISA_SCOPED_ARRAY_H_
|
||||
|
||||
#include "marisa/base.h"
|
||||
|
||||
namespace marisa {
|
||||
|
||||
template <typename T>
|
||||
class scoped_array {
|
||||
public:
|
||||
scoped_array() : array_(NULL) {}
|
||||
explicit scoped_array(T *array) : array_(array) {}
|
||||
|
||||
~scoped_array() {
|
||||
delete [] array_;
|
||||
}
|
||||
|
||||
void reset(T *array = NULL) {
|
||||
MARISA_DEBUG_IF((array != NULL) && (array == array_), MARISA_RESET_ERROR);
|
||||
scoped_array(array).swap(*this);
|
||||
}
|
||||
|
||||
T &operator[](std::size_t i) const {
|
||||
MARISA_DEBUG_IF(array_ == NULL, MARISA_STATE_ERROR);
|
||||
return array_[i];
|
||||
}
|
||||
T *get() const {
|
||||
return array_;
|
||||
}
|
||||
|
||||
void clear() {
|
||||
scoped_array().swap(*this);
|
||||
}
|
||||
void swap(scoped_array &rhs) {
|
||||
marisa::swap(array_, rhs.array_);
|
||||
}
|
||||
|
||||
private:
|
||||
T *array_;
|
||||
|
||||
// Disallows copy and assignment.
|
||||
scoped_array(const scoped_array &);
|
||||
scoped_array &operator=(const scoped_array &);
|
||||
};
|
||||
|
||||
} // namespace marisa
|
||||
|
||||
#endif // MARISA_SCOPED_ARRAY_H_
|
||||
52
marisa/x86/include/marisa/scoped-ptr.h
Normal file
52
marisa/x86/include/marisa/scoped-ptr.h
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
#ifndef MARISA_SCOPED_PTR_H_
|
||||
#define MARISA_SCOPED_PTR_H_
|
||||
|
||||
#include "marisa/base.h"
|
||||
|
||||
namespace marisa {
|
||||
|
||||
template <typename T>
|
||||
class scoped_ptr {
|
||||
public:
|
||||
scoped_ptr() : ptr_(NULL) {}
|
||||
explicit scoped_ptr(T *ptr) : ptr_(ptr) {}
|
||||
|
||||
~scoped_ptr() {
|
||||
delete ptr_;
|
||||
}
|
||||
|
||||
void reset(T *ptr = NULL) {
|
||||
MARISA_DEBUG_IF((ptr != NULL) && (ptr == ptr_), MARISA_RESET_ERROR);
|
||||
scoped_ptr(ptr).swap(*this);
|
||||
}
|
||||
|
||||
T &operator*() const {
|
||||
MARISA_DEBUG_IF(ptr_ == NULL, MARISA_STATE_ERROR);
|
||||
return *ptr_;
|
||||
}
|
||||
T *operator->() const {
|
||||
MARISA_DEBUG_IF(ptr_ == NULL, MARISA_STATE_ERROR);
|
||||
return ptr_;
|
||||
}
|
||||
T *get() const {
|
||||
return ptr_;
|
||||
}
|
||||
|
||||
void clear() {
|
||||
scoped_ptr().swap(*this);
|
||||
}
|
||||
void swap(scoped_ptr &rhs) {
|
||||
marisa::swap(ptr_, rhs.ptr_);
|
||||
}
|
||||
|
||||
private:
|
||||
T *ptr_;
|
||||
|
||||
// Disallows copy and assignment.
|
||||
scoped_ptr(const scoped_ptr &);
|
||||
scoped_ptr &operator=(const scoped_ptr &);
|
||||
};
|
||||
|
||||
} // namespace marisa
|
||||
|
||||
#endif // MARISA_SCOPED_PTR_H_
|
||||
15
marisa/x86/include/marisa/stdio.h
Normal file
15
marisa/x86/include/marisa/stdio.h
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#ifndef MARISA_MYSTDIO_H_
|
||||
#define MARISA_MYSTDIO_H_
|
||||
|
||||
#include <cstdio>
|
||||
|
||||
namespace marisa {
|
||||
|
||||
class Trie;
|
||||
|
||||
void fread(std::FILE *file, Trie *trie);
|
||||
void fwrite(std::FILE *file, const Trie &trie);
|
||||
|
||||
} // namespace marisa
|
||||
|
||||
#endif // MARISA_MYSTDIO_H_
|
||||
64
marisa/x86/include/marisa/trie.h
Normal file
64
marisa/x86/include/marisa/trie.h
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
#ifndef MARISA_TRIE_H_
|
||||
#define MARISA_TRIE_H_
|
||||
|
||||
#include "marisa/keyset.h"
|
||||
#include "marisa/agent.h"
|
||||
|
||||
namespace marisa {
|
||||
namespace grimoire {
|
||||
namespace trie {
|
||||
|
||||
class LoudsTrie;
|
||||
|
||||
} // namespace trie
|
||||
} // namespace grimoire
|
||||
|
||||
class Trie {
|
||||
friend class TrieIO;
|
||||
|
||||
public:
|
||||
Trie();
|
||||
~Trie();
|
||||
|
||||
void build(Keyset &keyset, int config_flags = 0);
|
||||
|
||||
void mmap(const char *filename);
|
||||
void map(const void *ptr, std::size_t size);
|
||||
|
||||
void load(const char *filename);
|
||||
void read(int fd);
|
||||
|
||||
void save(const char *filename) const;
|
||||
void write(int fd) const;
|
||||
|
||||
bool lookup(Agent &agent) const;
|
||||
void reverse_lookup(Agent &agent) const;
|
||||
bool common_prefix_search(Agent &agent) const;
|
||||
bool predictive_search(Agent &agent) const;
|
||||
|
||||
std::size_t num_tries() const;
|
||||
std::size_t num_keys() const;
|
||||
std::size_t num_nodes() const;
|
||||
|
||||
TailMode tail_mode() const;
|
||||
NodeOrder node_order() const;
|
||||
|
||||
bool empty() const;
|
||||
std::size_t size() const;
|
||||
std::size_t total_size() const;
|
||||
std::size_t io_size() const;
|
||||
|
||||
void clear();
|
||||
void swap(Trie &rhs);
|
||||
|
||||
private:
|
||||
scoped_ptr<grimoire::trie::LoudsTrie> trie_;
|
||||
|
||||
// Disallows copy and assignment.
|
||||
Trie(const Trie &);
|
||||
Trie &operator=(const Trie &);
|
||||
};
|
||||
|
||||
} // namespace marisa
|
||||
|
||||
#endif // MARISA_TRIE_H_
|
||||
31
marisa/x86/lib/cmake/marisa/marisa-config.cmake
Normal file
31
marisa/x86/lib/cmake/marisa/marisa-config.cmake
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
|
||||
####### Expanded from @PACKAGE_INIT@ by configure_package_config_file() #######
|
||||
####### Any changes to this file will be overwritten by the next CMake run ####
|
||||
####### The input file was marisa-config.cmake.in ########
|
||||
|
||||
get_filename_component(PACKAGE_PREFIX_DIR "${CMAKE_CURRENT_LIST_DIR}/../../../" ABSOLUTE)
|
||||
|
||||
macro(set_and_check _var _file)
|
||||
set(${_var} "${_file}")
|
||||
if(NOT EXISTS "${_file}")
|
||||
message(FATAL_ERROR "File or directory ${_file} referenced by variable ${_var} does not exist !")
|
||||
endif()
|
||||
endmacro()
|
||||
|
||||
macro(check_required_components _NAME)
|
||||
foreach(comp ${${_NAME}_FIND_COMPONENTS})
|
||||
if(NOT ${_NAME}_${comp}_FOUND)
|
||||
if(${_NAME}_FIND_REQUIRED_${comp})
|
||||
set(${_NAME}_FOUND FALSE)
|
||||
endif()
|
||||
endif()
|
||||
endforeach()
|
||||
endmacro()
|
||||
|
||||
####################################################################################
|
||||
|
||||
include(${CMAKE_CURRENT_LIST_DIR}/marisa-targets.cmake)
|
||||
|
||||
set_and_check(MARISA_INCLUDE_DIR ${PACKAGE_PREFIX_DIR}/include)
|
||||
|
||||
check_required_components(marisa)
|
||||
19
marisa/x86/lib/cmake/marisa/marisa-targets-release.cmake
Normal file
19
marisa/x86/lib/cmake/marisa/marisa-targets-release.cmake
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#----------------------------------------------------------------
|
||||
# Generated CMake target import file for configuration "Release".
|
||||
#----------------------------------------------------------------
|
||||
|
||||
# Commands may need to know the format version.
|
||||
set(CMAKE_IMPORT_FILE_VERSION 1)
|
||||
|
||||
# Import target "marisa" for configuration "Release"
|
||||
set_property(TARGET marisa APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
|
||||
set_target_properties(marisa PROPERTIES
|
||||
IMPORTED_LINK_INTERFACE_LANGUAGES_RELEASE "CXX"
|
||||
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/libmarisa.a"
|
||||
)
|
||||
|
||||
list(APPEND _IMPORT_CHECK_TARGETS marisa )
|
||||
list(APPEND _IMPORT_CHECK_FILES_FOR_marisa "${_IMPORT_PREFIX}/lib/libmarisa.a" )
|
||||
|
||||
# Commands beyond this point should not need to know the version.
|
||||
set(CMAKE_IMPORT_FILE_VERSION)
|
||||
94
marisa/x86/lib/cmake/marisa/marisa-targets.cmake
Normal file
94
marisa/x86/lib/cmake/marisa/marisa-targets.cmake
Normal file
|
|
@ -0,0 +1,94 @@
|
|||
# Generated by CMake
|
||||
|
||||
if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" LESS 2.6)
|
||||
message(FATAL_ERROR "CMake >= 2.6.0 required")
|
||||
endif()
|
||||
cmake_policy(PUSH)
|
||||
cmake_policy(VERSION 2.6...3.20)
|
||||
#----------------------------------------------------------------
|
||||
# Generated CMake target import file.
|
||||
#----------------------------------------------------------------
|
||||
|
||||
# Commands may need to know the format version.
|
||||
set(CMAKE_IMPORT_FILE_VERSION 1)
|
||||
|
||||
# Protect against multiple inclusion, which would fail when already imported targets are added once more.
|
||||
set(_targetsDefined)
|
||||
set(_targetsNotDefined)
|
||||
set(_expectedTargets)
|
||||
foreach(_expectedTarget marisa)
|
||||
list(APPEND _expectedTargets ${_expectedTarget})
|
||||
if(NOT TARGET ${_expectedTarget})
|
||||
list(APPEND _targetsNotDefined ${_expectedTarget})
|
||||
endif()
|
||||
if(TARGET ${_expectedTarget})
|
||||
list(APPEND _targetsDefined ${_expectedTarget})
|
||||
endif()
|
||||
endforeach()
|
||||
if("${_targetsDefined}" STREQUAL "${_expectedTargets}")
|
||||
unset(_targetsDefined)
|
||||
unset(_targetsNotDefined)
|
||||
unset(_expectedTargets)
|
||||
set(CMAKE_IMPORT_FILE_VERSION)
|
||||
cmake_policy(POP)
|
||||
return()
|
||||
endif()
|
||||
if(NOT "${_targetsDefined}" STREQUAL "")
|
||||
message(FATAL_ERROR "Some (but not all) targets in this export set were already defined.\nTargets Defined: ${_targetsDefined}\nTargets not yet defined: ${_targetsNotDefined}\n")
|
||||
endif()
|
||||
unset(_targetsDefined)
|
||||
unset(_targetsNotDefined)
|
||||
unset(_expectedTargets)
|
||||
|
||||
|
||||
# Compute the installation prefix relative to this file.
|
||||
get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
||||
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
||||
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
||||
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
||||
if(_IMPORT_PREFIX STREQUAL "/")
|
||||
set(_IMPORT_PREFIX "")
|
||||
endif()
|
||||
|
||||
# Create imported target marisa
|
||||
add_library(marisa STATIC IMPORTED)
|
||||
|
||||
set_target_properties(marisa PROPERTIES
|
||||
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
|
||||
)
|
||||
|
||||
# Load information for each installed configuration.
|
||||
get_filename_component(_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
||||
file(GLOB CONFIG_FILES "${_DIR}/marisa-targets-*.cmake")
|
||||
foreach(f ${CONFIG_FILES})
|
||||
include(${f})
|
||||
endforeach()
|
||||
|
||||
# Cleanup temporary variables.
|
||||
set(_IMPORT_PREFIX)
|
||||
|
||||
# Loop over all imported files and verify that they actually exist
|
||||
foreach(target ${_IMPORT_CHECK_TARGETS} )
|
||||
foreach(file ${_IMPORT_CHECK_FILES_FOR_${target}} )
|
||||
if(NOT EXISTS "${file}" )
|
||||
message(FATAL_ERROR "The imported target \"${target}\" references the file
|
||||
\"${file}\"
|
||||
but this file does not exist. Possible reasons include:
|
||||
* The file was deleted, renamed, or moved to another location.
|
||||
* An install or uninstall procedure did not complete successfully.
|
||||
* The installation package was faulty and contained
|
||||
\"${CMAKE_CURRENT_LIST_FILE}\"
|
||||
but not all the files it references.
|
||||
")
|
||||
endif()
|
||||
endforeach()
|
||||
unset(_IMPORT_CHECK_FILES_FOR_${target})
|
||||
endforeach()
|
||||
unset(_IMPORT_CHECK_TARGETS)
|
||||
|
||||
# This file does not depend on other imported targets which have
|
||||
# been exported from the same project but in a separate export set.
|
||||
|
||||
# Commands beyond this point should not need to know the version.
|
||||
set(CMAKE_IMPORT_FILE_VERSION)
|
||||
cmake_policy(POP)
|
||||
70
marisa/x86/lib/cmake/marisa/marisa-version.cmake
Normal file
70
marisa/x86/lib/cmake/marisa/marisa-version.cmake
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
# This is a basic version file for the Config-mode of find_package().
|
||||
# It is used by write_basic_package_version_file() as input file for configure_file()
|
||||
# to create a version-file which can be installed along a config.cmake file.
|
||||
#
|
||||
# The created file sets PACKAGE_VERSION_EXACT if the current version string and
|
||||
# the requested version string are exactly the same and it sets
|
||||
# PACKAGE_VERSION_COMPATIBLE if the current version is >= requested version,
|
||||
# but only if the requested major version is the same as the current one.
|
||||
# The variable CVF_VERSION must be set before calling configure_file().
|
||||
|
||||
|
||||
set(PACKAGE_VERSION "0.2.6")
|
||||
|
||||
if(PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION)
|
||||
set(PACKAGE_VERSION_COMPATIBLE FALSE)
|
||||
else()
|
||||
|
||||
if("0.2.6" MATCHES "^([0-9]+)\\.")
|
||||
set(CVF_VERSION_MAJOR "${CMAKE_MATCH_1}")
|
||||
if(NOT CVF_VERSION_MAJOR VERSION_EQUAL 0)
|
||||
string(REGEX REPLACE "^0+" "" CVF_VERSION_MAJOR "${CVF_VERSION_MAJOR}")
|
||||
endif()
|
||||
else()
|
||||
set(CVF_VERSION_MAJOR "0.2.6")
|
||||
endif()
|
||||
|
||||
if(PACKAGE_FIND_VERSION_RANGE)
|
||||
# both endpoints of the range must have the expected major version
|
||||
math (EXPR CVF_VERSION_MAJOR_NEXT "${CVF_VERSION_MAJOR} + 1")
|
||||
if (NOT PACKAGE_FIND_VERSION_MIN_MAJOR STREQUAL CVF_VERSION_MAJOR
|
||||
OR ((PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "INCLUDE" AND NOT PACKAGE_FIND_VERSION_MAX_MAJOR STREQUAL CVF_VERSION_MAJOR)
|
||||
OR (PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "EXCLUDE" AND NOT PACKAGE_FIND_VERSION_MAX VERSION_LESS_EQUAL CVF_VERSION_MAJOR_NEXT)))
|
||||
set(PACKAGE_VERSION_COMPATIBLE FALSE)
|
||||
elseif(PACKAGE_FIND_VERSION_MIN_MAJOR STREQUAL CVF_VERSION_MAJOR
|
||||
AND ((PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "INCLUDE" AND PACKAGE_VERSION VERSION_LESS_EQUAL PACKAGE_FIND_VERSION_MAX)
|
||||
OR (PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "EXCLUDE" AND PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION_MAX)))
|
||||
set(PACKAGE_VERSION_COMPATIBLE TRUE)
|
||||
else()
|
||||
set(PACKAGE_VERSION_COMPATIBLE FALSE)
|
||||
endif()
|
||||
else()
|
||||
if(PACKAGE_FIND_VERSION_MAJOR STREQUAL CVF_VERSION_MAJOR)
|
||||
set(PACKAGE_VERSION_COMPATIBLE TRUE)
|
||||
else()
|
||||
set(PACKAGE_VERSION_COMPATIBLE FALSE)
|
||||
endif()
|
||||
|
||||
if(PACKAGE_FIND_VERSION STREQUAL PACKAGE_VERSION)
|
||||
set(PACKAGE_VERSION_EXACT TRUE)
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
||||
# if the installed project requested no architecture check, don't perform the check
|
||||
if("FALSE")
|
||||
return()
|
||||
endif()
|
||||
|
||||
# if the installed or the using project don't have CMAKE_SIZEOF_VOID_P set, ignore it:
|
||||
if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "" OR "4" STREQUAL "")
|
||||
return()
|
||||
endif()
|
||||
|
||||
# check that the installed version has the same 32/64bit-ness as the one which is currently searching:
|
||||
if(NOT CMAKE_SIZEOF_VOID_P STREQUAL "4")
|
||||
math(EXPR installedBits "4 * 8")
|
||||
set(PACKAGE_VERSION "${PACKAGE_VERSION} (${installedBits}bit)")
|
||||
set(PACKAGE_VERSION_UNSUITABLE TRUE)
|
||||
endif()
|
||||
BIN
marisa/x86/lib/libmarisa.a
Normal file
BIN
marisa/x86/lib/libmarisa.a
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue