![]() |
![]() |
![]() |
cpg-network Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces |
#define CPG_EMBEDDED_STRING_CONST (obj) enum CpgEmbeddedStringNodeType; struct CpgEmbeddedString; struct CpgEmbeddedStringClass; CpgEmbeddedString * cpg_embedded_string_new (void
); CpgEmbeddedString * cpg_embedded_string_new_from_string (gchar const *s
); CpgEmbeddedString * cpg_embedded_string_new_from_double (gdouble s
); CpgEmbeddedString * cpg_embedded_string_new_from_integer (gint s
); CpgEmbeddedString * cpg_embedded_string_push (CpgEmbeddedString *s
,CpgEmbeddedStringNodeType type
,gint depth
); CpgEmbeddedString * cpg_embedded_string_pop (CpgEmbeddedString *s
); CpgEmbeddedString * cpg_embedded_string_push_brace (CpgEmbeddedString *s
); CpgEmbeddedString * cpg_embedded_string_pop_brace (CpgEmbeddedString *s
); gint cpg_embedded_string_brace_level (CpgEmbeddedString *s
); CpgEmbeddedString * cpg_embedded_string_add_string (CpgEmbeddedString *s
,CpgEmbeddedString *other
); CpgEmbeddedString * cpg_embedded_string_add_text (CpgEmbeddedString *s
,gchar const *text
); CpgEmbeddedString * cpg_embedded_string_prepend_text (CpgEmbeddedString *s
,gchar const *text
); gchar const * cpg_embedded_string_expand (CpgEmbeddedString *s
,CpgEmbeddedContext *ctx
,GError **error
); GSList * cpg_embedded_string_expand_multiple (CpgEmbeddedString *s
,CpgEmbeddedContext *ctx
,GError **error
); void cpg_embedded_string_clear_cache (CpgEmbeddedString *s
); gchar * cpg_embedded_string_collapse (gchar const * const *s
); CpgEmbeddedStringPrivate;
#define CPG_EMBEDDED_STRING_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CPG_TYPE_EMBEDDED_STRING, CpgEmbeddedString const))
typedef enum { CPG_EMBEDDED_STRING_NODE_TEXT, CPG_EMBEDDED_STRING_NODE_EQUATION, CPG_EMBEDDED_STRING_NODE_INDIRECTION, CPG_EMBEDDED_STRING_NODE_REDUCE, CPG_EMBEDDED_STRING_NODE_MAP, CPG_EMBEDDED_STRING_NODE_CONDITION } CpgEmbeddedStringNodeType;
CpgEmbeddedString * cpg_embedded_string_new_from_string (gchar const *s
);
CpgEmbeddedString * cpg_embedded_string_new_from_double (gdouble s
);
CpgEmbeddedString * cpg_embedded_string_new_from_integer
(gint s
);
CpgEmbeddedString * cpg_embedded_string_push (CpgEmbeddedString *s
,CpgEmbeddedStringNodeType type
,gint depth
);
Push a context type into the embedded string.
|
A CpgEmbeddedString |
|
A CpgEmbeddedStringNodeType |
|
The depth of the embedded string |
Returns : |
The CpgEmbeddedString (s ). [transfer none]
|
CpgEmbeddedString * cpg_embedded_string_pop (CpgEmbeddedString *s
);
Pop an embedded context.
|
A CpgEmbeddedString |
Returns : |
The CpgEmbeddedString (s ). [transfer none]
|
CpgEmbeddedString * cpg_embedded_string_push_brace (CpgEmbeddedString *s
);
CpgEmbeddedString * cpg_embedded_string_pop_brace (CpgEmbeddedString *s
);
CpgEmbeddedString * cpg_embedded_string_add_string (CpgEmbeddedString *s
,CpgEmbeddedString *other
);
CpgEmbeddedString * cpg_embedded_string_add_text (CpgEmbeddedString *s
,gchar const *text
);
Adds a text node to the embedded string.
|
A CpgEmbeddedString |
|
The text to add |
Returns : |
A CpgEmbeddedString. [transfer none] |
CpgEmbeddedString * cpg_embedded_string_prepend_text (CpgEmbeddedString *s
,gchar const *text
);
Prepends a text node to the embedded string.
|
A CpgEmbeddedString |
|
The text to add |
Returns : |
A CpgEmbeddedString. [transfer none] |
gchar const * cpg_embedded_string_expand (CpgEmbeddedString *s
,CpgEmbeddedContext *ctx
,GError **error
);
GSList * cpg_embedded_string_expand_multiple (CpgEmbeddedString *s
,CpgEmbeddedContext *ctx
,GError **error
);
Expand string with braces syntax.
|
A CpgEmbeddedString |
|
A CpgEmbeddedContext |
Returns : |
A GSList of CpgExpansion. [element-type CpgExpansion][transfer full] |