File: dvbtext.h

package info (click to toggle)
dvbstreamer 2.1.0-5.8
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 5,676 kB
  • sloc: ansic: 42,193; sh: 10,230; python: 519; makefile: 363
file content (47 lines) | stat: -rwxr-xr-x 1,525 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
Copyright (C) 2006  Adam Charrett

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA

dvbtext.h

DVB Text Conversion functions.

*/
#ifndef _DVBTEXT_H
#define _DVBTEXT_H
#include <sys/types.h>

/**
 * @addtogroup TextConversion Text Conversion
 * @{
 */

/**
 * Converts the supplied string to UTF-8. The input string should be in DVB 
 * format (see ETSI EN 300 468 Annex A2).
 * The returned pointer is to a static buffer that will be reused by future calls
 * to this method so the calling function should copy out the contents before calling 
 * this function again.
 *
 * @param toConvert The string to convert to UTF-8.
 * @param toConvertLen The length of the string to convert.
 * @return A pointer to a buffer containing the input string in UTF-8 format, or 
 *         NULL if the conversion failed.
 */
char *DVBTextToUTF8(char *toConvert, size_t toConvertLen);
/** @} */
#endif