Function

NumCosmoMathMSetsplit_full_name

Declaration [src]

gboolean
ncm_mset_split_full_name (
  const gchar* fullname,
  gchar** model_ns,
  guint* stackpos_id,
  gchar** pname,
  GError** error
)

Description [src]

Splits the fullname into model_ns, stackpos_id and pname. The fullname should be specified with the parameter full name “model:parameter_name” or “model:stackposition:parameter_name”.

Parameters

fullname

Type: const gchar*

Full name of a parameter.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
model_ns

Type: gchar**

Model namespace.

The argument will be set by the function.
The caller of the function takes ownership of the returned data, and is responsible for freeing it.
The value is a NUL terminated UTF-8 string.
stackpos_id

Type: guint*

Stack position id.

The argument will be set by the function.
pname

Type: gchar**

Parameter name.

The argument will be set by the function.
The caller of the function takes ownership of the returned data, and is responsible for freeing it.
The value is a NUL terminated UTF-8 string.
error

Type: GError **

The return location for a recoverable error.

The argument can be NULL.
If the return location is not NULL, then you must initialize it to a NULL GError*.
The argument will be left initialized to NULL by the function if there are no errors.
In case of error, the argument will be set to a newly allocated GError; the caller will take ownership of the data, and be responsible for freeing it.

Return value

Type: gboolean

TRUE if the fullname is valid, FALSE otherwise.