Main Page Modules Class Hierarchy Data Structures File List Data Fields Globals Related Pages

# oscl_string_xml.h File Reference

Utilities to escape special characters in XML strings. More...

`#include "oscl_base.h"`

Go to the source code of this file.

## Functions
OSCL_IMPORT_REF bool | oscl_str_need_escape_xml (const char *str_buf, uint32 &num_escape_bytes, uint32 max_bytes=0)
| Check if the input string contains any special ASCII character like &, <, >, ', ". The function scans the string and check if each character is a special character. It stops at the first NULL character (if max_bytes = 0), or the max_byte value.
OSCL_IMPORT_REF int32 | oscl_str_escape_xml (const char *str_buf_in, char *str_buf_out, uint32 max_out_buf_bytes, uint32 max_bytes=0, uint32 *num_bytes_written=NULL)
| Escape any of the following special characters in the string Special ASCII characters: &, <, >, ', ".

## Detailed Description

Utilities to escape special characters in XML strings.