summaryrefslogtreecommitdiff
path: root/src/include/common/string.h
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2015-01-03 20:51:52 +0100
committerAndres Freund <andres@anarazel.de>2015-01-03 20:54:12 +0100
commitccb161b66addc9d0ede31359c05f7e9df61ab8d4 (patch)
tree71a9798e0fd2ad3117d972167fde404379f0f48b /src/include/common/string.h
parentd6657d2a107bee20d63ec2f776d873242f9355e9 (diff)
downloadpostgresql-ccb161b66addc9d0ede31359c05f7e9df61ab8d4.tar.gz
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.
Diffstat (limited to 'src/include/common/string.h')
-rw-r--r--src/include/common/string.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/include/common/string.h b/src/include/common/string.h
new file mode 100644
index 0000000000..023385856f
--- /dev/null
+++ b/src/include/common/string.h
@@ -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 */