lines
lines breaks a string up into a list of strings at newline characters. The resulting strings do not contain newlines.
Zl: Separator, Line
This module corresponds to section 3.4 (Line Segments) of the OpenGL 2.1 specs.
Treats each pair of vertices as an independent line segment. Vertices 2n-1 and 2n define line n. N/2 lines are drawn.
lines breaks a ByteString up into a list of ByteStrings at newline Chars. The resulting strings do not contain newlines.
lines breaks a ByteString up into a list of ByteStrings at newline Chars. The resulting strings do not contain newlines.
As of bytestring 0.9.0.3, this function is stricter than its list cousin.
O(n) Breaks a Text up into a list of Texts at newline Chars. The resulting strings do not contain newlines.
Controls whether line antialiasing is enabled. The initial state is Disabled.
Line stippling masks out certain fragments produced by rasterization; those fragments will not be drawn. The masking is achieved by using three parameters: the repeat count (1st element of the lineStipple pair, clamped to the range [ 1 .. 256 ]), the 16-bit line stipple pattern (2nd element), and an integer stipple counter s.
The counter s is reset to 0 at before the first action during renderPrimitive is called and before each line segment during renderPrimitive is generated. It is incremented after each fragment of a unit width aliased line segment is generated or after each i fragments of an i width line segment are generated. The i fragments associated with count s are masked out if testBit pattern (( s / factor ) mod 16) is False, otherwise these fragments are sent to the frame buffer. Bit zero of the pattern is the least significant bit, i.e. it is used first.
Antialiased lines are treated as a sequence of rectangles of height 1 for purposes of stippling. Whether rectangle s is rasterized or not depends on the fragment rule described for aliased lines, counting rectangles rather than groups of fragments.
The initial value of lineStipple is Nothing, i.e. line stippling is disabled.
An InvalidOperation is generated if lineStipple is set during renderPrimitive.
This converts a string, but keeps spaces as non-line-breakable, and adds line breaks between each of the strings in the input list.
Draws a connected group of line segments from the first vertex to the last. Vertices n and n+1 define line n. N-1 lines are drawn.
unlines is an inverse operation to lines. It joins lines, after appending a terminating newline to each.
Sparklines implementation of smooth and bar graphs
Version 0.1.0
See the source of Numeric.LazySplines.Examples for usage.
Version 0.1
Enumerator tools for text-based network protocols. This includes, among other things, an enumeratee to split an incoming stream to a length-limited line stream in a safe manner (i.e. in constant space).
Version 1.0.0
Provides an alternative implementation of the Prelude.lines function that treats the following sequences as newline characters:
* "\r\n" (Windows style)
* "\r" (Macintosh style, before OS X)
* "\n" (Unix style)
Haskell's IO system supports both platform-specific line ending conversion (by opening the file in "text mode"), and explicit setting of the newline mode for input and output (see System.IO.hSetNewlineMode). However:
* If you don't know the line ending format in advance, you would have to open the file and detect the newline format manually.
* ByteString currently honors neither of these; see http://stackoverflow.com/questions/6837628.
Version 0.1
This is a fairly simple implementation of a general-purpose spline library, just to get the code out there. Its interface is still mildly unstable and may change (hopefully not drastically) as new needs or better style ideas come up. Patches, suggestions and/or feature requests are welcome.
Version 0.3
unlines is an inverse operation to lines. It joins lines, after appending a terminating newline to each.
O(n) Joins lines, after appending a terminating newline to each.