Switch to unified view

a/src/utils/transcode.h b/src/utils/transcode.h
...
...
14
 *   Free Software Foundation, Inc.,
14
 *   Free Software Foundation, Inc.,
15
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
15
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
16
 */
16
 */
17
#ifndef _TRANSCODE_H_INCLUDED_
17
#ifndef _TRANSCODE_H_INCLUDED_
18
#define _TRANSCODE_H_INCLUDED_
18
#define _TRANSCODE_H_INCLUDED_
19
/* @(#$Id: transcode.h,v 1.4 2006-03-29 11:18:15 dockes Exp $  (C) 2004 J.F.Dockes */
19
/* @(#$Id: transcode.h,v 1.5 2008-10-09 09:19:23 dockes Exp $  (C) 2004 J.F.Dockes */
20
/** 
20
/** 
21
 * A very minimal c++ized interface to iconv
21
 * 
22
 */
22
 */
23
#include <string>
23
#include <string>
24
24
/**
25
 * c++ized interface to iconv
26
 *
27
 * @param in input string
28
 * @param out output string
29
 * @param icode input encoding
30
 * @param ocode input encoding
31
 * @param ecnt (output) number of transcoding errors
32
 * @return true if transcoding succeeded, even with errors. False for global
33
 *     errors like unknown charset names
34
 */
25
extern bool transcode(const std::string &in, std::string &out, 
35
extern bool transcode(const std::string &in, std::string &out, 
26
              const std::string &icode,
36
              const std::string &icode,
27
              const std::string &ocode, 
37
              const std::string &ocode, 
28
              int *ecnt = 0);
38
              int *ecnt = 0);
29
39