File: charset.h

package info (click to toggle)
slrn 1.0.3+dfsg-3
  • links: PTS
  • area: main
  • in suites: bullseye, sid
  • size: 6,412 kB
  • sloc: ansic: 39,852; sh: 3,777; perl: 467; makefile: 229; sed: 24
file content (27 lines) | stat: -rw-r--r-- 1,154 bytes parent folder | download | duplicates (5)
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
#ifndef _SLRN_CHARSET_H
#define _SLRN_CHARSET_H

extern void slrn_init_charset(void);
extern void slrn_prepare_charset(void);

/* returns a malloced pointer */
extern char *slrn_guess_charset (char *str, char *strmax);

extern int slrn_string_nonascii(char *str);

extern char *slrn_convert_string (char *from, char *str, char *strmax, char *to, int test);

extern char *slrn_convert_substring(char *str, unsigned int offset, unsigned int len, char *to_charset, char *from_charset, int test);
extern int slrn_test_and_convert_string(char *str, char **dest, char *to_charset, char *from_charset);
extern int slrn_convert_fprintf(FILE *fp, char *to_charset, char *from_charset, const char *format, ... ) ATTRIBUTE_PRINTF(4,5);

extern int slrn_convert_article(Slrn_Article_Type *a, char *to_charset, char *from_charset);
extern int slrn_test_convert_lines (Slrn_Article_Line_Type *lines, char *to_charset, char *from_charset, char **badlinep);

extern char *Slrn_Config_Charset;
extern char *Slrn_Display_Charset;
extern char *Slrn_Outgoing_Charset;
extern char *Slrn_Editor_Charset;
extern char *Slrn_Fallback_Input_Charset;

#endif /* _SLRN_CHARSET_H */