1/*
2 * This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
5 *
6 * Copyright 1997 - July 2008 CWI, August 2008 - 2019 MonetDB B.V.
7 */
8
9#ifndef _SQL_STRING_H_
10#define _SQL_STRING_H_
11
12#define D__SQL 16
13
14#define _(String) (String)
15#define N_(String) (String)
16
17extern char *mkLower(char *v);
18extern char *toLower(const char *v);
19extern char *toUpper(const char *v);
20extern char *strconcat(const char *s1, const char *s2);
21extern char *strip_extra_zeros(char *v);
22extern char *sql_strdup(char *s);
23extern char *sql_escape_str(char *s);
24extern const char *sql_escape_ident(const char *s);
25extern char *sql_message(_In_z_ _Printf_format_string_ const char *format, ...)
26 __attribute__((__format__(__printf__, 1, 2)));
27extern char *sa_message(sql_allocator *sa, _In_z_ _Printf_format_string_ const char *format, ...)
28 __attribute__((__format__(__printf__, 2, 3)));
29
30#endif /*_SQL_STRING_H_*/
31
32