Add pg_string_endswith as the start of a string helper library in src/common.
Andres Freund <andres@anarazel.de>
Add pg_string_endswith as the start of a string helper library in src/common. Backpatch to 9.3 where src/common was introduce, because a bugfix that needs to be backpatched, requires the function. Earlier branches will have to duplicate the code.
Files
| Path | Change | +/− |
|---|---|---|
| src/common/Makefile | modified | +1 −1 |
| src/common/string.c | added | +43 −0 |
| src/include/common/string.h | added | +15 −0 |
| src/tools/msvc/Mkvcbuild.pm | modified | +1 −1 |