2003-12-31 11:33:02 +01:00
|
|
|
/*
|
2004-07-10 05:17:02 +02:00
|
|
|
* The contents of this file are subject to the Initial
|
|
|
|
* Developer's Public License Version 1.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the
|
|
|
|
* License. You may obtain a copy of the License at
|
|
|
|
* http://www.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_idpl.
|
2003-12-31 11:33:02 +01:00
|
|
|
*
|
2004-07-10 05:17:02 +02:00
|
|
|
* Software distributed under the License is distributed AS IS,
|
|
|
|
* WITHOUT WARRANTY OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing rights
|
|
|
|
* and limitations under the License.
|
2003-12-31 11:33:02 +01:00
|
|
|
*
|
2004-07-10 05:17:02 +02:00
|
|
|
* The Original Code was created by Claudio Valderrama on 25-Dec-2003
|
|
|
|
* for the Firebird Open Source RDBMS project.
|
2003-12-31 11:33:02 +01:00
|
|
|
*
|
2004-07-10 05:17:02 +02:00
|
|
|
* Copyright (c) 2003 Claudio Valderrama
|
|
|
|
* and all contributors signed below.
|
2003-12-31 11:33:02 +01:00
|
|
|
*
|
2004-07-10 05:17:02 +02:00
|
|
|
* All Rights Reserved.
|
|
|
|
* Contributor(s): ______________________________________.
|
2003-12-31 11:33:02 +01:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2004-07-10 05:17:02 +02:00
|
|
|
|
2003-12-31 11:33:02 +01:00
|
|
|
// =====================================
|
|
|
|
// Utility functions
|
|
|
|
|
|
|
|
#ifndef INCLUDE_UTILS_PROTO_H
|
|
|
|
#define INCLUDE_UTILS_PROTO_H
|
|
|
|
|
2004-12-17 06:41:47 +01:00
|
|
|
#include "../common/classes/fb_string.h"
|
2004-03-31 20:10:22 +02:00
|
|
|
|
2004-09-15 05:49:52 +02:00
|
|
|
namespace fb_utils
|
|
|
|
{
|
2004-09-26 03:49:52 +02:00
|
|
|
char* exact_name(char* const str);
|
|
|
|
inline void exact_name(Firebird::string& str)
|
2004-03-31 20:10:22 +02:00
|
|
|
{
|
|
|
|
str.rtrim();
|
|
|
|
}
|
2004-09-26 03:49:52 +02:00
|
|
|
char* exact_name_limit(char* const str, size_t bufsize);
|
2004-09-26 09:38:34 +02:00
|
|
|
int name_length(const TEXT* const name);
|
2004-09-26 13:17:39 +02:00
|
|
|
int snprintf(char* buffer, size_t count, const char* format...);
|
2004-06-14 01:45:02 +02:00
|
|
|
} // namespace fb_utils
|
2003-12-31 11:33:02 +01:00
|
|
|
|
|
|
|
#endif // INCLUDE_UTILS_PROTO_H
|
|
|
|
|