diff options
Diffstat (limited to 'src/interfaces/libpq/fe-misc.c')
-rw-r--r-- | src/interfaces/libpq/fe-misc.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/interfaces/libpq/fe-misc.c b/src/interfaces/libpq/fe-misc.c index 3717998a6b1..d484747b9c5 100644 --- a/src/interfaces/libpq/fe-misc.c +++ b/src/interfaces/libpq/fe-misc.c @@ -23,7 +23,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $PostgreSQL: pgsql/src/interfaces/libpq/fe-misc.c,v 1.104 2003/11/29 19:52:12 pgsql Exp $ + * $PostgreSQL: pgsql/src/interfaces/libpq/fe-misc.c,v 1.105 2004/03/15 10:41:26 ishii Exp $ * *------------------------------------------------------------------------- */ @@ -1096,6 +1096,16 @@ PQmblen(const unsigned char *s, int encoding) } /* + * returns the display length of the word beginning s, using the + * specified encoding. + */ +int +PQdsplen(const unsigned char *s, int encoding) +{ + return (pg_encoding_dsplen(encoding, s)); +} + +/* * Get encoding id from environment variable PGCLIENTENCODING. */ int |