mirror of
https://github.com/postgres/postgres.git
synced 2025-07-02 09:02:37 +03:00
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.
This commit is contained in:
15
src/include/common/string.h
Normal file
15
src/include/common/string.h
Normal file
@ -0,0 +1,15 @@
|
||||
/*
|
||||
* string.h
|
||||
* string handling helpers
|
||||
*
|
||||
* Portions Copyright (c) 1996-2015, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* src/include/common/string.h
|
||||
*/
|
||||
#ifndef COMMON_STRING_H
|
||||
#define COMMON_STRING_H
|
||||
|
||||
extern bool pg_str_endswith(const char *str, const char *end);
|
||||
|
||||
#endif /* COMMON_STRING_H */
|
Reference in New Issue
Block a user