|
PostgreSQL Source Code git master
|
#include "postgres.h"#include <limits.h>#include "libpq/pqformat.h"#include "utils/fmgrprotos.h"#include "varatt.h"
Go to the source code of this file.
Macros | |
| #define | ISOCTAL(c) (((c) >= '0') && ((c) <= '7')) |
| #define | TOOCTAL(c) ((c) + '0') |
| #define | FROMOCTAL(c) ((unsigned char) (c) - '0') |
| Datum char_text | ( | PG_FUNCTION_ARGS | ) |
Definition at line 228 of file char.c.
References IS_HIGHBIT_SET, palloc(), PG_GETARG_CHAR, PG_RETURN_TEXT_P, SET_VARSIZE(), TOOCTAL, VARDATA(), and VARHDRSZ.
| Datum chareq | ( | PG_FUNCTION_ARGS | ) |
Definition at line 127 of file char.c.
References PG_GETARG_CHAR, and PG_RETURN_BOOL.
| Datum charge | ( | PG_FUNCTION_ARGS | ) |
| Datum chargt | ( | PG_FUNCTION_ARGS | ) |
| Datum charin | ( | PG_FUNCTION_ARGS | ) |
Definition at line 41 of file char.c.
References FROMOCTAL, ISOCTAL, PG_GETARG_CSTRING, and PG_RETURN_CHAR.
| Datum charle | ( | PG_FUNCTION_ARGS | ) |
| Datum charlt | ( | PG_FUNCTION_ARGS | ) |
| Datum charne | ( | PG_FUNCTION_ARGS | ) |
Definition at line 136 of file char.c.
References PG_GETARG_CHAR, and PG_RETURN_BOOL.
| Datum charout | ( | PG_FUNCTION_ARGS | ) |
Definition at line 64 of file char.c.
References IS_HIGHBIT_SET, palloc(), PG_GETARG_CHAR, PG_RETURN_CSTRING, and TOOCTAL.
| Datum charrecv | ( | PG_FUNCTION_ARGS | ) |
Definition at line 94 of file char.c.
References buf, PG_GETARG_POINTER, PG_RETURN_CHAR, and pq_getmsgbyte().
| Datum charsend | ( | PG_FUNCTION_ARGS | ) |
Definition at line 105 of file char.c.
References buf, PG_GETARG_CHAR, PG_RETURN_BYTEA_P, pq_begintypsend(), pq_endtypsend(), and pq_sendbyte().
| Datum chartoi4 | ( | PG_FUNCTION_ARGS | ) |
Definition at line 182 of file char.c.
References PG_GETARG_CHAR, and PG_RETURN_INT32.
| Datum i4tochar | ( | PG_FUNCTION_ARGS | ) |
Definition at line 190 of file char.c.
References ereport, errcode(), errmsg(), ERROR, PG_GETARG_INT32, and PG_RETURN_CHAR.
| Datum text_char | ( | PG_FUNCTION_ARGS | ) |
Definition at line 204 of file char.c.
References FROMOCTAL, ISOCTAL, PG_GETARG_TEXT_PP, PG_RETURN_CHAR, VARDATA_ANY(), and VARSIZE_ANY_EXHDR().