PostgreSQL Source Code  git master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
cyrillic_and_mic.c File Reference
#include "postgres.h"
#include "fmgr.h"
#include "mb/pg_wchar.h"
Include dependency graph for cyrillic_and_mic.c:

Go to the source code of this file.

Functions

 PG_FUNCTION_INFO_V1 (koi8r_to_mic)
 
 PG_FUNCTION_INFO_V1 (mic_to_koi8r)
 
 PG_FUNCTION_INFO_V1 (iso_to_mic)
 
 PG_FUNCTION_INFO_V1 (mic_to_iso)
 
 PG_FUNCTION_INFO_V1 (win1251_to_mic)
 
 PG_FUNCTION_INFO_V1 (mic_to_win1251)
 
 PG_FUNCTION_INFO_V1 (win866_to_mic)
 
 PG_FUNCTION_INFO_V1 (mic_to_win866)
 
 PG_FUNCTION_INFO_V1 (koi8r_to_win1251)
 
 PG_FUNCTION_INFO_V1 (win1251_to_koi8r)
 
 PG_FUNCTION_INFO_V1 (koi8r_to_win866)
 
 PG_FUNCTION_INFO_V1 (win866_to_koi8r)
 
 PG_FUNCTION_INFO_V1 (win866_to_win1251)
 
 PG_FUNCTION_INFO_V1 (win1251_to_win866)
 
 PG_FUNCTION_INFO_V1 (iso_to_koi8r)
 
 PG_FUNCTION_INFO_V1 (koi8r_to_iso)
 
 PG_FUNCTION_INFO_V1 (iso_to_win1251)
 
 PG_FUNCTION_INFO_V1 (win1251_to_iso)
 
 PG_FUNCTION_INFO_V1 (iso_to_win866)
 
 PG_FUNCTION_INFO_V1 (win866_to_iso)
 
Datum koi8r_to_mic (PG_FUNCTION_ARGS)
 
Datum mic_to_koi8r (PG_FUNCTION_ARGS)
 
Datum iso_to_mic (PG_FUNCTION_ARGS)
 
Datum mic_to_iso (PG_FUNCTION_ARGS)
 
Datum win1251_to_mic (PG_FUNCTION_ARGS)
 
Datum mic_to_win1251 (PG_FUNCTION_ARGS)
 
Datum win866_to_mic (PG_FUNCTION_ARGS)
 
Datum mic_to_win866 (PG_FUNCTION_ARGS)
 
Datum koi8r_to_win1251 (PG_FUNCTION_ARGS)
 
Datum win1251_to_koi8r (PG_FUNCTION_ARGS)
 
Datum koi8r_to_win866 (PG_FUNCTION_ARGS)
 
Datum win866_to_koi8r (PG_FUNCTION_ARGS)
 
Datum win866_to_win1251 (PG_FUNCTION_ARGS)
 
Datum win1251_to_win866 (PG_FUNCTION_ARGS)
 
Datum iso_to_koi8r (PG_FUNCTION_ARGS)
 
Datum koi8r_to_iso (PG_FUNCTION_ARGS)
 
Datum iso_to_win1251 (PG_FUNCTION_ARGS)
 
Datum win1251_to_iso (PG_FUNCTION_ARGS)
 
Datum iso_to_win866 (PG_FUNCTION_ARGS)
 
Datum win866_to_iso (PG_FUNCTION_ARGS)
 

Variables

 PG_MODULE_MAGIC
 
static const unsigned char iso2koi []
 
static const unsigned char koi2iso []
 
static const unsigned char win12512koi []
 
static const unsigned char koi2win1251 []
 
static const unsigned char win8662koi []
 
static const unsigned char koi2win866 []
 
static const unsigned char win8662win1251 []
 
static const unsigned char win12512win866 []
 
static const unsigned char iso2win1251 []
 
static const unsigned char win12512iso []
 
static const unsigned char iso2win866 []
 
static const unsigned char win8662iso []
 

Function Documentation

Datum iso_to_koi8r ( PG_FUNCTION_ARGS  )

Definition at line 500 of file cyrillic_and_mic.c.

References CHECK_ENCODING_CONVERSION_ARGS, iso2koi, local2local(), PG_GETARG_CSTRING, PG_GETARG_INT32, PG_ISO_8859_5, PG_KOI8R, and PG_RETURN_VOID.

501 {
502  unsigned char *src = (unsigned char *) PG_GETARG_CSTRING(2);
503  unsigned char *dest = (unsigned char *) PG_GETARG_CSTRING(3);
504  int len = PG_GETARG_INT32(4);
505 
507 
508  local2local(src, dest, len, PG_ISO_8859_5, PG_KOI8R, iso2koi);
509 
510  PG_RETURN_VOID();
511 }
#define PG_GETARG_INT32(n)
Definition: fmgr.h:234
#define PG_RETURN_VOID()
Definition: fmgr.h:309
void local2local(const unsigned char *l, unsigned char *p, int len, int src_encoding, int dest_encoding, const unsigned char *tab)
Definition: conv.c:30
#define CHECK_ENCODING_CONVERSION_ARGS(srcencoding, destencoding)
Definition: pg_wchar.h:503
static const unsigned char iso2koi[]
#define PG_GETARG_CSTRING(n)
Definition: fmgr.h:242
Datum iso_to_mic ( PG_FUNCTION_ARGS  )

Definition at line 332 of file cyrillic_and_mic.c.

References CHECK_ENCODING_CONVERSION_ARGS, iso2koi, latin2mic_with_table(), LC_KOI8_R, PG_GETARG_CSTRING, PG_GETARG_INT32, PG_ISO_8859_5, PG_MULE_INTERNAL, and PG_RETURN_VOID.

333 {
334  unsigned char *src = (unsigned char *) PG_GETARG_CSTRING(2);
335  unsigned char *dest = (unsigned char *) PG_GETARG_CSTRING(3);
336  int len = PG_GETARG_INT32(4);
337 
339 
341 
342  PG_RETURN_VOID();
343 }
#define PG_GETARG_INT32(n)
Definition: fmgr.h:234
#define LC_KOI8_R
Definition: pg_wchar.h:116
void latin2mic_with_table(const unsigned char *l, unsigned char *p, int len, int lc, int encoding, const unsigned char *tab)
Definition: conv.c:193
#define PG_RETURN_VOID()
Definition: fmgr.h:309
#define CHECK_ENCODING_CONVERSION_ARGS(srcencoding, destencoding)
Definition: pg_wchar.h:503
static const unsigned char iso2koi[]
#define PG_GETARG_CSTRING(n)
Definition: fmgr.h:242
Datum iso_to_win1251 ( PG_FUNCTION_ARGS  )

Definition at line 528 of file cyrillic_and_mic.c.

References CHECK_ENCODING_CONVERSION_ARGS, iso2win1251, local2local(), PG_GETARG_CSTRING, PG_GETARG_INT32, PG_ISO_8859_5, PG_RETURN_VOID, and PG_WIN1251.

529 {
530  unsigned char *src = (unsigned char *) PG_GETARG_CSTRING(2);
531  unsigned char *dest = (unsigned char *) PG_GETARG_CSTRING(3);
532  int len = PG_GETARG_INT32(4);
533 
535 
536  local2local(src, dest, len, PG_ISO_8859_5, PG_WIN1251, iso2win1251);
537 
538  PG_RETURN_VOID();
539 }
#define PG_GETARG_INT32(n)
Definition: fmgr.h:234
static const unsigned char iso2win1251[]
#define PG_RETURN_VOID()
Definition: fmgr.h:309
void local2local(const unsigned char *l, unsigned char *p, int len, int src_encoding, int dest_encoding, const unsigned char *tab)
Definition: conv.c:30
#define CHECK_ENCODING_CONVERSION_ARGS(srcencoding, destencoding)
Definition: pg_wchar.h:503
#define PG_GETARG_CSTRING(n)
Definition: fmgr.h:242
Datum iso_to_win866 ( PG_FUNCTION_ARGS  )

Definition at line 556 of file cyrillic_and_mic.c.

References CHECK_ENCODING_CONVERSION_ARGS, iso2win866, local2local(), PG_GETARG_CSTRING, PG_GETARG_INT32, PG_ISO_8859_5, PG_RETURN_VOID, and PG_WIN866.

557 {
558  unsigned char *src = (unsigned char *) PG_GETARG_CSTRING(2);
559  unsigned char *dest = (unsigned char *) PG_GETARG_CSTRING(3);
560  int len = PG_GETARG_INT32(4);
561 
563 
564  local2local(src, dest, len, PG_ISO_8859_5, PG_WIN866, iso2win866);
565 
566  PG_RETURN_VOID();
567 }
#define PG_GETARG_INT32(n)
Definition: fmgr.h:234
#define PG_RETURN_VOID()
Definition: fmgr.h:309
void local2local(const unsigned char *l, unsigned char *p, int len, int src_encoding, int dest_encoding, const unsigned char *tab)
Definition: conv.c:30
#define CHECK_ENCODING_CONVERSION_ARGS(srcencoding, destencoding)
Definition: pg_wchar.h:503
#define PG_GETARG_CSTRING(n)
Definition: fmgr.h:242
static const unsigned char iso2win866[]
Datum koi8r_to_iso ( PG_FUNCTION_ARGS  )

Definition at line 514 of file cyrillic_and_mic.c.

References CHECK_ENCODING_CONVERSION_ARGS, koi2iso, local2local(), PG_GETARG_CSTRING, PG_GETARG_INT32, PG_ISO_8859_5, PG_KOI8R, and PG_RETURN_VOID.

515 {
516  unsigned char *src = (unsigned char *) PG_GETARG_CSTRING(2);
517  unsigned char *dest = (unsigned char *) PG_GETARG_CSTRING(3);
518  int len = PG_GETARG_INT32(4);
519 
521 
522  local2local(src, dest, len, PG_KOI8R, PG_ISO_8859_5, koi2iso);
523 
524  PG_RETURN_VOID();
525 }
#define PG_GETARG_INT32(n)
Definition: fmgr.h:234
static const unsigned char koi2iso[]
#define PG_RETURN_VOID()
Definition: fmgr.h:309
void local2local(const unsigned char *l, unsigned char *p, int len, int src_encoding, int dest_encoding, const unsigned char *tab)
Definition: conv.c:30
#define CHECK_ENCODING_CONVERSION_ARGS(srcencoding, destencoding)
Definition: pg_wchar.h:503
#define PG_GETARG_CSTRING(n)
Definition: fmgr.h:242
Datum koi8r_to_mic ( PG_FUNCTION_ARGS  )

Definition at line 304 of file cyrillic_and_mic.c.

References CHECK_ENCODING_CONVERSION_ARGS, latin2mic(), LC_KOI8_R, PG_GETARG_CSTRING, PG_GETARG_INT32, PG_KOI8R, PG_MULE_INTERNAL, and PG_RETURN_VOID.

305 {
306  unsigned char *src = (unsigned char *) PG_GETARG_CSTRING(2);
307  unsigned char *dest = (unsigned char *) PG_GETARG_CSTRING(3);
308  int len = PG_GETARG_INT32(4);
309 
311 
312  latin2mic(src, dest, len, LC_KOI8_R, PG_KOI8R);
313 
314  PG_RETURN_VOID();
315 }
#define PG_GETARG_INT32(n)
Definition: fmgr.h:234
#define LC_KOI8_R
Definition: pg_wchar.h:116
void latin2mic(const unsigned char *l, unsigned char *p, int len, int lc, int encoding)
Definition: conv.c:71
#define PG_RETURN_VOID()
Definition: fmgr.h:309
#define CHECK_ENCODING_CONVERSION_ARGS(srcencoding, destencoding)
Definition: pg_wchar.h:503
#define PG_GETARG_CSTRING(n)
Definition: fmgr.h:242
Datum koi8r_to_win1251 ( PG_FUNCTION_ARGS  )

Definition at line 416 of file cyrillic_and_mic.c.

References CHECK_ENCODING_CONVERSION_ARGS, koi2win1251, local2local(), PG_GETARG_CSTRING, PG_GETARG_INT32, PG_KOI8R, PG_RETURN_VOID, and PG_WIN1251.

417 {
418  unsigned char *src = (unsigned char *) PG_GETARG_CSTRING(2);
419  unsigned char *dest = (unsigned char *) PG_GETARG_CSTRING(3);
420  int len = PG_GETARG_INT32(4);
421 
423 
424  local2local(src, dest, len, PG_KOI8R, PG_WIN1251, koi2win1251);
425 
426  PG_RETURN_VOID();
427 }
#define PG_GETARG_INT32(n)
Definition: fmgr.h:234
static const unsigned char koi2win1251[]
#define PG_RETURN_VOID()
Definition: fmgr.h:309
void local2local(const unsigned char *l, unsigned char *p, int len, int src_encoding, int dest_encoding, const unsigned char *tab)
Definition: conv.c:30
#define CHECK_ENCODING_CONVERSION_ARGS(srcencoding, destencoding)
Definition: pg_wchar.h:503
#define PG_GETARG_CSTRING(n)
Definition: fmgr.h:242
Datum koi8r_to_win866 ( PG_FUNCTION_ARGS  )

Definition at line 444 of file cyrillic_and_mic.c.

References CHECK_ENCODING_CONVERSION_ARGS, koi2win866, local2local(), PG_GETARG_CSTRING, PG_GETARG_INT32, PG_KOI8R, PG_RETURN_VOID, and PG_WIN866.

445 {
446  unsigned char *src = (unsigned char *) PG_GETARG_CSTRING(2);
447  unsigned char *dest = (unsigned char *) PG_GETARG_CSTRING(3);
448  int len = PG_GETARG_INT32(4);
449 
451 
452  local2local(src, dest, len, PG_KOI8R, PG_WIN866, koi2win866);
453 
454  PG_RETURN_VOID();
455 }
#define PG_GETARG_INT32(n)
Definition: fmgr.h:234
#define PG_RETURN_VOID()
Definition: fmgr.h:309
void local2local(const unsigned char *l, unsigned char *p, int len, int src_encoding, int dest_encoding, const unsigned char *tab)
Definition: conv.c:30
#define CHECK_ENCODING_CONVERSION_ARGS(srcencoding, destencoding)
Definition: pg_wchar.h:503
#define PG_GETARG_CSTRING(n)
Definition: fmgr.h:242
static const unsigned char koi2win866[]
Datum mic_to_iso ( PG_FUNCTION_ARGS  )

Definition at line 346 of file cyrillic_and_mic.c.

References CHECK_ENCODING_CONVERSION_ARGS, koi2iso, LC_KOI8_R, mic2latin_with_table(), PG_GETARG_CSTRING, PG_GETARG_INT32, PG_ISO_8859_5, PG_MULE_INTERNAL, and PG_RETURN_VOID.

347 {
348  unsigned char *src = (unsigned char *) PG_GETARG_CSTRING(2);
349  unsigned char *dest = (unsigned char *) PG_GETARG_CSTRING(3);
350  int len = PG_GETARG_INT32(4);
351 
353 
355 
356  PG_RETURN_VOID();
357 }
#define PG_GETARG_INT32(n)
Definition: fmgr.h:234
#define LC_KOI8_R
Definition: pg_wchar.h:116
static const unsigned char koi2iso[]
void mic2latin_with_table(const unsigned char *mic, unsigned char *p, int len, int lc, int encoding, const unsigned char *tab)
Definition: conv.c:241
#define PG_RETURN_VOID()
Definition: fmgr.h:309
#define CHECK_ENCODING_CONVERSION_ARGS(srcencoding, destencoding)
Definition: pg_wchar.h:503
#define PG_GETARG_CSTRING(n)
Definition: fmgr.h:242
Datum mic_to_koi8r ( PG_FUNCTION_ARGS  )

Definition at line 318 of file cyrillic_and_mic.c.

References CHECK_ENCODING_CONVERSION_ARGS, LC_KOI8_R, mic2latin(), PG_GETARG_CSTRING, PG_GETARG_INT32, PG_KOI8R, PG_MULE_INTERNAL, and PG_RETURN_VOID.

319 {
320  unsigned char *src = (unsigned char *) PG_GETARG_CSTRING(2);
321  unsigned char *dest = (unsigned char *) PG_GETARG_CSTRING(3);
322  int len = PG_GETARG_INT32(4);
323 
325 
326  mic2latin(src, dest, len, LC_KOI8_R, PG_KOI8R);
327 
328  PG_RETURN_VOID();
329 }
#define PG_GETARG_INT32(n)
Definition: fmgr.h:234
#define LC_KOI8_R
Definition: pg_wchar.h:116
void mic2latin(const unsigned char *mic, unsigned char *p, int len, int lc, int encoding)
Definition: conv.c:99
#define PG_RETURN_VOID()
Definition: fmgr.h:309
#define CHECK_ENCODING_CONVERSION_ARGS(srcencoding, destencoding)
Definition: pg_wchar.h:503
#define PG_GETARG_CSTRING(n)
Definition: fmgr.h:242
Datum mic_to_win1251 ( PG_FUNCTION_ARGS  )

Definition at line 374 of file cyrillic_and_mic.c.

References CHECK_ENCODING_CONVERSION_ARGS, koi2win1251, LC_KOI8_R, mic2latin_with_table(), PG_GETARG_CSTRING, PG_GETARG_INT32, PG_MULE_INTERNAL, PG_RETURN_VOID, and PG_WIN1251.

375 {
376  unsigned char *src = (unsigned char *) PG_GETARG_CSTRING(2);
377  unsigned char *dest = (unsigned char *) PG_GETARG_CSTRING(3);
378  int len = PG_GETARG_INT32(4);
379 
381 
383 
384  PG_RETURN_VOID();
385 }
#define PG_GETARG_INT32(n)
Definition: fmgr.h:234
static const unsigned char koi2win1251[]
#define LC_KOI8_R
Definition: pg_wchar.h:116
void mic2latin_with_table(const unsigned char *mic, unsigned char *p, int len, int lc, int encoding, const unsigned char *tab)
Definition: conv.c:241
#define PG_RETURN_VOID()
Definition: fmgr.h:309
#define CHECK_ENCODING_CONVERSION_ARGS(srcencoding, destencoding)
Definition: pg_wchar.h:503
#define PG_GETARG_CSTRING(n)
Definition: fmgr.h:242
Datum mic_to_win866 ( PG_FUNCTION_ARGS  )

Definition at line 402 of file cyrillic_and_mic.c.

References CHECK_ENCODING_CONVERSION_ARGS, koi2win866, LC_KOI8_R, mic2latin_with_table(), PG_GETARG_CSTRING, PG_GETARG_INT32, PG_MULE_INTERNAL, PG_RETURN_VOID, and PG_WIN866.

403 {
404  unsigned char *src = (unsigned char *) PG_GETARG_CSTRING(2);
405  unsigned char *dest = (unsigned char *) PG_GETARG_CSTRING(3);
406  int len = PG_GETARG_INT32(4);
407 
409 
411 
412  PG_RETURN_VOID();
413 }
#define PG_GETARG_INT32(n)
Definition: fmgr.h:234
#define LC_KOI8_R
Definition: pg_wchar.h:116
void mic2latin_with_table(const unsigned char *mic, unsigned char *p, int len, int lc, int encoding, const unsigned char *tab)
Definition: conv.c:241
#define PG_RETURN_VOID()
Definition: fmgr.h:309
#define CHECK_ENCODING_CONVERSION_ARGS(srcencoding, destencoding)
Definition: pg_wchar.h:503
#define PG_GETARG_CSTRING(n)
Definition: fmgr.h:242
static const unsigned char koi2win866[]
PG_FUNCTION_INFO_V1 ( koi8r_to_mic  )
PG_FUNCTION_INFO_V1 ( mic_to_koi8r  )
PG_FUNCTION_INFO_V1 ( iso_to_mic  )
PG_FUNCTION_INFO_V1 ( mic_to_iso  )
PG_FUNCTION_INFO_V1 ( win1251_to_mic  )
PG_FUNCTION_INFO_V1 ( mic_to_win1251  )
PG_FUNCTION_INFO_V1 ( win866_to_mic  )
PG_FUNCTION_INFO_V1 ( mic_to_win866  )
PG_FUNCTION_INFO_V1 ( koi8r_to_win1251  )
PG_FUNCTION_INFO_V1 ( win1251_to_koi8r  )
PG_FUNCTION_INFO_V1 ( koi8r_to_win866  )
PG_FUNCTION_INFO_V1 ( win866_to_koi8r  )
PG_FUNCTION_INFO_V1 ( win866_to_win1251  )
PG_FUNCTION_INFO_V1 ( win1251_to_win866  )
PG_FUNCTION_INFO_V1 ( iso_to_koi8r  )
PG_FUNCTION_INFO_V1 ( koi8r_to_iso  )
PG_FUNCTION_INFO_V1 ( iso_to_win1251  )
PG_FUNCTION_INFO_V1 ( win1251_to_iso  )
PG_FUNCTION_INFO_V1 ( iso_to_win866  )
PG_FUNCTION_INFO_V1 ( win866_to_iso  )
Datum win1251_to_iso ( PG_FUNCTION_ARGS  )

Definition at line 542 of file cyrillic_and_mic.c.

References CHECK_ENCODING_CONVERSION_ARGS, local2local(), PG_GETARG_CSTRING, PG_GETARG_INT32, PG_ISO_8859_5, PG_RETURN_VOID, PG_WIN1251, and win12512iso.

543 {
544  unsigned char *src = (unsigned char *) PG_GETARG_CSTRING(2);
545  unsigned char *dest = (unsigned char *) PG_GETARG_CSTRING(3);
546  int len = PG_GETARG_INT32(4);
547 
549 
550  local2local(src, dest, len, PG_WIN1251, PG_ISO_8859_5, win12512iso);
551 
552  PG_RETURN_VOID();
553 }
#define PG_GETARG_INT32(n)
Definition: fmgr.h:234
static const unsigned char win12512iso[]
#define PG_RETURN_VOID()
Definition: fmgr.h:309
void local2local(const unsigned char *l, unsigned char *p, int len, int src_encoding, int dest_encoding, const unsigned char *tab)
Definition: conv.c:30
#define CHECK_ENCODING_CONVERSION_ARGS(srcencoding, destencoding)
Definition: pg_wchar.h:503
#define PG_GETARG_CSTRING(n)
Definition: fmgr.h:242
Datum win1251_to_koi8r ( PG_FUNCTION_ARGS  )

Definition at line 430 of file cyrillic_and_mic.c.

References CHECK_ENCODING_CONVERSION_ARGS, local2local(), PG_GETARG_CSTRING, PG_GETARG_INT32, PG_KOI8R, PG_RETURN_VOID, PG_WIN1251, and win12512koi.

431 {
432  unsigned char *src = (unsigned char *) PG_GETARG_CSTRING(2);
433  unsigned char *dest = (unsigned char *) PG_GETARG_CSTRING(3);
434  int len = PG_GETARG_INT32(4);
435 
437 
438  local2local(src, dest, len, PG_WIN1251, PG_KOI8R, win12512koi);
439 
440  PG_RETURN_VOID();
441 }
#define PG_GETARG_INT32(n)
Definition: fmgr.h:234
static const unsigned char win12512koi[]
#define PG_RETURN_VOID()
Definition: fmgr.h:309
void local2local(const unsigned char *l, unsigned char *p, int len, int src_encoding, int dest_encoding, const unsigned char *tab)
Definition: conv.c:30
#define CHECK_ENCODING_CONVERSION_ARGS(srcencoding, destencoding)
Definition: pg_wchar.h:503
#define PG_GETARG_CSTRING(n)
Definition: fmgr.h:242
Datum win1251_to_mic ( PG_FUNCTION_ARGS  )

Definition at line 360 of file cyrillic_and_mic.c.

References CHECK_ENCODING_CONVERSION_ARGS, latin2mic_with_table(), LC_KOI8_R, PG_GETARG_CSTRING, PG_GETARG_INT32, PG_MULE_INTERNAL, PG_RETURN_VOID, PG_WIN1251, and win12512koi.

361 {
362  unsigned char *src = (unsigned char *) PG_GETARG_CSTRING(2);
363  unsigned char *dest = (unsigned char *) PG_GETARG_CSTRING(3);
364  int len = PG_GETARG_INT32(4);
365 
367 
369 
370  PG_RETURN_VOID();
371 }
#define PG_GETARG_INT32(n)
Definition: fmgr.h:234
#define LC_KOI8_R
Definition: pg_wchar.h:116
void latin2mic_with_table(const unsigned char *l, unsigned char *p, int len, int lc, int encoding, const unsigned char *tab)
Definition: conv.c:193
static const unsigned char win12512koi[]
#define PG_RETURN_VOID()
Definition: fmgr.h:309
#define CHECK_ENCODING_CONVERSION_ARGS(srcencoding, destencoding)
Definition: pg_wchar.h:503
#define PG_GETARG_CSTRING(n)
Definition: fmgr.h:242
Datum win1251_to_win866 ( PG_FUNCTION_ARGS  )

Definition at line 486 of file cyrillic_and_mic.c.

References CHECK_ENCODING_CONVERSION_ARGS, local2local(), PG_GETARG_CSTRING, PG_GETARG_INT32, PG_RETURN_VOID, PG_WIN1251, PG_WIN866, and win12512win866.

487 {
488  unsigned char *src = (unsigned char *) PG_GETARG_CSTRING(2);
489  unsigned char *dest = (unsigned char *) PG_GETARG_CSTRING(3);
490  int len = PG_GETARG_INT32(4);
491 
493 
494  local2local(src, dest, len, PG_WIN1251, PG_WIN866, win12512win866);
495 
496  PG_RETURN_VOID();
497 }
#define PG_GETARG_INT32(n)
Definition: fmgr.h:234
static const unsigned char win12512win866[]
#define PG_RETURN_VOID()
Definition: fmgr.h:309
void local2local(const unsigned char *l, unsigned char *p, int len, int src_encoding, int dest_encoding, const unsigned char *tab)
Definition: conv.c:30
#define CHECK_ENCODING_CONVERSION_ARGS(srcencoding, destencoding)
Definition: pg_wchar.h:503
#define PG_GETARG_CSTRING(n)
Definition: fmgr.h:242
Datum win866_to_iso ( PG_FUNCTION_ARGS  )

Definition at line 570 of file cyrillic_and_mic.c.

References CHECK_ENCODING_CONVERSION_ARGS, local2local(), PG_GETARG_CSTRING, PG_GETARG_INT32, PG_ISO_8859_5, PG_RETURN_VOID, PG_WIN866, and win8662iso.

571 {
572  unsigned char *src = (unsigned char *) PG_GETARG_CSTRING(2);
573  unsigned char *dest = (unsigned char *) PG_GETARG_CSTRING(3);
574  int len = PG_GETARG_INT32(4);
575 
577 
578  local2local(src, dest, len, PG_WIN866, PG_ISO_8859_5, win8662iso);
579 
580  PG_RETURN_VOID();
581 }
#define PG_GETARG_INT32(n)
Definition: fmgr.h:234
static const unsigned char win8662iso[]
#define PG_RETURN_VOID()
Definition: fmgr.h:309
void local2local(const unsigned char *l, unsigned char *p, int len, int src_encoding, int dest_encoding, const unsigned char *tab)
Definition: conv.c:30
#define CHECK_ENCODING_CONVERSION_ARGS(srcencoding, destencoding)
Definition: pg_wchar.h:503
#define PG_GETARG_CSTRING(n)
Definition: fmgr.h:242
Datum win866_to_koi8r ( PG_FUNCTION_ARGS  )

Definition at line 458 of file cyrillic_and_mic.c.

References CHECK_ENCODING_CONVERSION_ARGS, local2local(), PG_GETARG_CSTRING, PG_GETARG_INT32, PG_KOI8R, PG_RETURN_VOID, PG_WIN866, and win8662koi.

459 {
460  unsigned char *src = (unsigned char *) PG_GETARG_CSTRING(2);
461  unsigned char *dest = (unsigned char *) PG_GETARG_CSTRING(3);
462  int len = PG_GETARG_INT32(4);
463 
465 
466  local2local(src, dest, len, PG_WIN866, PG_KOI8R, win8662koi);
467 
468  PG_RETURN_VOID();
469 }
#define PG_GETARG_INT32(n)
Definition: fmgr.h:234
static const unsigned char win8662koi[]
#define PG_RETURN_VOID()
Definition: fmgr.h:309
void local2local(const unsigned char *l, unsigned char *p, int len, int src_encoding, int dest_encoding, const unsigned char *tab)
Definition: conv.c:30
#define CHECK_ENCODING_CONVERSION_ARGS(srcencoding, destencoding)
Definition: pg_wchar.h:503
#define PG_GETARG_CSTRING(n)
Definition: fmgr.h:242
Datum win866_to_mic ( PG_FUNCTION_ARGS  )

Definition at line 388 of file cyrillic_and_mic.c.

References CHECK_ENCODING_CONVERSION_ARGS, latin2mic_with_table(), LC_KOI8_R, PG_GETARG_CSTRING, PG_GETARG_INT32, PG_MULE_INTERNAL, PG_RETURN_VOID, PG_WIN866, and win8662koi.

389 {
390  unsigned char *src = (unsigned char *) PG_GETARG_CSTRING(2);
391  unsigned char *dest = (unsigned char *) PG_GETARG_CSTRING(3);
392  int len = PG_GETARG_INT32(4);
393 
395 
397 
398  PG_RETURN_VOID();
399 }
#define PG_GETARG_INT32(n)
Definition: fmgr.h:234
#define LC_KOI8_R
Definition: pg_wchar.h:116
void latin2mic_with_table(const unsigned char *l, unsigned char *p, int len, int lc, int encoding, const unsigned char *tab)
Definition: conv.c:193
static const unsigned char win8662koi[]
#define PG_RETURN_VOID()
Definition: fmgr.h:309
#define CHECK_ENCODING_CONVERSION_ARGS(srcencoding, destencoding)
Definition: pg_wchar.h:503
#define PG_GETARG_CSTRING(n)
Definition: fmgr.h:242
Datum win866_to_win1251 ( PG_FUNCTION_ARGS  )

Definition at line 472 of file cyrillic_and_mic.c.

References CHECK_ENCODING_CONVERSION_ARGS, local2local(), PG_GETARG_CSTRING, PG_GETARG_INT32, PG_RETURN_VOID, PG_WIN1251, PG_WIN866, and win8662win1251.

473 {
474  unsigned char *src = (unsigned char *) PG_GETARG_CSTRING(2);
475  unsigned char *dest = (unsigned char *) PG_GETARG_CSTRING(3);
476  int len = PG_GETARG_INT32(4);
477 
479 
480  local2local(src, dest, len, PG_WIN866, PG_WIN1251, win8662win1251);
481 
482  PG_RETURN_VOID();
483 }
#define PG_GETARG_INT32(n)
Definition: fmgr.h:234
#define PG_RETURN_VOID()
Definition: fmgr.h:309
void local2local(const unsigned char *l, unsigned char *p, int len, int src_encoding, int dest_encoding, const unsigned char *tab)
Definition: conv.c:30
#define CHECK_ENCODING_CONVERSION_ARGS(srcencoding, destencoding)
Definition: pg_wchar.h:503
static const unsigned char win8662win1251[]
#define PG_GETARG_CSTRING(n)
Definition: fmgr.h:242

Variable Documentation

const unsigned char iso2koi[]
static
Initial value:
= {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0xB3, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0xE1, 0xE2, 0xF7, 0xE7, 0xE4, 0xE5, 0xF6, 0xFA,
0xE9, 0xEA, 0xEB, 0xEC, 0xED, 0xEE, 0xEF, 0xF0,
0xF2, 0xF3, 0xF4, 0xF5, 0xE6, 0xE8, 0xE3, 0xFE,
0xFB, 0xFD, 0xFF, 0xF9, 0xF8, 0xFC, 0xE0, 0xF1,
0xC1, 0xC2, 0xD7, 0xC7, 0xC4, 0xC5, 0xD6, 0xDA,
0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 0xCE, 0xCF, 0xD0,
0xD2, 0xD3, 0xD4, 0xD5, 0xC6, 0xC8, 0xC3, 0xDE,
0xDB, 0xDD, 0xDF, 0xD9, 0xD8, 0xDC, 0xC0, 0xD1,
0x00, 0xA3, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
}

Definition at line 63 of file cyrillic_and_mic.c.

Referenced by iso_to_koi8r(), and iso_to_mic().

const unsigned char iso2win1251[]
static
Initial value:
= {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0xA8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0xC0, 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7,
0xC8, 0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 0xCE, 0xCF,
0xD0, 0xD1, 0xD2, 0xD3, 0xD4, 0xD5, 0xD6, 0xD7,
0xD8, 0xD9, 0xDA, 0xDB, 0xDC, 0xDD, 0xDE, 0xDF,
0xE0, 0xE1, 0xE2, 0xE3, 0xE4, 0xE5, 0xE6, 0xE7,
0xE8, 0xE9, 0xEA, 0xEB, 0xEC, 0xED, 0xEE, 0xEF,
0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7,
0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, 0xFF,
0x00, 0xB8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
}

Definition at line 223 of file cyrillic_and_mic.c.

Referenced by iso_to_win1251().

const unsigned char iso2win866[]
static
Initial value:
= {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0xF0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87,
0x88, 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, 0x8F,
0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97,
0x98, 0x99, 0x9A, 0x9B, 0x9C, 0x9D, 0x9E, 0x9F,
0xA0, 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7,
0xA8, 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, 0xAF,
0xE0, 0xE1, 0xE2, 0xE3, 0xE4, 0xE5, 0xE6, 0xE7,
0xE8, 0xE9, 0xEA, 0xEB, 0xEC, 0xED, 0xEE, 0xEF,
0x00, 0xF1, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
}

Definition at line 263 of file cyrillic_and_mic.c.

Referenced by iso_to_win866().

const unsigned char koi2iso[]
static
Initial value:
= {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0xF1, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0xA1, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0xEE, 0xD0, 0xD1, 0xE6, 0xD4, 0xD5, 0xE4, 0xD3,
0xE5, 0xD8, 0xD9, 0xDA, 0xDB, 0xDC, 0xDD, 0xDE,
0xDF, 0xEF, 0xE0, 0xE1, 0xE2, 0xE3, 0xD6, 0xD2,
0xEC, 0xEB, 0xD7, 0xE8, 0xED, 0xE9, 0xE7, 0xEA,
0xCE, 0xB0, 0xB1, 0xC6, 0xB4, 0xB5, 0xC4, 0xB3,
0xC5, 0xB8, 0xB9, 0xBA, 0xBB, 0xBC, 0xBD, 0xBE,
0xBF, 0xCF, 0xC0, 0xC1, 0xC2, 0xC3, 0xB6, 0xB2,
0xCC, 0xCB, 0xB7, 0xC8, 0xCD, 0xC9, 0xC7, 0xCA
}

Definition at line 83 of file cyrillic_and_mic.c.

Referenced by koi8r_to_iso(), and mic_to_iso().

const unsigned char koi2win1251[]
static
Initial value:
= {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0xB8, 0xBA, 0x00, 0xB3, 0xBF,
0x00, 0x00, 0x00, 0x00, 0x00, 0xB4, 0x00, 0x00,
0x00, 0x00, 0x00, 0xA8, 0xAA, 0x00, 0xB2, 0xAF,
0x00, 0x00, 0x00, 0x00, 0x00, 0xA5, 0x00, 0x00,
0xFE, 0xE0, 0xE1, 0xF6, 0xE4, 0xE5, 0xF4, 0xE3,
0xF5, 0xE8, 0xE9, 0xEA, 0xEB, 0xEC, 0xED, 0xEE,
0xEF, 0xFF, 0xF0, 0xF1, 0xF2, 0xF3, 0xE6, 0xE2,
0xFC, 0xFB, 0xE7, 0xF8, 0xFD, 0xF9, 0xF7, 0xFA,
0xDE, 0xC0, 0xC1, 0xD6, 0xC4, 0xC5, 0xD4, 0xC3,
0xD5, 0xC8, 0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 0xCE,
0xCF, 0xDF, 0xD0, 0xD1, 0xD2, 0xD3, 0xC6, 0xC2,
0xDC, 0xDB, 0xC7, 0xD8, 0xDD, 0xD9, 0xD7, 0xDA
}

Definition at line 123 of file cyrillic_and_mic.c.

Referenced by koi8r_to_win1251(), and mic_to_win1251().

const unsigned char koi2win866[]
static
Initial value:
= {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0xF1, 0xF3, 0x00, 0xF9, 0xF5,
0x00, 0x00, 0x00, 0x00, 0x00, 0xAD, 0x00, 0x00,
0x00, 0x00, 0x00, 0xF0, 0xF2, 0x00, 0xF8, 0xF4,
0x00, 0x00, 0x00, 0x00, 0x00, 0xBD, 0x00, 0x00,
0xEE, 0xA0, 0xA1, 0xE6, 0xA4, 0xA5, 0xE4, 0xA3,
0xE5, 0xA8, 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE,
0xAF, 0xEF, 0xE0, 0xE1, 0xE2, 0xE3, 0xA6, 0xA2,
0xEC, 0xEB, 0xA7, 0xE8, 0xED, 0xE9, 0xE7, 0xEA,
0x9E, 0x80, 0x81, 0x96, 0x84, 0x85, 0x94, 0x83,
0x95, 0x88, 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E,
0x8F, 0x9F, 0x90, 0x91, 0x92, 0x93, 0x86, 0x82,
0x9C, 0x9B, 0x87, 0x98, 0x9D, 0x99, 0x97, 0x9A
}

Definition at line 163 of file cyrillic_and_mic.c.

Referenced by koi8r_to_win866(), and mic_to_win866().

PG_MODULE_MAGIC

Definition at line 18 of file cyrillic_and_mic.c.

const unsigned char win12512iso[]
static
Initial value:
= {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0xA1, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0xF1, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0xB0, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7,
0xB8, 0xB9, 0xBA, 0xBB, 0xBC, 0xBD, 0xBE, 0xBF,
0xC0, 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7,
0xC8, 0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 0xCE, 0xCF,
0xD0, 0xD1, 0xD2, 0xD3, 0xD4, 0xD5, 0xD6, 0xD7,
0xD8, 0xD9, 0xDA, 0xDB, 0xDC, 0xDD, 0xDE, 0xDF,
0xE0, 0xE1, 0xE2, 0xE3, 0xE4, 0xE5, 0xE6, 0xE7,
0xE8, 0xE9, 0xEA, 0xEB, 0xEC, 0xED, 0xEE, 0xEF
}

Definition at line 243 of file cyrillic_and_mic.c.

Referenced by win1251_to_iso().

const unsigned char win12512koi[]
static
Initial value:
= {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0xBD, 0x00, 0x00,
0xB3, 0x00, 0xB4, 0x00, 0x00, 0x00, 0x00, 0xB7,
0x00, 0x00, 0xB6, 0xA6, 0xAD, 0x00, 0x00, 0x00,
0xA3, 0x00, 0xA4, 0x00, 0x00, 0x00, 0x00, 0xA7,
0xE1, 0xE2, 0xF7, 0xE7, 0xE4, 0xE5, 0xF6, 0xFA,
0xE9, 0xEA, 0xEB, 0xEC, 0xED, 0xEE, 0xEF, 0xF0,
0xF2, 0xF3, 0xF4, 0xF5, 0xE6, 0xE8, 0xE3, 0xFE,
0xFB, 0xFD, 0xFF, 0xF9, 0xF8, 0xFC, 0xE0, 0xF1,
0xC1, 0xC2, 0xD7, 0xC7, 0xC4, 0xC5, 0xD6, 0xDA,
0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 0xCE, 0xCF, 0xD0,
0xD2, 0xD3, 0xD4, 0xD5, 0xC6, 0xC8, 0xC3, 0xDE,
0xDB, 0xDD, 0xDF, 0xD9, 0xD8, 0xDC, 0xC0, 0xD1
}

Definition at line 103 of file cyrillic_and_mic.c.

Referenced by win1251_to_koi8r(), and win1251_to_mic().

const unsigned char win12512win866[]
static
Initial value:
= {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0xBD, 0x00, 0x00,
0xF0, 0x00, 0xF2, 0x00, 0x00, 0x00, 0x00, 0xF4,
0x00, 0x00, 0xF8, 0xF9, 0xAD, 0x00, 0x00, 0x00,
0xF1, 0x00, 0xF3, 0x00, 0x00, 0x00, 0x00, 0xF5,
0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87,
0x88, 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, 0x8F,
0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97,
0x98, 0x99, 0x9A, 0x9B, 0x9C, 0x9D, 0x9E, 0x9F,
0xA0, 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7,
0xA8, 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, 0xAF,
0xE0, 0xE1, 0xE2, 0xE3, 0xE4, 0xE5, 0xE6, 0xE7,
0xE8, 0xE9, 0xEA, 0xEB, 0xEC, 0xED, 0xEE, 0xEF
}

Definition at line 203 of file cyrillic_and_mic.c.

Referenced by win1251_to_win866().

const unsigned char win8662iso[]
static
Initial value:
= {
0xB0, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7,
0xB8, 0xB9, 0xBA, 0xBB, 0xBC, 0xBD, 0xBE, 0xBF,
0xC0, 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7,
0xC8, 0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 0xCE, 0xCF,
0xD0, 0xD1, 0xD2, 0xD3, 0xD4, 0xD5, 0xD6, 0xD7,
0xD8, 0xD9, 0xDA, 0xDB, 0xDC, 0xDD, 0xDE, 0xDF,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0xE0, 0xE1, 0xE2, 0xE3, 0xE4, 0xE5, 0xE6, 0xE7,
0xE8, 0xE9, 0xEA, 0xEB, 0xEC, 0xED, 0xEE, 0xEF,
0xA1, 0xF1, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
}

Definition at line 283 of file cyrillic_and_mic.c.

Referenced by win866_to_iso().

const unsigned char win8662koi[]
static
Initial value:
= {
0xE1, 0xE2, 0xF7, 0xE7, 0xE4, 0xE5, 0xF6, 0xFA,
0xE9, 0xEA, 0xEB, 0xEC, 0xED, 0xEE, 0xEF, 0xF0,
0xF2, 0xF3, 0xF4, 0xF5, 0xE6, 0xE8, 0xE3, 0xFE,
0xFB, 0xFD, 0xFF, 0xF9, 0xF8, 0xFC, 0xE0, 0xF1,
0xC1, 0xC2, 0xD7, 0xC7, 0xC4, 0xC5, 0xD6, 0xDA,
0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 0xCE, 0xCF, 0xD0,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0xBD, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0xD2, 0xD3, 0xD4, 0xD5, 0xC6, 0xC8, 0xC3, 0xDE,
0xDB, 0xDD, 0xDF, 0xD9, 0xD8, 0xDC, 0xC0, 0xD1,
0xB3, 0xA3, 0xB4, 0xA4, 0xB7, 0xA7, 0x00, 0x00,
0xB6, 0xA6, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
}

Definition at line 143 of file cyrillic_and_mic.c.

Referenced by win866_to_koi8r(), and win866_to_mic().

const unsigned char win8662win1251[]
static
Initial value:
= {
0xC0, 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7,
0xC8, 0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 0xCE, 0xCF,
0xD0, 0xD1, 0xD2, 0xD3, 0xD4, 0xD5, 0xD6, 0xD7,
0xD8, 0xD9, 0xDA, 0xDB, 0xDC, 0xDD, 0xDE, 0xDF,
0xE0, 0xE1, 0xE2, 0xE3, 0xE4, 0xE5, 0xE6, 0xE7,
0xE8, 0xE9, 0xEA, 0xEB, 0xEC, 0xED, 0xEE, 0xEF,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0xA5, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7,
0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, 0xFF,
0xA8, 0xB8, 0xAA, 0xBA, 0xAF, 0xBF, 0x00, 0x00,
0xB2, 0xB3, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
}

Definition at line 183 of file cyrillic_and_mic.c.

Referenced by win866_to_win1251().