mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 19:23:03 +01:00
string cleanup
This commit is contained in:
parent
5f0ab80a97
commit
eb23cf8796
@ -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)
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user