8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 19:23:03 +01:00

string cleanup

This commit is contained in:
alexpeshkoff 2004-03-31 18:10:22 +00:00
parent 5f0ab80a97
commit eb23cf8796
2 changed files with 8 additions and 0 deletions

View File

@ -39,6 +39,8 @@
#undef __need_size_t #undef __need_size_t
#endif #endif
#include "../common/utils_proto.h"
namespace fb_utils { namespace fb_utils {
char* fb_exact_name(char* const str) char* fb_exact_name(char* const str)

View File

@ -32,8 +32,14 @@
#ifndef INCLUDE_UTILS_PROTO_H #ifndef INCLUDE_UTILS_PROTO_H
#define INCLUDE_UTILS_PROTO_H #define INCLUDE_UTILS_PROTO_H
#include "fb_string.h"
namespace fb_utils { namespace fb_utils {
char* fb_exact_name(char* const str); char* fb_exact_name(char* const str);
inline void fb_exact_name(Firebird::string& str)
{
str.rtrim();
}
char* fb_exact_name_limit(char* const str, size_t bufsize); char* fb_exact_name_limit(char* const str, size_t bufsize);
} }