diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 1997-10-17 18:00:00 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 1997-10-17 18:00:00 -0400 |
commit | cbcc3a1e1a82b01eea370bf7841e6b5f4d1e46c1 (patch) | |
tree | 2df907a422b75fb41590f113d3a0a3365bc667be /WWW/Library/Implementation/UCAux.h | |
parent | 1d80538b4b84eadd223c7b61839b950389c2d49d (diff) | |
download | lynx-snapshots-cbcc3a1e1a82b01eea370bf7841e6b5f4d1e46c1.tar.gz |
snapshot of project "lynx", label v2-7-1ac_0-84
Diffstat (limited to 'WWW/Library/Implementation/UCAux.h')
-rw-r--r-- | WWW/Library/Implementation/UCAux.h | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/WWW/Library/Implementation/UCAux.h b/WWW/Library/Implementation/UCAux.h index ffe0a652..a21521c4 100644 --- a/WWW/Library/Implementation/UCAux.h +++ b/WWW/Library/Implementation/UCAux.h @@ -1,9 +1,25 @@ #ifndef UCAUX_H #define UCAUX_H -extern BOOL UCCanUniTranslateFrom PARAMS((int from)); -extern BOOL UCCanTranslateUniTo PARAMS((int to)); -extern BOOL UCCanTranslateFromTo PARAMS((int from, int to)); +/* + * A type for a "Translation Quality" (actually, Transcoding Quality). + * This is a fuzzy concept since we are just looking at the charset + * not what characters are actually there, so it's just a guess for + * "common" cases. TQ_NO must be 0 since callers of functions that + * return this type may treat result as a boolean flag. + * The functions returning this type could be improved to use more + * knowledge from the translation tables. + */ +typedef enum { + TQ_NO = 0, /* must be 0 */ + TQ_POOR = 1, + TQ_GOOD = 2, + TQ_EXCELLENT = 3 +} UCTQ_t; + +extern UCTQ_t UCCanUniTranslateFrom PARAMS((int from)); +extern UCTQ_t UCCanTranslateUniTo PARAMS((int to)); +extern UCTQ_t UCCanTranslateFromTo PARAMS((int from, int to)); extern BOOL UCNeedNotTranslate PARAMS((int from, int to)); struct _UCTransParams |