String +Foreign.C

module Foreign.C.String
base Foreign.C.String
Utilities for primitive marshalling of C strings. The marshalling converts each Haskell character, representing a Unicode code point, to one or more bytes in a manner that, by default, is determined by the current locale. As a consequence, no guarantees can be made about the relative length of a Haskell string and its corresponding C string, and therefore all the marshalling routines include memory allocation. The translation between Unicode and the encoding of the current locale may be lossy.
package string-class
package
String class library Version 0.1.5.1
package string-combinators
package
string-combinators provides handy polymorphic functions to build and combine string-like values. All functions are polymorphic in their string-like type but usually have a Monoid or IsString constraint. Version 0.6.0.3
package string-conversions
package
Provides a simple type class for converting values of different string types into values of other string types. Version 0.2
package string-qq
package
QuasiQuoter for non-interpolated strings, texts and bytestrings. Version 0.0.2
package string-quote
package
QuasiQuoter for non-interpolated strings, texts and bytestrings. Version 0.0.1
package stringbuilder
package
https://github.com/sol/stringbuilder#readme Version 0.1.0
package stringprep
package
Implements the StringPrep algorithm Version 0.1.4
package stringsearch
package
This package provides several functions to quickly search for substrings in strict or lazy ByteStrings. It also provides functions for breaking or splitting on substrings and replacing all occurrences of a substring (the first in case of overlaps) with another. GHC before 6.10 are no longer supported, other compilers only if they support BangPatterns. If you need it to work with other compilers, send a feature request. Version 0.3.6.3
package stringtable-atom
package
Memoize Strings as Atoms for fast comparison and sorting, with maps and sets Version 0.0.6.1
type CString = Ptr CChar
base Foreign.C.String
A C string is a reference to an array of C characters terminated by NUL.
type CStringLen = (Ptr CChar, Int)
base Foreign.C.String
A string with explicit length information in bytes instead of a terminating NUL (allowing NUL characters in the middle of the string).
type CWString = Ptr CWchar
base Foreign.C.String
A C wide string is a reference to an array of C wide characters terminated by NUL.
type CWStringLen = (Ptr CWchar, Int)
base Foreign.C.String
A wide character string with explicit length information in CWchars instead of a terminating NUL (allowing NUL characters in the middle of the string).
newCAString :: String -> IO CString
base Foreign.C.String
Marshal a Haskell string into a NUL terminated C string. * the Haskell string may not contain any NUL characters * new storage is allocated for the C string and must be explicitly freed using Foreign.Marshal.Alloc.free or Foreign.Marshal.Alloc.finalizerFree.
newCAStringLen :: String -> IO CStringLen
base Foreign.C.String
Marshal a Haskell string into a C string (ie, character array) with explicit length information. * new storage is allocated for the C string and must be explicitly freed using Foreign.Marshal.Alloc.free or Foreign.Marshal.Alloc.finalizerFree.
newCString :: String -> IO CString
base Foreign.C.String
Marshal a Haskell string into a NUL terminated C string. * the Haskell string may not contain any NUL characters * new storage is allocated for the C string and must be explicitly freed using Foreign.Marshal.Alloc.free or Foreign.Marshal.Alloc.finalizerFree.
newCStringLen :: String -> IO CStringLen
base Foreign.C.String
Marshal a Haskell string into a C string (ie, character array) with explicit length information. * new storage is allocated for the C string and must be explicitly freed using Foreign.Marshal.Alloc.free or Foreign.Marshal.Alloc.finalizerFree.
newCWString :: String -> IO CWString
base Foreign.C.String
Marshal a Haskell string into a NUL terminated C wide string. * the Haskell string may not contain any NUL characters * new storage is allocated for the C wide string and must be explicitly freed using Foreign.Marshal.Alloc.free or Foreign.Marshal.Alloc.finalizerFree.
newCWStringLen :: String -> IO CWStringLen
base Foreign.C.String
Marshal a Haskell string into a C wide string (ie, wide character array) with explicit length information. * new storage is allocated for the C wide string and must be explicitly freed using Foreign.Marshal.Alloc.free or Foreign.Marshal.Alloc.finalizerFree.

Show more results