32 #ifndef SECU_STRING_HPP
33 #define SECU_STRING_HPP
35 #include "../my_config.h"
86 bool operator != (
const std::string & ref)
const {
return ! (*
this == ref); };
87 bool operator != (
const secu_string & ref)
const {
return ! (*
this == ref); };
88 bool operator == (
const std::string &ref)
const {
return compare_with(ref.c_str(),(U_I)(ref.size())); };
89 bool operator == (
const secu_string &ref)
const {
return compare_with(ref.mem, *ref.string_size); };
120 void clear() { clean_and_destroy(); init(0); };
127 void clear_and_not_resize() { string_size = 0; };
134 const char*
c_str()
const {
return mem == NULL ?
throw SRC_BUG : mem; };
140 U_I
size()
const {
return *string_size; };
142 #ifdef LIBDAR_SPECIAL_ALLOC
152 bool compare_with(
const char *ptr, U_I
size)
const;
153 void clean_and_destroy();