36 #ifndef SECU_STRING_HPP
37 #define SECU_STRING_HPP
39 #include "../my_config.h"
90 bool operator != (
const std::string & ref)
const {
return ! (*
this == ref); };
91 bool operator != (
const secu_string & ref)
const {
return ! (*
this == ref); };
92 bool operator == (
const std::string &ref)
const {
return compare_with(ref.c_str(),(U_I)(ref.size())); };
93 bool operator == (
const secu_string &ref)
const {
return compare_with(ref.mem, *ref.string_size); };
124 void clear() { clean_and_destroy(); init(0); };
131 void clear_and_not_resize() { string_size = 0; };
138 const char*
c_str()
const {
return mem == NULL ?
throw SRC_BUG : mem; };
144 U_I
size()
const {
return *string_size; };
153 bool compare_with(
const char *ptr, U_I
size)
const;
154 void clean_and_destroy();