cs_init(3) cs/cs.h cs_init(3)NAME
cs_init - create and initialize a CS context
SYNOPSIS
#include <cs/cs.h>
NEOERR *cs_init (CSPARSE **parse, HDF *hdf);
ARGUMENTS
parse - a pointer to a pointer to a CSPARSE structure that
will be created
hdf - the HDF dataset to be used during parsing and rendering
DESCRIPTION
cs_init will create a CSPARSE structure and initialize it. This structure maintains the state and information necessary for parsing and
rendering a CS template.
MT-Level: cs routines perform no locking, and neither do hdf routines. They should be safe in an MT environment as long as they are con-
fined to a single thread.
RETURN VALUE
parse will contain a pointer to the allocated CSPARSE
structure. This structure will be deallocated with
cs_destroy()
SEE ALSO cs_dump(3), cs_destroy(3), cs_render(3), cs_register_esc_strfunc(3), cs_arg_parsev(3), cs_register_fileload(3), cs_init(3), cs_regis-
ter_strfunc(3), cs_arg_parse(3), cs_parse_string(3), cs_parse_file(3), =(3), cs_register_function
ClearSilver 12 July 2007 cs_init(3)
Check Out this Related Man Page
cs_render(3) cs/cs.h cs_render(3)NAME
cs_render - render a CS parse tree
SYNOPSIS
#include <cs/cs.h>
NEOERR *cs_render (CSPARSE *parse, void *ctx, CSOUTFUNC cb);
ARGUMENTS
parse - the CSPARSE structure containing the CS parse tree
that will be evaluated
ctx - user data that will be passed as the first variable to
the CSOUTFUNC.
cb - a CSOUTFUNC called to render the output. A CSOUTFUNC is
defined as:
typedef NEOERR* (*CSOUTFUNC)(void *, char *);
DESCRIPTION
cs_render will evaluate a CS parse tree, calling the CSOUTFUNC passed to it for output. Note that calling cs_render multiple times on the
same parse tree may or may not render the same output as the set statement has side-effects, it updates the HDF data used by the render.
Typically, you will call one of the cs_parse functions before calling this function.
RETURN VALUE
None
SEE ALSO cs_dump(3), cs_destroy(3), cs_render(3), cs_register_esc_strfunc(3), cs_arg_parsev(3), cs_register_fileload(3), cs_init(3), cs_regis-
ter_strfunc(3), cs_arg_parse(3), cs_parse_string(3), cs_parse_file(3), =(3), cs_register_function
ClearSilver 12 July 2007 cs_render(3)
i often hear the word parse the files, parse it etc.
what does parsing mean in such contexts.does it mean breaking the files into smaller chunnks (2 Replies)
I'm currenting trying to parse the out put of the following command.
iostat -xtc -r |grep cmdk0
which produces the output
cmdk0,0.2,0.0,1.2,0.0,0.0,0.0,39.7,0,0,0,0,0,0,0,99
I'm then trying to get the data to look like this:
rw=0.2
ws=0.0
krs=1.2
kws=0.0
wait=0.0
actv=0.0... (2 Replies)
Hi All,
I am looking for a parsing in perl script which will parse DJEČJI SVIJET. There is a unicode character above character C. How to parse the total DJEČJI SVIJET in perl.
Regards,
Harikrishna (3 Replies)
I have a string as "Period= 20090531 Client Name= Clayton Lumbar Company Destination= MD"
I want to parse the string and store it in 3 different variables.
$period (should get value 20090531)
$client (should get value "Clayton Lumbar company")
$dest (should get value MD)
How can I do... (3 Replies)
Hello,
We have edi files we need to do some extra parsing on.
There is a line that shows up that looks like this:
GE|8,845|000000000
We need to parse the file, find the line ( that begins with GE "^GE" ), and remove the comma(s).
What is the easiest way to do that ? I know I can grab... (5 Replies)