PostgreSQL Source Code  git master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
varlena.h
Go to the documentation of this file.
1 /*-------------------------------------------------------------------------
2  *
3  * varlena.h
4  * Functions for the variable-length built-in types.
5  *
6  * Portions Copyright (c) 1996-2017, PostgreSQL Global Development Group
7  * Portions Copyright (c) 1994, Regents of the University of California
8  *
9  * src/include/utils/varlena.h
10  *
11  *-------------------------------------------------------------------------
12  */
13 #ifndef VARLENA_H
14 #define VARLENA_H
15 
16 #include "nodes/pg_list.h"
17 #include "utils/sortsupport.h"
18 
19 extern int varstr_cmp(char *arg1, int len1, char *arg2, int len2, Oid collid);
20 extern void varstr_sortsupport(SortSupport ssup, Oid collid, bool bpchar);
21 extern int varstr_levenshtein(const char *source, int slen,
22  const char *target, int tlen,
23  int ins_c, int del_c, int sub_c,
24  bool trusted);
25 extern int varstr_levenshtein_less_equal(const char *source, int slen,
26  const char *target, int tlen,
27  int ins_c, int del_c, int sub_c,
28  int max_d, bool trusted);
29 extern List *textToQualifiedNameList(text *textval);
30 extern bool SplitIdentifierString(char *rawstring, char separator,
31  List **namelist);
32 extern bool SplitDirectoriesString(char *rawstring, char separator,
33  List **namelist);
34 extern text *replace_text_regexp(text *src_text, void *regexp,
35  text *replace_text, bool glob);
36 
37 #endif
Datum replace_text(PG_FUNCTION_ARGS)
Definition: varlena.c:3540
unsigned int Oid
Definition: postgres_ext.h:31
void varstr_sortsupport(SortSupport ssup, Oid collid, bool bpchar)
Definition: varlena.c:1766
text * replace_text_regexp(text *src_text, void *regexp, text *replace_text, bool glob)
Definition: varlena.c:3761
bool SplitDirectoriesString(char *rawstring, char separator, List **namelist)
Definition: varlena.c:3240
int varstr_cmp(char *arg1, int len1, char *arg2, int len2, Oid collid)
Definition: varlena.c:1384
bool SplitIdentifierString(char *rawstring, char separator, List **namelist)
Definition: varlena.c:3115
List * textToQualifiedNameList(text *textval)
Definition: varlena.c:3057
int varstr_levenshtein_less_equal(const char *source, int slen, const char *target, int tlen, int ins_c, int del_c, int sub_c, int max_d, bool trusted)
Definition: c.h:439
Datum bpchar(PG_FUNCTION_ARGS)
Definition: varchar.c:267
Definition: pg_list.h:45
int varstr_levenshtein(const char *source, int slen, const char *target, int tlen, int ins_c, int del_c, int sub_c, bool trusted)
Definition: levenshtein.c:73