MHEG5  15.3.0
source/core/inc/mh5parse.h File Reference

string parsing utility functions for MHEG5 More...

#include "mh5base.h"
#include "mherrors.h"
#include "dvblocator.h"

Go to the source code of this file.

Functions

MHEG5Bool MHEG5parseDvbUrl (U8BIT *buffer, U32BIT length, S_DVB_LOCATOR *dvb_loc)
 Parse a DAVIC style multiplex reference or UK-DTT inherritance format URL. This can be one of the following forms: rec://svc/cur rec://svc/def rec://svc/lcn/# dvb://original_network_id.[transport_stream_id].service_id[.*].
int MHEG5parseLcn (U8BIT *buf, U8BIT *end)
MHEG5Bool MHEG5parseEncodeQPrintable (MHEG5Byte **buffer, MHEG5Int *used, MHEG5Int *allocated, MHEG5Generic *value)
 Add a value to the buffer. The value is QPrintable-encoded, which means that printable characters are copied without change, and non-printable characters (along with '=' and ''') are encoded using the equal sign and two hexadecimal digits characters which hold the numerical representation of the character in ASCII. For example, a carriage-return character is encoded as '=0D'.

Detailed Description

string parsing utility functions for MHEG5

Date:
11/11/2009
Author:
Adam Sturtridge

Function Documentation

MHEG5Bool MHEG5parseDvbUrl ( U8BIT *  buffer,
U32BIT  length,
S_DVB_LOCATOR dvb_loc 
)

Parse a DAVIC style multiplex reference or UK-DTT inherritance format URL. This can be one of the following forms: rec://svc/cur rec://svc/def rec://svc/lcn/# dvb://original_network_id.[transport_stream_id].service_id[.*].

Parameters:
bufferPointer to character buffer containing the URL string
lengthLength of character buffer
multiplexRefMultiplex reference extracted from the URL string
Returns:
MHEG5TRUE if URL could be decoded, else MHEG5FALSE
MHEG5Bool MHEG5parseEncodeQPrintable ( MHEG5Byte **  buffer,
MHEG5Int *  used,
MHEG5Int *  allocated,
MHEG5Generic value 
)

Add a value to the buffer. The value is QPrintable-encoded, which means that printable characters are copied without change, and non-printable characters (along with '=' and ''') are encoded using the equal sign and two hexadecimal digits characters which hold the numerical representation of the character in ASCII. For example, a carriage-return character is encoded as '=0D'.

Parameters:
bufferBuffer to add the value to
usedNumber of characters used in the buffer
allocatedNumber of characters allocated for the buffer
valueThe value to append
Returns:
MHEG5TRUE if the value was added, MHEG5FALSE otherwise
 All Data Structures Files Functions Variables Typedefs Defines