Add gnulib gettext module for config.rpath
[clinton/bobotpp.git] / source / String.H
index 70f6a55..7d1bee9 100644 (file)
@@ -14,7 +14,7 @@
 
 // You should have received a copy of the GNU General Public License
 // along with this program; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307, USA.
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 
 #ifndef BSTRING_H
 #define BSTRING_H
 
 class String {
 
-  struct srep {
-    char *s;  // pointer on the data
-    int n;    // reference counter
-    srep() 
-      { n = 1; }
-  };
-  srep *p;
-  int len;
-  
+  std::string my_string;
+
 public:
   String();
   String(const char *);
@@ -89,7 +82,7 @@ public:
 
   friend std::string operator+(const std::string &, const String &);
   
-  operator const char *() const;
+  const char* c_str () const;
   operator std::string () const;
 
   friend std::ostream & operator<<(std::ostream &, const String &);