#include "string-handle.hh"
+/**
+ technically incorrect, but lets keep it here: this is a
+ catch all place for this stuff.
+ */
+
+#include "international.hh"
+
/**
Intuitive string class. provides
String (char c, int n = 1);
String (int i , char const *fmt=0);
- String ( double f , char const* fmt =0);
+ String (double f , char const* fmt =0);
/// 'true' or 'false'
String (bool);
char* ch_l();
Byte* byte_l();
- /// deprecated; use ch_C()
- operator char const*() const { return ch_C(); }
-
- String &operator =( String const & source);
+ String &operator =(String const & source);
/// concatenate s
void operator += (char const* s) { strh_ += s; }
void operator += (String s);
- operator bool ()
+ bool empty_b () const;
+#if 0
+ /** is the string empty?
+
+ Ugh-ugh-thank-you-cygnus. W32 barfs on this
+ */
+ operator bool () const;
{
return length_i ();
}
+#endif
void append (String);
void prepend (String);
- char operator []( int n) const { return strh_[n]; }
+ char operator [](int n) const { return strh_[n]; }
/// return n leftmost chars
String left_str (int n) const;
}
inline ostream &
-operator << ( ostream& os, String d)
+operator << (ostream& os, String d)
{
d.print_on (os);
return os;