30 #include <mix/Types.h>
47 #define TRANS_BIG_ENDIAN "sparc,mc68k,power,bigend"
48 #define TRANS_LITTLE_ENDIAN "intel86,vax11,litend"
49 #define TRANS_IBM_S360 "ibm360"
72 UnsInt1 byte[
sizeof(Real4)];
107 UnsInt1 byte[
sizeof(Real8)];
156 void trans_endian_8b (
void* pInPlace);
159 void trans_endian_4b (
void* pInPlace);
162 void trans_endian_2b (
void* pInPlace);
165 ByteOrder trans_smart ();
168 const char* trans_to_string (ByteOrder trans_type);
169 ByteOrder string_to_trans (
const char* str);
172 const char* textenc_to_label (TextEncoding textenc);
173 const char* textenc_to_string (TextEncoding textenc);
174 TextEncoding string_to_textenc (
const char* str);
177 AtomType textenc_atom (TextEncoding textenc);
190 void trans_Real4_to_struct (
const void* pValue, ByteOrder eFloatArch,
195 void trans_struct_to_Real4 (
void* pValue, ByteOrder eFloatArch,
205 void trans_Real8_to_struct (
const void* pValue, ByteOrder eFloatArch,
210 void trans_struct_to_Real8 (
void* pValue, ByteOrder eFloatArch,
230 TextEncoding lang_to_textenc (
const char* lang);
233 const char* textenc_to_lang (TextEncoding textenc);
243 int trans_one_Real4 (ByteOrder trans_target, ByteOrder trans_source,
248 int trans_one_Real8 (ByteOrder trans_target, ByteOrder trans_source,
251 #ifdef CompilerIs64bitReady
253 int trans_one_Int8 (ByteOrder trans_target, ByteOrder trans_source,
258 int trans_one_Int4 (ByteOrder trans_target, ByteOrder trans_source,
262 int trans_one_Int2 (ByteOrder trans_target, ByteOrder trans_source,
266 int trans_one_Int1 (ByteOrder trans_target, ByteOrder trans_source,
270 int trans_one_Char (TextEncoding trans_target, TextEncoding trans_source,
274 int trans_one_Char2 (ByteOrder trans_target, ByteOrder trans_source,
285 int trans_many_Real4 (ByteOrder trans_target,
void* pTarget,
286 ByteOrder trans_source,
const void* pSource,
287 unsigned long count);
291 int trans_many_Real8 (ByteOrder trans_target,
void* pTarget,
292 ByteOrder trans_source,
const void* pSource,
293 unsigned long count);
295 #ifdef CompilerIs64bitReady
297 int trans_many_Int8 (ByteOrder trans_target,
void* pTarget,
298 ByteOrder trans_source,
const void* pSource,
299 unsigned long count);
303 int trans_many_Int4 (ByteOrder trans_target,
void* pTarget,
304 ByteOrder trans_source,
const void* pSource,
305 unsigned long count);
308 int trans_many_Int2 (ByteOrder trans_target,
void* pTarget,
309 ByteOrder trans_source,
const void* pSource,
310 unsigned long count);
313 int trans_many_Int1 (ByteOrder trans_target,
void* pTarget,
314 ByteOrder trans_source,
const void* pSource,
315 unsigned long count);
318 int trans_many_Char2 (ByteOrder trans_target,
void* pTarget,
319 ByteOrder trans_source,
const void* pSource,
320 unsigned long count);
323 int trans_many_Char (TextEncoding trans_target,
void* pTarget,
324 TextEncoding trans_source,
const void* pSource,
325 unsigned long count);
333 int trans_numbers (AtomType atom_type,
334 ByteOrder trans_target,
void* pTarget,
335 ByteOrder trans_source,
const void* pSource,
336 unsigned long count);
339 int trans_string (TextEncoding trans_target, Char* szTarget,
340 TextEncoding trans_source,
const Char* szSource);
349 int trans_get_Char2 (TextEncoding c2enc, Char2* c2symbol,
353 int trans_put_Char2 (TextEncoding c2enc, Char* mbs,