PostgreSQL Source Code
git master
|
#include "postgres.h"
#include "mb/pg_wchar.h"
#include "utils/ascii.h"
#include "utils/fmgrprotos.h"
#include "varatt.h"
Go to the source code of this file.
Macros | |
#define | RANGE_128 128 |
#define | RANGE_160 160 |
Functions | |
static void | pg_to_ascii (unsigned char *src, unsigned char *src_end, unsigned char *dest, int enc) |
static text * | encode_to_ascii (text *data, int enc) |
Datum | to_ascii_encname (PG_FUNCTION_ARGS) |
Datum | to_ascii_enc (PG_FUNCTION_ARGS) |
Datum | to_ascii_default (PG_FUNCTION_ARGS) |
void | ascii_safe_strlcpy (char *dest, const char *src, size_t destsiz) |
#define RANGE_128 128 |
#define RANGE_160 160 |
void ascii_safe_strlcpy | ( | char * | dest, |
const char * | src, | ||
size_t | destsiz | ||
) |
Definition at line 174 of file ascii.c.
References generate_unaccent_rules::dest.
Referenced by BackgroundWorkerStateChange(), and pgstat_get_crashed_backend_activity().
Definition at line 104 of file ascii.c.
References data, enc, pg_to_ascii(), VARDATA, and VARSIZE.
Referenced by to_ascii_default(), to_ascii_enc(), and to_ascii_encname().
|
static |
Definition at line 29 of file ascii.c.
References ascii(), generate_unaccent_rules::dest, enc, ereport, errcode(), errmsg(), ERROR, pg_encoding_to_char, PG_LATIN1, PG_LATIN2, PG_LATIN9, PG_WIN1250, range(), RANGE_128, RANGE_160, and x.
Referenced by encode_to_ascii().
Datum to_ascii_default | ( | PG_FUNCTION_ARGS | ) |
Definition at line 156 of file ascii.c.
References data, enc, encode_to_ascii(), GetDatabaseEncoding(), PG_GETARG_TEXT_P_COPY, and PG_RETURN_TEXT_P.
Datum to_ascii_enc | ( | PG_FUNCTION_ARGS | ) |
Definition at line 138 of file ascii.c.
References data, enc, encode_to_ascii(), ereport, errcode(), errmsg(), ERROR, PG_GETARG_INT32, PG_GETARG_TEXT_P_COPY, PG_RETURN_TEXT_P, and PG_VALID_ENCODING.
Datum to_ascii_encname | ( | PG_FUNCTION_ARGS | ) |
Definition at line 119 of file ascii.c.
References data, enc, encode_to_ascii(), ereport, errcode(), errmsg(), ERROR, NameStr, pg_char_to_encoding, PG_GETARG_NAME, PG_GETARG_TEXT_P_COPY, and PG_RETURN_TEXT_P.