postgresql/src/backend/utils/mb
Alvaro Herrera 3e9744465d
Add -Wimplicit-fallthrough to CFLAGS and CXXFLAGS
Use it at level 4, a bit more restrictive than the default level, and
tweak our commanding comments to FALLTHROUGH.

(However, leave zic.c alone, since it's external code; to avoid the
warnings that would appear there, change CFLAGS for that file in the
Makefile.)

Author: Julien Rouhaud <rjuju123@gmail.com>
Author: Álvaro Herrera <alvherre@alvh.no-ip.org>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/20200412081825.qyo5vwwco3fv4gdo@nol
Discussion: https://postgr.es/m/flat/E1fDenm-0000C8-IJ@gemulon.postgresql.org
2020-05-12 16:07:30 -04:00
..
Unicode Use perl warnings pragma consistently 2020-04-13 11:55:45 -04:00
conversion_procs Update copyrights for 2020 2020-01-01 12:21:45 -05:00
Makefile Move wchar.c and encnames.c to src/common/. 2020-01-16 15:58:55 -05:00
README Move wchar.c and encnames.c to src/common/. 2020-01-16 15:58:55 -05:00
conv.c Rationalize code placement between wchar.c, encnames.c, and mbutils.c. 2020-01-16 18:08:21 -05:00
iso.c Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
mbutils.c Add -Wimplicit-fallthrough to CFLAGS and CXXFLAGS 2020-05-12 16:07:30 -04:00
stringinfo_mb.c Improve user control over truncation of logged bind-parameter values. 2020-04-02 15:04:51 -04:00
win866.c Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
win1251.c Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
wstrcmp.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
wstrncmp.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00

README

src/backend/utils/mb/README

Encodings
=========

conv.c:		static functions and a public table for code conversion
mbutils.c:	public functions for the backend only.
stringinfo_mb.c: public backend-only multibyte-aware stringinfo functions
wstrcmp.c:	strcmp for mb
wstrncmp.c:	strncmp for mb
win866.c:	a tool to generate KOI8 <--> CP866 conversion table
iso.c:		a tool to generate KOI8 <--> ISO8859-5 conversion table
win1251.c:	a tool to generate KOI8 <--> CP1251 conversion table

See also in src/common/:

encnames.c:	public functions for encoding names
wchar.c:	mostly static functions and a public table for mb string and
		multibyte conversion

Introduction
------------
	http://www.cprogramming.com/tutorial/unicode.html