cc=lgetopt.cc string.cc dataf.cc textdb.cc unionfind.cc \
smat.cc matrix.cc choleski.cc vector.cc dstream.cc\
- matdebug.cc interval.cc
+ matdebug.cc interval.cc scalar.cc
templatecc=cursor.cc list.cc tsmat.cc plist.cc
inl=findcurs.inl link.inl list.inl cursor.inl plist.inl
findcurs.hh unionfind.hh compare.hh handle.hh matrix.hh\
smat.hh vsmat.hh vector.hh real.hh choleski.hh\
tsmat.hh tvsmat.hh plist.hh associter.hh fproto.hh\
- interval.hh
+ interval.hh scalar.hh
/// return a "new"-ed copy of contents
char *copy_array() const; // return a "new"-ed copy of contents
- const char *ptr() const;
- const char *ptr() { return ((const String *)this)->ptr(); }
+ const char *cptr() const;
+ const char *ptr() { return ((const String *)this)->cptr(); }
+
/// return the data. Don't use for writing the data.
- operator const char *() const { return ptr(); }
+ operator const char *() const { return cptr(); }
String operator =( const String & source ) { data = source.data; return *this; }
/// the length of the string
int len() const;
- /// DO NOT MAKE THIS INTO AN OPERATOR
- bool to_bool() const;
- /** perl -like string to bool conversion
- */
};
/**