From: PHO Date: Sat, 21 Aug 2010 05:43:18 +0000 (+0900) Subject: Bindings.APR.Strings X-Git-Tag: RELEASE-0.1~12 X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=24b724830db91f5172a00369e85eca146fb1d090;p=bindings-apr.git Bindings.APR.Strings --- diff --git a/Bindings/APR/Strings.hsc b/Bindings/APR/Strings.hsc new file mode 100644 index 0000000..86bcf04 --- /dev/null +++ b/Bindings/APR/Strings.hsc @@ -0,0 +1,33 @@ +#include +#include + +module Bindings.APR.Strings where +#strict_import +import Bindings.APR +import Bindings.APR.ErrNo +import Bindings.APR.Pools +import Bindings.APR.Want + +#ccall apr_strnatcmp , Ptr CChar -> Ptr CChar -> IO CInt +#ccall apr_strnatcasecmp, Ptr CChar -> Ptr CChar -> IO CInt +#ccall apr_pstrdup , Ptr -> Ptr CChar -> IO (Ptr CChar) +#ccall apr_pstrmemdup , Ptr -> Ptr CChar -> -> IO (Ptr CChar) +#ccall apr_pstrndup , Ptr -> Ptr CChar -> -> IO (Ptr CChar) +#ccall apr_pmemdup , Ptr -> Ptr () -> -> IO (Ptr ()) +-- FIXME: apr_pstrcat +#ccall apr_pstrcatv , Ptr -> Ptr -> -> Ptr -> IO (Ptr CChar) +-- FIXME: apr_pvsprintf +-- FIXME: apr_psprintf +#ccall apr_cpystrn , Ptr CChar -> Ptr CChar -> -> IO (Ptr CChar) +#ccall apr_collapse_spaces , Ptr CChar -> Ptr CChar -> IO (Ptr CChar) +#ccall apr_tokenize_to_argv, Ptr CChar -> Ptr (Ptr (Ptr CChar)) -> Ptr -> IO +#ccall apr_strtok , Ptr CChar -> Ptr CChar -> Ptr (Ptr CChar) -> IO (Ptr CChar) +-- FIXME: apr_snprintf +-- FIXME: apr_vsnprintf +#ccall apr_itoa , Ptr -> CInt -> IO (Ptr CChar) +#ccall apr_ltoa , Ptr -> CLong -> IO (Ptr CChar) +#ccall apr_off_t_toa , Ptr -> -> IO (Ptr CChar) +#ccall apr_strtoff , Ptr -> Ptr CChar -> Ptr (Ptr CChar) -> CInt -> IO +#ccall apr_strtoi64 , Ptr CChar -> Ptr (Ptr CChar) -> CInt -> IO +#ccall apr_atoi64 , Ptr CChar -> IO +#ccall apr_strfsize , -> Ptr CChar -> IO (Ptr CChar) diff --git a/bindings-apr.cabal b/bindings-apr.cabal index 81059fc..cbc3d4e 100644 --- a/bindings-apr.cabal +++ b/bindings-apr.cabal @@ -54,6 +54,7 @@ Library Bindings.APR.Random Bindings.APR.Shm Bindings.APR.Signal + Bindings.APR.Strings Bindings.APR.Tables Bindings.APR.Thread.Mutex Bindings.APR.Thread.Proc