MCPcopy Index your code
hub / github.com/MapServer/MapServer / msOWSGetEncodeMetadata

Function msOWSGetEncodeMetadata

mapows.c:867–879  ·  view source on GitHub ↗

** msOWSGetEncodeMetadata() ** ** Equivalent to msOWSPrintEncodeMetadata. Returns en encoded value of the ** metadata or the default value. ** Caller should free the returned string. */

Source from the content-addressed store, hash-verified

865** Caller should free the returned string.
866*/
867char *msOWSGetEncodeMetadata(hashTableObj *metadata,
868 const char *namespaces, const char *name,
869 const char *default_value)
870{
871 const char *value;
872 char * pszEncodedValue=NULL;
873 if((value = msOWSLookupMetadata(metadata, namespaces, name)))
874 pszEncodedValue = msEncodeHTMLEntities(value);
875 else if (default_value)
876 pszEncodedValue = msEncodeHTMLEntities(default_value);
877
878 return pszEncodedValue;
879}
880
881
882/*

Calls 2

msOWSLookupMetadataFunction · 0.85
msEncodeHTMLEntitiesFunction · 0.85

Tested by

no test coverage detected