Woolz Image Processing Version 1.4.0
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.
const char * WlzStringFromObjTypeValue (WlzObjectType objType, WlzErrorNum *dstErr)
 Finds a string for the given object type.
WlzObjectType WlzStringToObjType (const char *oTypeStr, WlzErrorNum *dstErr)
 Finds an enumerated type for the given object type string.
const char * WlzStringFromObjDomainType (WlzObject *obj, WlzErrorNum *dstErr)
 Finds a string for the given object's domain type.
WlzObjectType WlzStringToObjDomainType (const char *oDomTypeStr, WlzErrorNum *dstErr)
 Finds an enumerated type for the given object domain type string.
const char * WlzStringFromObjValuesType (WlzObject *obj, WlzErrorNum *dstErr)
 Finds a string for the given object's values type.
WlzObjectType WlzStringToObjValuesType (const char *oValTypeStr, WlzErrorNum *dstErr)
 Finds an enumerated type for the given object values type string.
const char * WlzStringFromScalarFeatureType (WlzScalarFeatureType fType, WlzErrorNum *dstErr)
 Finds a string for the given scalar feature type.
const char * WlzStringFromPropertyType (WlzProperty prop, WlzErrorNum *dstErr)
 Finds a string for the given property's type.
WlzObjectType WlzStringToPropertyType (const char *pStr, WlzErrorNum *dstErr)
 Finds an enumerated type for the given property type string.
const char * WlzStringFromEMAPPropertyType (WlzEMAPProperty *eProp, WlzErrorNum *dstErr)
 Finds a string for the given EMAP property's type.
WlzEMAPPropertyType WlzStringToEMAPPropertyType (const char *pStr, WlzErrorNum *dstErr)
 Finds an enumerated type for the given EMAP property type string.
const char * WlzStringFromTransformType (WlzTransformType tType, WlzErrorNum *dstErr)
 Finds a string for the given transform type.
WlzTransformType WlzStringToTransformType (const char *tStr, WlzErrorNum *dstErr)
 Finds an enumerated type for the given transform type string.
const char * WlzStringFromMeshGenMethod (WlzMeshGenMethod mtd, WlzErrorNum *dstErr)
 Finds a string for the given mesh generation method.
WlzMeshGenMethod WlzStringToMeshGenMethod (const char *tStr, WlzErrorNum *dstErr)
 Finds an enumerated type for the given mesh generation method.
WlzFnType WlzStringToFnType (const char *tStr, WlzErrorNum *dstErr)
 Finds an enumerated type for the given function type.
const char * WlzStringFromFnType (WlzFnType fn, WlzErrorNum *dstErr)
 Finds a string for the given function type.
const char * WlzStringFromGMModelType (WlzGMModelType mType, WlzErrorNum *dstErr)
 Finds a string for the given transform type.
WlzGMModelType WlzStringToGMModelType (const char *tStr, WlzErrorNum *dstErr)
 Finds an enumerated type for the given GM model type string.
const char * WlzStringFromGreyType (WlzGreyType gType, WlzErrorNum *dstErr)
 Finds a string for the given grey type.
WlzGreyType WlzStringToGreyType (const char *gStr, WlzErrorNum *dstErr)
 Finds an enumerated type for the given grey type string.
const char * WlzStringFromInterpolationType (WlzInterpolationType iType, WlzErrorNum *dstErr)
 Finds a string for the given interpolation type.
WlzInterpolationType WlzStringToInterpolationType (const char *iStr, WlzErrorNum *dstErr)
 Finds an enumerated type for the given interpolation type string.
const char * WlzStringFromValueAttachType (WlzValueAttach at, WlzErrorNum *dstErr)
 Finds a string for the given values attachment type.
WlzValueAttach WlzStringToValuesAttachType (const char *aStr, WlzErrorNum *dstErr)
 Finds an enumerated type for the given values attachment type string.
const char * WlzStringFromThreeDViewMode (WlzThreeDViewMode vMode, WlzErrorNum *dstErr)
 Finds a string for the given 3D view mode.
const char * WlzStringFromMarkerType (WlzMarkerType mType, WlzErrorNum *dstErr)
 Finds a string for the given values attachment type.
const char * WlzStringFromErrorNum (WlzErrorNum wlzErr, const char **dstMsgStr)
 Finds a string for the given error.
WlzErrorNum WlzStringToErrorNum (const char *errStr)
 Finds an error number for the given error number string.
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.
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.
char * WlzStringWhiteSpSkip (char *str)
 Removes all white space characters (as determined by isspace(3)) from the given string.
char * WlzStringToUpper (char *str)
 Converts the string to all upper case using toupper(3).
char * WlzStringToLower (char *str)
 Converts the string to all lower case using tolower(3).

Function Documentation

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().

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().

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.

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.

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().

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.

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().

const char* WlzStringFromTransformType ( WlzTransformType  tType,
WlzErrorNum dstErr 
)
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.

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().

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().

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.

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.

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().

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.

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().

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.

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().

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:
iTypeGiven values attachment type.
dstErrDestination error pointer, may be null.

References WLZ_ERR_NONE, WLZ_ERR_PARAM_DATA, WLZ_VALUE_ATTACH_ELM, WLZ_VALUE_ATTACH_NOD, and WLZ_VALUE_ATTACH_NONE.

WlzValueAttach WlzStringToValuesAttachType ( const char *  aStr,
WlzErrorNum dstErr 
)

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

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

References WLZ_ERR_NONE, WLZ_ERR_PARAM_DATA, WLZ_VALUE_ATTACH_ELM, WLZ_VALUE_ATTACH_NOD, WLZ_VALUE_ATTACH_NONE, and WlzStringMatchValue().

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.

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:
iTypeGiven 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.

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_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.

Referenced by main().

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_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().

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 main(), WlzEffBibParseWarpInputThresholdParamsRecord(), WlzEffReadObjIcs(), WlzEffStringExtToFormat(), WlzEffStringToFormat(), WlzStringToEMAPPropertyType(), WlzStringToErrorNum(), WlzStringToFnType(), WlzStringToGMModelType(), WlzStringToGreyType(), WlzStringToInterpolationType(), WlzStringToMarkerType(), WlzStringToMeshGenMethod(), WlzStringToObjDomainType(), WlzStringToObjType(), WlzStringToObjValuesType(), WlzStringToPropertyType(), WlzStringToScalarFeatureType(), WlzStringToThreeDViewMode(), WlzStringToTransformType(), WlzStringToValuesAttachType(), and WlzWindowFnValue().

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().

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.
char* WlzStringToUpper ( char *  str)

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

Returns:
The given string.
Parameters:
strGiven string.
char* WlzStringToLower ( char *  str)

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

Returns:
The given string.
Parameters:
strGiven string.