PostgreSQL Source Code: src/backend/utils/mb/conversion_procs/utf8_and_sjis/utf8_and_sjis.c Source File (original) (raw)

1

2

3

4

5

6

7

8

9

10

11

12

13

17#include "../../Unicode/sjis_to_utf8.map"

18#include "../../Unicode/utf8_to_sjis.map"

19

21 .name = "utf8_and_sjis",

22 .version = PG_VERSION

23);

24

27

28

29

30

31

32

33

34

35

36

37

38

39

40

43{

48 int converted;

49

51

53 &sjis_to_unicode_tree,

54 NULL, 0,

55 NULL,

57 noError);

58

60}

61

64{

69 int converted;

70

72

74 &sjis_from_unicode_tree,

75 NULL, 0,

76 NULL,

78 noError);

79

81}

int UtfToLocal(const unsigned char *utf, int len, unsigned char *iso, const pg_mb_radix_tree *map, const pg_utf_to_local_combined *cmap, int cmapsize, utf_local_conversion_func conv_func, int encoding, bool noError)

int LocalToUtf(const unsigned char *iso, int len, unsigned char *utf, const pg_mb_radix_tree *map, const pg_local_to_utf_combined *cmap, int cmapsize, utf_local_conversion_func conv_func, int encoding, bool noError)

#define PG_GETARG_CSTRING(n)

#define PG_RETURN_INT32(x)

#define PG_GETARG_INT32(n)

#define PG_GETARG_BOOL(n)

#define CHECK_ENCODING_CONVERSION_ARGS(srcencoding, destencoding)

Datum utf8_to_sjis(PG_FUNCTION_ARGS)

PG_FUNCTION_INFO_V1(sjis_to_utf8)

PG_MODULE_MAGIC_EXT(.name="utf8_and_sjis",.version=PG_VERSION)

Datum sjis_to_utf8(PG_FUNCTION_ARGS)