Woolz Image Processing  Version 1.8.3
WlzStrings

Files

file  WlzStringTypes.c
 Functions for converting between Woolz data types and string representations (names) of the types.
 
file  WlzStringUtils.c
 Miscellaneous string handling functions.
 

Functions

const char * WlzStringFromObjType (WlzObject *obj, WlzErrorNum *dstErr)
 Finds a string for the given object's type. More...
 
const char * WlzStringFromObjTypeValue (WlzObjectType objType, WlzErrorNum *dstErr)
 Finds a string for the given object type. More...
 
WlzObjectType WlzStringToObjType (const char *oTypeStr, WlzErrorNum *dstErr)
 Finds an enumerated type for the given object type string. More...
 
const char * WlzStringFromObjDomainType (WlzObject *obj, WlzErrorNum *dstErr)
 Finds a string for the given object's domain type. More...
 
WlzObjectType WlzStringToObjDomainType (const char *oDomTypeStr, WlzErrorNum *dstErr)
 Finds an enumerated type for the given object domain type string. More...
 
const char * WlzStringFromObjValuesType (WlzObject *obj, WlzErrorNum *dstErr)
 Finds a string for the given object's values type. More...
 
WlzObjectType WlzStringToObjValuesType (const char *oValTypeStr, WlzErrorNum *dstErr)
 Finds an enumerated type for the given object values type string. More...
 
const char * WlzStringFromScalarFeatureType (WlzScalarFeatureType fType, WlzErrorNum *dstErr)
 Finds a string for the given scalar feature type. More...
 
const char * WlzStringFromPropertyType (WlzProperty prop, WlzErrorNum *dstErr)
 Finds a string for the given property's type. More...
 
WlzObjectType WlzStringToPropertyType (const char *pStr, WlzErrorNum *dstErr)
 Finds an enumerated type for the given property type string. More...
 
const char * WlzStringFromEMAPPropertyType (WlzEMAPProperty *eProp, WlzErrorNum *dstErr)
 Finds a string for the given EMAP property's type. More...
 
WlzEMAPPropertyType WlzStringToEMAPPropertyType (const char *pStr, WlzErrorNum *dstErr)
 Finds an enumerated type for the given EMAP property type string. More...
 
const char * WlzStringFromTransformType (WlzTransformType tType, WlzErrorNum *dstErr)
 Finds a string for the given transform type. More...
 
WlzTransformType WlzStringToTransformType (const char *tStr, WlzErrorNum *dstErr)
 Finds an enumerated type for the given transform type string. More...
 
const char * WlzStringFromMeshGenMethod (WlzMeshGenMethod mtd, WlzErrorNum *dstErr)
 Finds a string for the given mesh generation method. More...
 
WlzMeshGenMethod WlzStringToMeshGenMethod (const char *tStr, WlzErrorNum *dstErr)
 Finds an enumerated type for the given mesh generation method. More...
 
WlzFnType WlzStringToFnType (const char *tStr, WlzErrorNum *dstErr)
 Finds an enumerated type for the given function type. More...
 
const char * WlzStringFromFnType (WlzFnType fn, WlzErrorNum *dstErr)
 Finds a string for the given function type. More...
 
const char * WlzStringFromGMModelType (WlzGMModelType mType, WlzErrorNum *dstErr)
 Finds a string for the given transform type. More...
 
WlzGMModelType WlzStringToGMModelType (const char *tStr, WlzErrorNum *dstErr)
 Finds an enumerated type for the given GM model type string. More...
 
const char * WlzStringFromGreyType (WlzGreyType gType, WlzErrorNum *dstErr)
 Finds a string for the given grey type. More...
 
WlzGreyType WlzStringToGreyType (const char *gStr, WlzErrorNum *dstErr)
 Finds an enumerated type for the given grey type string. More...
 
const char * WlzStringFromVertexType (WlzVertexType vType, WlzErrorNum *dstErr)
 Finds a string for the given vertex type. More...
 
WlzVertexType WlzStringToVertexType (const char *vStr, WlzErrorNum *dstErr)
 Finds an enumerated type for the given vertex type string. More...
 
const char * WlzStringFromInterpolationType (WlzInterpolationType iType, WlzErrorNum *dstErr)
 Finds a string for the given interpolation type. More...
 
WlzInterpolationType WlzStringToInterpolationType (const char *iStr, WlzErrorNum *dstErr)
 Finds an enumerated type for the given interpolation type string. More...
 
const char * WlzStringFromValueAttachType (WlzValueAttach at, WlzErrorNum *dstErr)
 Finds a string for the given values attachment type. More...
 
WlzValueAttach WlzStringToValuesAttachType (const char *aStr, WlzErrorNum *dstErr)
 Finds an enumerated type for the given values attachment type string. More...
 
const char * WlzStringFromThreeDViewMode (WlzThreeDViewMode vMode, WlzErrorNum *dstErr)
 Finds a string for the given 3D view mode. More...
 
const char * WlzStringFromRCC (WlzRCCClass cls, WlzErrorNum *dstErr)
 Finds a string for the given region connected calculus class. More...
 
const char * WlzStringFromMarkerType (WlzMarkerType mType, WlzErrorNum *dstErr)
 Finds a string for the given values attachment type. More...
 
const char * WlzStringFromErrorNum (WlzErrorNum wlzErr, const char **dstMsgStr)
 Finds a string for the given error. More...
 
WlzErrorNum WlzStringToErrorNum (const char *errStr)
 Finds an error number for the given error number string. More...
 
int WlzStringMatchValue (int *datum, const char *targetStr, const char *testStr,...)
 Given a destination pointer, a string, and a null terminated list of string, enum pairs. The strings are matched and the first match is used to fill in the destination with the matched enum's value. More...
 
int WlzValueMatchString (char **datum, int targetVal, const char *testStr,...)
 Given a destination pointer, a value, and a null terminated list of string, enum pairs. The values are matched and the first match is used to fill in the destination with the matched enum's string. More...
 
char * WlzStringWhiteSpSkip (char *str)
 Removes all white space characters (as determined by isspace(3)) from the given string. More...
 
char * WlzStringWhiteSpSkipLeading (char *str)
 Removes all white space characters (as determined by isspace(3)) from the given string. More...
 
char * WlzStringToUpper (char *str)
 Converts the string to all upper case using toupper(3). More...
 
char * WlzStringToLower (char *str)
 Converts the string to all lower case using tolower(3). More...
 

Detailed Description

Function Documentation

◆ WlzStringFromObjType()

const char* WlzStringFromObjType ( WlzObject obj,
WlzErrorNum dstErr 
)

Finds a string for the given object's type.

Returns
Read only string or NULL on error.
Parameters
objGiven object.
dstErrDestination error pointer, may be null.

References _WlzObject::type, WLZ_ERR_NONE, WLZ_ERR_OBJECT_NULL, and WlzStringFromObjTypeValue().

Referenced by WlzStringFromObjValuesType().

◆ WlzStringFromObjTypeValue()

◆ WlzStringToObjType()

◆ WlzStringFromObjDomainType()

◆ WlzStringToObjDomainType()

◆ WlzStringFromObjValuesType()

◆ WlzStringToObjValuesType()

WlzObjectType WlzStringToObjValuesType ( const char *  oValTypeStr,
WlzErrorNum dstErr 
)

Finds an enumerated type for the given object values type string.

Returns
Woolz object type or WLZ_NULL on error.
Parameters
oValTypeStrGiven object values type string.
dstErrDestination error pointer, may be null.

References WLZ_ERR_NONE, WLZ_ERR_OBJECT_TYPE, WLZ_GREY_TAB_INTL, WLZ_GREY_TAB_RAGR, WLZ_GREY_TAB_RECT, WLZ_LUT, WLZ_NULL, WLZ_POINT_VALUES, WLZ_VOXELVALUETABLE_GREY, and WlzStringMatchValue().

◆ WlzStringFromScalarFeatureType()

const char* WlzStringFromScalarFeatureType ( WlzScalarFeatureType  fType,
WlzErrorNum dstErr 
)

Finds a string for the given scalar feature type.

Returns
Read only string or NULL on error.
Parameters
fTypeGiven scalar feature type.
dstErrDestination error pointer, may be null.

References WLZ_ERR_NONE, WLZ_ERR_PARAM_DATA, WLZ_SCALARFEATURE_GRADIENT, and WLZ_SCALARFEATURE_VALUE.

◆ WlzStringFromPropertyType()

const char* WlzStringFromPropertyType ( WlzProperty  prop,
WlzErrorNum dstErr 
)

Finds a string for the given property's type.

Returns
Read only string or NULL on error.
Parameters
propGiven property.
dstErrDestination error pointer, may be null.

References _WlzProperty::core, _WlzCoreProperty::type, WLZ_ERR_NONE, WLZ_ERR_OBJECT_NULL, WLZ_ERR_PROPERTY_TYPE, WLZ_PROPERTY_EMAP, WLZ_PROPERTY_GREY, WLZ_PROPERTY_NAME, WLZ_PROPERTY_SIMPLE, and WLZ_PROPERTY_TEXT.

◆ WlzStringToPropertyType()

WlzObjectType WlzStringToPropertyType ( const char *  pStr,
WlzErrorNum dstErr 
)

Finds an enumerated type for the given property type string.

Returns
Woolz property type which will be WLZ_NULL if no matching type is found..
Parameters
pStrGiven property type string.
dstErrDestination error pointer, may be null.

References WLZ_ERR_NONE, WLZ_ERR_PROPERTY_TYPE, WLZ_NULL, WLZ_PROPERTY_EMAP, WLZ_PROPERTY_GREY, WLZ_PROPERTY_NAME, WLZ_PROPERTY_SIMPLE, WLZ_PROPERTY_TEXT, and WlzStringMatchValue().

◆ WlzStringFromEMAPPropertyType()

const char* WlzStringFromEMAPPropertyType ( WlzEMAPProperty eProp,
WlzErrorNum dstErr 
)

Finds a string for the given EMAP property's type.

Returns
Read only string or NULL on error.
Parameters
ePropGiven EMAP property.
dstErrDestination error pointer, may be null.

References _WlzEMAPProperty::emapType, WLZ_EMAP_PROPERTY_DOMAIN_ANATOMY, WLZ_EMAP_PROPERTY_DOMAIN_OTHER, WLZ_EMAP_PROPERTY_DUMMY, WLZ_EMAP_PROPERTY_GREY_MODEL, WLZ_EMAP_PROPERTY_GREY_OTHER, WLZ_EMAP_PROPERTY_TRANSFORM, WLZ_ERR_NONE, WLZ_ERR_OBJECT_NULL, and WLZ_ERR_PROPERTY_TYPE.

◆ WlzStringToEMAPPropertyType()

WlzEMAPPropertyType WlzStringToEMAPPropertyType ( const char *  pStr,
WlzErrorNum dstErr 
)

Finds an enumerated type for the given EMAP property type string.

Returns
EMAP property type which will be WLZ_EMAP_PROPERTY_DUMMY if no matching type is found..
Parameters
pStrGiven property type string.
dstErrDestination error pointer, may be null.

References WLZ_EMAP_PROPERTY_DOMAIN_ANATOMY, WLZ_EMAP_PROPERTY_DOMAIN_OTHER, WLZ_EMAP_PROPERTY_DUMMY, WLZ_EMAP_PROPERTY_GREY_MODEL, WLZ_EMAP_PROPERTY_GREY_OTHER, WLZ_EMAP_PROPERTY_TRANSFORM, WLZ_ERR_NONE, WLZ_ERR_PROPERTY_TYPE, and WlzStringMatchValue().

◆ WlzStringFromTransformType()

const char* WlzStringFromTransformType ( WlzTransformType  tType,
WlzErrorNum dstErr 
)

◆ WlzStringToTransformType()

◆ WlzStringFromMeshGenMethod()

const char* WlzStringFromMeshGenMethod ( WlzMeshGenMethod  mtd,
WlzErrorNum dstErr 
)

Finds a string for the given mesh generation method.

Returns
Pointer to read only string or NULL on error.
Parameters
mtdGiven mesh generation method.
dstErrDestination error pointer, may be null.

References WLZ_ERR_NONE, WLZ_ERR_PARAM_DATA, WLZ_MESH_GENMETHOD_BLOCK, WLZ_MESH_GENMETHOD_CONFORM, and WLZ_MESH_GENMETHOD_GRADIENT.

◆ WlzStringToMeshGenMethod()

WlzMeshGenMethod WlzStringToMeshGenMethod ( const char *  tStr,
WlzErrorNum dstErr 
)

Finds an enumerated type for the given mesh generation method.

Returns
Woolz mesh generation method.
Parameters
tStrGiven mesh generation string.
dstErrDestination error pointer, may be null.

References WLZ_ERR_NONE, WLZ_ERR_TRANSFORM_TYPE, WLZ_MESH_GENMETHOD_BLOCK, WLZ_MESH_GENMETHOD_CONFORM, WLZ_MESH_GENMETHOD_GRADIENT, and WlzStringMatchValue().

◆ WlzStringToFnType()

WlzFnType WlzStringToFnType ( const char *  tStr,
WlzErrorNum dstErr 
)

Finds an enumerated type for the given function type.

Returns
Woolz function type.
Parameters
tStrGiven function type string.
dstErrDestination error pointer, may be null.

References WLZ_ERR_NONE, WLZ_ERR_TRANSFORM_TYPE, WLZ_FN_BASIS_2DCONF_POLY, WLZ_FN_BASIS_2DGAUSS, WLZ_FN_BASIS_2DIMQ, WLZ_FN_BASIS_2DMQ, WLZ_FN_BASIS_2DPOLY, WLZ_FN_BASIS_2DTPS, WLZ_FN_BASIS_3DCONF_POLY, WLZ_FN_BASIS_3DGAUSS, WLZ_FN_BASIS_3DIMQ, WLZ_FN_BASIS_3DMOS, WLZ_FN_BASIS_3DMQ, WLZ_FN_BASIS_3DPOLY, WLZ_FN_BASIS_3DTPS, WLZ_FN_BASIS_SCALAR_3DMOS, and WlzStringMatchValue().

◆ WlzStringFromFnType()

const char* WlzStringFromFnType ( WlzFnType  fn,
WlzErrorNum dstErr 
)

Finds a string for the given function type.

Returns
Pointer to read only string or NULL on error.
Parameters
fnGiven function type.
dstErrDestination error pointer, may be null.

References WLZ_ERR_NONE, WLZ_ERR_PARAM_DATA, WLZ_FN_BASIS_2DCONF_POLY, WLZ_FN_BASIS_2DGAUSS, WLZ_FN_BASIS_2DIMQ, WLZ_FN_BASIS_2DMQ, WLZ_FN_BASIS_2DPOLY, WLZ_FN_BASIS_2DTPS, WLZ_FN_BASIS_3DCONF_POLY, WLZ_FN_BASIS_3DGAUSS, WLZ_FN_BASIS_3DIMQ, WLZ_FN_BASIS_3DMOS, WLZ_FN_BASIS_3DMQ, WLZ_FN_BASIS_3DPOLY, WLZ_FN_BASIS_3DTPS, and WLZ_FN_BASIS_SCALAR_3DMOS.

◆ WlzStringFromGMModelType()

const char* WlzStringFromGMModelType ( WlzGMModelType  mType,
WlzErrorNum dstErr 
)

Finds a string for the given transform type.

Returns
Pointer to read only string or NULL on error.
Parameters
mTypeGiven model type.
dstErrDestination error pointer, may be null.

References WLZ_ERR_DOMAIN_TYPE, WLZ_ERR_NONE, WLZ_GMMOD_2D, WLZ_GMMOD_2I, WLZ_GMMOD_2N, WLZ_GMMOD_3D, WLZ_GMMOD_3I, and WLZ_GMMOD_3N.

◆ WlzStringToGMModelType()

WlzGMModelType WlzStringToGMModelType ( const char *  tStr,
WlzErrorNum dstErr 
)

Finds an enumerated type for the given GM model type string.

Returns
Woolz GM model type.
Parameters
tStrGiven GM Model type string.
dstErrDestination error pointer, may be null.

References WLZ_ERR_DOMAIN_TYPE, WLZ_ERR_NONE, WLZ_GMMOD_2D, WLZ_GMMOD_2I, WLZ_GMMOD_2N, WLZ_GMMOD_3D, WLZ_GMMOD_3I, WLZ_GMMOD_3N, and WlzStringMatchValue().

◆ WlzStringFromGreyType()

const char* WlzStringFromGreyType ( WlzGreyType  gType,
WlzErrorNum dstErr 
)

Finds a string for the given grey type.

Returns
Pointer to read only string or NULL on error.
Parameters
gTypeGiven grey type.
dstErrDestination error pointer, may be null.

References WLZ_ERR_GREY_TYPE, WLZ_ERR_NONE, WLZ_GREY_DOUBLE, WLZ_GREY_FLOAT, WLZ_GREY_INT, WLZ_GREY_RGBA, WLZ_GREY_SHORT, and WLZ_GREY_UBYTE.

◆ WlzStringToGreyType()

WlzGreyType WlzStringToGreyType ( const char *  gStr,
WlzErrorNum dstErr 
)

Finds an enumerated type for the given grey type string.

Returns
Woolz grey type or WLZ_GREY_ERROR on error.
Parameters
gStrGiven grey type string.
dstErrDestination error pointer, may be null.

References WLZ_ERR_GREY_TYPE, WLZ_ERR_NONE, WLZ_GREY_DOUBLE, WLZ_GREY_ERROR, WLZ_GREY_FLOAT, WLZ_GREY_INT, WLZ_GREY_RGBA, WLZ_GREY_SHORT, WLZ_GREY_UBYTE, and WlzStringMatchValue().

◆ WlzStringFromVertexType()

const char* WlzStringFromVertexType ( WlzVertexType  vType,
WlzErrorNum dstErr 
)

Finds a string for the given vertex type.

Returns
Pointer to read only string or NULL on error.
Parameters
vTypeGiven vertex type.
dstErrDestination error pointer, may be null.

References WLZ_ERR_NONE, WLZ_ERR_PARAM_TYPE, WLZ_VERTEX_D2, WLZ_VERTEX_D3, WLZ_VERTEX_F2, WLZ_VERTEX_F3, WLZ_VERTEX_I2, WLZ_VERTEX_I3, WLZ_VERTEX_L2, and WLZ_VERTEX_L3.

◆ WlzStringToVertexType()

WlzVertexType WlzStringToVertexType ( const char *  vStr,
WlzErrorNum dstErr 
)

Finds an enumerated type for the given vertex type string.

Returns
Woolz vertex type or WLZ_VERTEX_ERROR on error.
Parameters
vStrGiven vertex type string.
dstErrDestination error pointer, may be null.

References WLZ_ERR_NONE, WLZ_ERR_PARAM_TYPE, WLZ_VERTEX_D2, WLZ_VERTEX_D3, WLZ_VERTEX_ERROR, WLZ_VERTEX_F2, WLZ_VERTEX_F3, WLZ_VERTEX_I2, WLZ_VERTEX_I3, WLZ_VERTEX_L2, WLZ_VERTEX_L3, and WlzStringMatchValue().

◆ WlzStringFromInterpolationType()

const char* WlzStringFromInterpolationType ( WlzInterpolationType  iType,
WlzErrorNum dstErr 
)

Finds a string for the given interpolation type.

Returns
Pointer to read only string or NULL on error.
Parameters
iTypeGiven interpolation type.
dstErrDestination error pointer, may be null.

References WLZ_ERR_NONE, WLZ_ERR_PARAM_DATA, WLZ_INTERPOLATION_CALLBACK, WLZ_INTERPOLATION_CLASSIFY_1, WLZ_INTERPOLATION_LINEAR, and WLZ_INTERPOLATION_NEAREST.

◆ WlzStringToInterpolationType()

WlzInterpolationType WlzStringToInterpolationType ( const char *  iStr,
WlzErrorNum dstErr 
)

Finds an enumerated type for the given interpolation type string.

Returns
Woolz interpolation type.
Parameters
iStrGiven interpolation type string.
dstErrDestination error pointer, may be null.

References WLZ_ERR_NONE, WLZ_ERR_PARAM_DATA, WLZ_INTERPOLATION_CALLBACK, WLZ_INTERPOLATION_CLASSIFY_1, WLZ_INTERPOLATION_LINEAR, WLZ_INTERPOLATION_NEAREST, and WlzStringMatchValue().

◆ WlzStringFromValueAttachType()

const char* WlzStringFromValueAttachType ( WlzValueAttach  at,
WlzErrorNum dstErr 
)

Finds a string for the given values attachment type.

Returns
Pointer to read only string or NULL on error.
Parameters
atGiven values attachment type.
dstErrDestination error pointer, may be null.

◆ WlzStringToValuesAttachType()

WlzValueAttach WlzStringToValuesAttachType ( const char *  aStr,
WlzErrorNum dstErr 
)

Finds an enumerated type for the given values attachment type string.

Returns
Woolz values attachment type.
Parameters
aStrGiven values attachment type string.
dstErrDestination error pointer, may be null.

◆ WlzStringFromThreeDViewMode()

const char* WlzStringFromThreeDViewMode ( WlzThreeDViewMode  vMode,
WlzErrorNum dstErr 
)

Finds a string for the given 3D view mode.

Returns
Pointer to read only string or NULL on error.
Parameters
vModeGiven 3D view mode.
dstErrDestination error pointer, may be null.

References WLZ_ERR_NONE, WLZ_ERR_PARAM_DATA, WLZ_FIXED_LINE_MODE, WLZ_STATUE_MODE, WLZ_UP_IS_UP_MODE, WLZ_ZERO_ZETA_MODE, and WLZ_ZETA_MODE.

◆ WlzStringFromRCC()

const char* WlzStringFromRCC ( WlzRCCClass  cls,
WlzErrorNum dstErr 
)

Finds a string for the given region connected calculus class.

Returns
Pointer to read only string or NULL on error.
Parameters
clsGiven RCC class.
dstErrDestination error pointer, may be null.

References WLZ_ERR_NONE, WLZ_ERR_PARAM_DATA, WLZ_RCC_DC, WLZ_RCC_EC, WLZ_RCC_EMPTY, WLZ_RCC_ENC, WLZ_RCC_ENCI, WLZ_RCC_EQ, WLZ_RCC_NTPP, WLZ_RCC_NTPPI, WLZ_RCC_NTSUR, WLZ_RCC_NTSURI, WLZ_RCC_OST, WLZ_RCC_PO, WLZ_RCC_TPP, WLZ_RCC_TPPI, WLZ_RCC_TSUR, and WLZ_RCC_TSURI.

◆ WlzStringFromMarkerType()

const char* WlzStringFromMarkerType ( WlzMarkerType  mType,
WlzErrorNum dstErr 
)

Finds a string for the given values attachment type.

Returns
Pointer to read only string or NULL on error.
Parameters
mTypeGiven values attachment type.
dstErrDestination error pointer, may be null.

References WLZ_ERR_NONE, WLZ_ERR_PARAM_DATA, WLZ_MARKER_NONE, WLZ_MARKER_POINT, and WLZ_MARKER_SPHERE.

◆ WlzStringFromErrorNum()

const char* WlzStringFromErrorNum ( WlzErrorNum  wlzErr,
const char **  dstMsgStr 
)

Finds a string for the given error.

Returns
Pointer to read only string or NULL on error.
Parameters
wlzErrGiven error code.
dstMsgStrDestination pointer for a 'meaningful' message string, may be NULL.

References WLZ_ERR_ALG, WLZ_ERR_ALG_CONDITION, WLZ_ERR_ALG_CONVERGENCE, WLZ_ERR_ALG_HOMOGENEOUS, WLZ_ERR_ALG_NONGLOBAL, WLZ_ERR_ALG_SINGULAR, WLZ_ERR_BINARY_OPERATOR_TYPE, WLZ_ERR_COLUMN_DATA, WLZ_ERR_COMPTHRESH_TYPE, WLZ_ERR_CONNECTIVITY_TYPE, WLZ_ERR_DEGENERATE, WLZ_ERR_DOMAIN_DATA, WLZ_ERR_DOMAIN_NULL, WLZ_ERR_DOMAIN_TYPE, WLZ_ERR_DOUBLE_DATA, WLZ_ERR_EOO, WLZ_ERR_FILE_FORMAT, WLZ_ERR_FILE_OPEN, WLZ_ERR_FLOAT_DATA, WLZ_ERR_GMELM_DATA, WLZ_ERR_GMELM_NULL, WLZ_ERR_GMELM_TYPE, WLZ_ERR_GREY_DATA, WLZ_ERR_GREY_TYPE, WLZ_ERR_IMAGE_TYPE, WLZ_ERR_INT_DATA, WLZ_ERR_INTERPOLATION_TYPE, WLZ_ERR_INTERVAL_ADJACENT, WLZ_ERR_INTERVAL_BOUND, WLZ_ERR_INTERVAL_DATA, WLZ_ERR_INTERVAL_NULL, WLZ_ERR_INTERVAL_NUMBER, WLZ_ERR_INTERVALDOMAIN_NULL, WLZ_ERR_INTERVALDOMAIN_TYPE, WLZ_ERR_INTERVALLINE_NULL, WLZ_ERR_LINE_DATA, WLZ_ERR_LINKCOUNT_DATA, WLZ_ERR_MEM_ALLOC, WLZ_ERR_MEM_FREE, WLZ_ERR_NONE, WLZ_ERR_OBJECT_DATA, WLZ_ERR_OBJECT_NULL, WLZ_ERR_OBJECT_TYPE, WLZ_ERR_PARAM_DATA, WLZ_ERR_PARAM_NULL, WLZ_ERR_PARAM_TYPE, WLZ_ERR_PLANE_DATA, WLZ_ERR_PLANEDOMAIN_DATA, WLZ_ERR_PLANEDOMAIN_TYPE, WLZ_ERR_POLYGON_TYPE, WLZ_ERR_PROPERTY_NULL, WLZ_ERR_RASTERDIR_TYPE, WLZ_ERR_READ_EOF, WLZ_ERR_READ_INCOMPLETE, WLZ_ERR_SHORT_DATA, WLZ_ERR_TRANSFORM_DATA, WLZ_ERR_TRANSFORM_NULL, WLZ_ERR_TRANSFORM_TYPE, WLZ_ERR_UBYTE_DATA, WLZ_ERR_UNIMPLEMENTED, WLZ_ERR_UNSPECIFIED, WLZ_ERR_VALUES_DATA, WLZ_ERR_VALUES_NULL, WLZ_ERR_VALUES_TYPE, WLZ_ERR_VOXELVALUES_TYPE, WLZ_ERR_WRITE_EOF, and WLZ_ERR_WRITE_INCOMPLETE.

◆ WlzStringToErrorNum()

WlzErrorNum WlzStringToErrorNum ( const char *  errStr)

Finds an error number for the given error number string.

Returns
Matched error number.
Parameters
errStrGiven error number string.

References WLZ_ERR_ALG, WLZ_ERR_ALG_CONVERGENCE, WLZ_ERR_ALG_HOMOGENEOUS, WLZ_ERR_ALG_NONGLOBAL, WLZ_ERR_ALG_SINGULAR, WLZ_ERR_BINARY_OPERATOR_TYPE, WLZ_ERR_COLUMN_DATA, WLZ_ERR_COMPTHRESH_TYPE, WLZ_ERR_CONNECTIVITY_TYPE, WLZ_ERR_DEGENERATE, WLZ_ERR_DOMAIN_DATA, WLZ_ERR_DOMAIN_NULL, WLZ_ERR_DOMAIN_TYPE, WLZ_ERR_DOUBLE_DATA, WLZ_ERR_EOO, WLZ_ERR_FILE_FORMAT, WLZ_ERR_FILE_OPEN, WLZ_ERR_FLOAT_DATA, WLZ_ERR_GMELM_DATA, WLZ_ERR_GMELM_NULL, WLZ_ERR_GMELM_TYPE, WLZ_ERR_GREY_DATA, WLZ_ERR_GREY_TYPE, WLZ_ERR_IMAGE_TYPE, WLZ_ERR_INT_DATA, WLZ_ERR_INTERPOLATION_TYPE, WLZ_ERR_INTERVAL_ADJACENT, WLZ_ERR_INTERVAL_BOUND, WLZ_ERR_INTERVAL_DATA, WLZ_ERR_INTERVAL_NULL, WLZ_ERR_INTERVAL_NUMBER, WLZ_ERR_INTERVALDOMAIN_NULL, WLZ_ERR_INTERVALDOMAIN_TYPE, WLZ_ERR_INTERVALLINE_NULL, WLZ_ERR_LINE_DATA, WLZ_ERR_LINKCOUNT_DATA, WLZ_ERR_MEM_ALLOC, WLZ_ERR_MEM_FREE, WLZ_ERR_NONE, WLZ_ERR_OBJECT_DATA, WLZ_ERR_OBJECT_NULL, WLZ_ERR_OBJECT_TYPE, WLZ_ERR_PARAM_DATA, WLZ_ERR_PARAM_NULL, WLZ_ERR_PARAM_TYPE, WLZ_ERR_PLANE_DATA, WLZ_ERR_PLANEDOMAIN_DATA, WLZ_ERR_PLANEDOMAIN_TYPE, WLZ_ERR_POLYGON_TYPE, WLZ_ERR_PROPERTY_NULL, WLZ_ERR_RASTERDIR_TYPE, WLZ_ERR_READ_EOF, WLZ_ERR_READ_INCOMPLETE, WLZ_ERR_SHORT_DATA, WLZ_ERR_TRANSFORM_DATA, WLZ_ERR_TRANSFORM_NULL, WLZ_ERR_TRANSFORM_TYPE, WLZ_ERR_UBYTE_DATA, WLZ_ERR_UNIMPLEMENTED, WLZ_ERR_UNSPECIFIED, WLZ_ERR_VALUES_DATA, WLZ_ERR_VALUES_NULL, WLZ_ERR_VALUES_TYPE, WLZ_ERR_VOXELVALUES_TYPE, WLZ_ERR_WRITE_EOF, WLZ_ERR_WRITE_INCOMPLETE, and WlzStringMatchValue().

◆ WlzStringMatchValue()

int WlzStringMatchValue ( int *  datum,
const char *  targetStr,
const char *  testStr,
  ... 
)

Given a destination pointer, a string, and a null terminated list of string, enum pairs. The strings are matched and the first match is used to fill in the destination with the matched enum's value.

Returns
Zero if no match found.
Parameters
datumPointer to datum for return.
targetStrString to match.
testStrFirst string of the list.
...NULL terminated varargs list of strings (char *) and enum (int) pairs.

References WLZ_DBG, WLZ_DBG_LVL_3, and WLZ_DBG_LVL_FN.

Referenced by WlzEffBibParseWarpInputThresholdParamsRecord(), WlzEffReadObjIcs(), WlzEffStringExtToFormat(), WlzEffStringToFormat(), WlzStringToEMAPPropertyType(), WlzStringToErrorNum(), WlzStringToFnType(), WlzStringToGMModelType(), WlzStringToGreyType(), WlzStringToInterpolationType(), WlzStringToMarkerType(), WlzStringToMeshGenMethod(), WlzStringToObjDomainType(), WlzStringToObjType(), WlzStringToObjValuesType(), WlzStringToPropertyType(), WlzStringToRCCClass(), WlzStringToScalarFeatureType(), WlzStringToThreeDViewMode(), WlzStringToTransformType(), WlzStringToVertexType(), and WlzWindowFnValue().

◆ WlzValueMatchString()

int WlzValueMatchString ( char **  datum,
int  targetVal,
const char *  testStr,
  ... 
)

Given a destination pointer, a value, and a null terminated list of string, enum pairs. The values are matched and the first match is used to fill in the destination with the matched enum's string.

Returns
Zero if no match found.
Parameters
datumPointer to string for return.
targetValValue to match.
testStrFirst string of the list.
...NULL terminated varargs list of strings (char *) and enum (int) pairs.

Referenced by WlzEffBibWriteWarpInputThresholdParamsRecord().

◆ WlzStringWhiteSpSkip()

char* WlzStringWhiteSpSkip ( char *  str)

Removes all white space characters (as determined by isspace(3)) from the given string.

Returns
The given string.
Parameters
strGiven string.

◆ WlzStringWhiteSpSkipLeading()

char* WlzStringWhiteSpSkipLeading ( char *  str)

Removes all white space characters (as determined by isspace(3)) from the given string.

Returns
The given string.
Parameters
strGiven string.

◆ WlzStringToUpper()

char* WlzStringToUpper ( char *  str)

Converts the string to all upper case using toupper(3).

Returns
The given string.
Parameters
strGiven string.

◆ WlzStringToLower()

char* WlzStringToLower ( char *  str)

Converts the string to all lower case using tolower(3).

Returns
The given string.
Parameters
strGiven string.