packages feed

haroonga 0.1.3.0 → 0.1.4.0

raw patch · 3 files changed

+58/−3 lines, 3 files

Files

+ Bindings/Groonga/Raw/Tokenizer.hsc view
@@ -0,0 +1,53 @@+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+#include <bindings.dsl.h>+#include <groonga/tokenizer.h>+module Bindings.Groonga.Raw.Tokenizer where+import Foreign.Ptr+#strict_import++import Bindings.Groonga.Raw+import Bindings.Groonga.Raw.Plugin+#ccall grn_tokenizer_charlen , Ptr <struct _grn_ctx> -> CString -> CUInt -> <grn_encoding> -> IO CInt+#ccall grn_tokenizer_isspace , Ptr <struct _grn_ctx> -> CString -> CUInt -> <grn_encoding> -> IO CInt+#ccall grn_tokenizer_is_tokenized_delimiter , Ptr <struct _grn_ctx> -> CString -> CUInt -> <grn_encoding> -> IO CUChar+#ccall grn_tokenizer_have_tokenized_delimiter , Ptr <struct _grn_ctx> -> CString -> CUInt -> <grn_encoding> -> IO CUChar+{- typedef struct _grn_tokenizer_query grn_tokenizer_query; -}+#synonym_t grn_tokenizer_query , <struct _grn_tokenizer_query>+{- struct _grn_tokenizer_query {+    grn_obj * normalized_query;+    char * query_buf;+    const char * ptr;+    unsigned int length;+    grn_encoding encoding;+    unsigned int flags;+    grn_bool have_tokenized_delimiter;+}; -}+#starttype struct _grn_tokenizer_query+#field normalized_query , Ptr <struct _grn_obj>+#field query_buf , CString+#field ptr , CString+#field length , CUInt+#field encoding , <grn_encoding>+#field flags , CUInt+#field have_tokenized_delimiter , CUChar+#stoptype+#ccall grn_tokenizer_query_open , Ptr <struct _grn_ctx> -> CInt -> Ptr (Ptr <struct _grn_obj>) -> CUInt -> IO (Ptr <struct _grn_tokenizer_query>)+#ccall grn_tokenizer_query_create , Ptr <struct _grn_ctx> -> CInt -> Ptr (Ptr <struct _grn_obj>) -> IO (Ptr <struct _grn_tokenizer_query>)+#ccall grn_tokenizer_query_close , Ptr <struct _grn_ctx> -> Ptr <struct _grn_tokenizer_query> -> IO ()+#ccall grn_tokenizer_query_destroy , Ptr <struct _grn_ctx> -> Ptr <struct _grn_tokenizer_query> -> IO ()+{- typedef struct _grn_tokenizer_token grn_tokenizer_token; -}+#synonym_t grn_tokenizer_token , <struct _grn_tokenizer_token>+{- struct _grn_tokenizer_token {+    grn_obj str; grn_obj status;+}; -}+#starttype struct _grn_tokenizer_token+#field str , <struct _grn_obj>+#field status , <struct _grn_obj>+#stoptype+#ccall grn_tokenizer_token_init , Ptr <struct _grn_ctx> -> Ptr <struct _grn_tokenizer_token> -> IO ()+#ccall grn_tokenizer_token_fin , Ptr <struct _grn_ctx> -> Ptr <struct _grn_tokenizer_token> -> IO ()+{- typedef unsigned int grn_tokenizer_status; -}+#synonym_t grn_tokenizer_status , CUInt+#ccall grn_tokenizer_token_push , Ptr <struct _grn_ctx> -> Ptr <struct _grn_tokenizer_token> -> CString -> CUInt -> CUInt -> IO ()+#ccall grn_tokenizer_tokenized_delimiter_next , Ptr <struct _grn_ctx> -> Ptr <struct _grn_tokenizer_token> -> CString -> CUInt -> <grn_encoding> -> IO CString+#ccall grn_tokenizer_register , Ptr <struct _grn_ctx> -> CString -> CUInt -> Ptr <grn_proc_func> -> Ptr <grn_proc_func> -> Ptr <grn_proc_func> -> IO <grn_rc>
README.md view
@@ -16,7 +16,8 @@ * Bindings.Groonga * Bindings.Groonga.Raw * Bindings.Groonga.Raw.Plugin-* Bindings.Groonga.SimpleAPI+* Bindings.Groonga.Raw.Tokenizer+* Bindings.Groonga.CommandAPI * Bindings.Groonga.Types  ## How to install@@ -38,5 +39,5 @@  ## Haddock -* [Hackage](http://hackage.haskell.org/package/haroonga-0.1.2.0/docs/)+* [Hackage](http://hackage.haskell.org/package/haroonga/docs/) * [Github Pages ](http://cosmo0920.github.io/haroonga/)
haroonga.cabal view
@@ -2,7 +2,7 @@ -- documentation, see http://haskell.org/cabal/users-guide/  name:                  haroonga-version:               0.1.3.0+version:               0.1.4.0 synopsis:              Low level bindings for Groonga. description:           Bindings to Groonga  <http://groonga.org/>. license:               LGPL-2.1@@ -19,6 +19,7 @@   exposed-modules:     Bindings.Groonga                        Bindings.Groonga.Raw                        Bindings.Groonga.Raw.Plugin+                       Bindings.Groonga.Raw.Tokenizer                        Bindings.Groonga.CommandAPI                        Bindings.Groonga.Types   build-depends:       base          >= 4.5 && < 5