Allocates and initializes a string formatted by user-defined tags.
- Template Parameters
-
- Parameters
-
[in] | lpszTagFormat | is a zero-terminated string specifying format using tag words placed within brackets, e.g. <tag>. The text outside of tags is copied to the formatted output. |
| cNumberOfTagsPresent | is a number of different tags specified in the format string which is equal to a number of elements in the pTagsParams array of TAG_DESCRIPTION_PARAM structures. |
[in] | pTagsParams | is an array of TAG_DESCRIPTION_PARAM structures specialized for CHAR_TYPE template parameter and containing information for the parser to retrieve strings associated with each tag and to replace the tag in the input by it. |
- Returns
- On success the function returns a pointer to the allocated memory holding the string constructed according to the specified format. The returned string buffer must be freed using one of the free functions defined in the Chusov::Memory or Chusov::String namespaces. On failure the function returns NULL. Use GetLastChsvError function to get extended error information.
- See also
- AllocateAndFormatStringByTagsV;
AllocateAndFormatStringByTags;
AllocateString;
AllocateAndFormatString;
FreeString;
SecureFreeString.