| 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 |  | 
| 17 | extern char *mkLower(char *v); | 
| 18 | extern char *toLower(const char *v); | 
| 19 | extern char *toUpper(const char *v); | 
| 20 | extern char *strconcat(const char *s1, const char *s2); | 
| 21 | extern char *(char *v); | 
| 22 | extern char *sql_strdup(char *s); | 
| 23 | extern char *sql_escape_str(char *s); | 
| 24 | extern const char *sql_escape_ident(const char *s); | 
| 25 | extern char *sql_message(_In_z_ _Printf_format_string_ const char *format, ...) | 
| 26 | 	__attribute__((__format__(__printf__, 1, 2))); | 
| 27 | extern 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 |  |