summaryrefslogtreecommitdiff
path: root/devel/hp48xgcc/files/patch-class+LKV+Str.h
blob: 4f7c63c6f4c1727ba5e597985dc5673f4b720637 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
--- class/LKV/Str.h	3 Nov 2004 06:57:51 -0000	1.1
+++ class/LKV/Str.h	20 Feb 2006 11:18:51 -0000
@@ -68,6 +68,15 @@
 		return !(operator>(rv));
 	};
 	
+	int operator<(const char * p) const;
+	inline int operator>=(const char * p) const {
+		return !(operator<(p));
+	};
+//	int operator>(const char * p) const;
+//	inline int operator<=(const char * p) const {
+//		return !(operator>(p));
+//	};
+
 	// ====== casting ======
 	
 	inline operator const char *() const {
@@ -78,11 +87,11 @@
 		return (const unsigned char *) adr;
 	}
 
-	inline operator char *() {
+	inline operator char *() const {
 		return adr;
 	}
 	
-	inline operator unsigned char *() {
+	inline operator unsigned char *() const {
 		return (unsigned char *) adr;
 	}
 	
@@ -168,6 +177,8 @@
 Str FtoStr(double val);
 Str LtoStr(long);
 
+#include <iostream.h>
+
 class ostream;
 ostream & operator<< (ostream & o, const Str & s);
 
@@ -180,4 +191,4 @@
 class BIstream;
 BIstream & operator>> (BIstream & i, Str & s);
 
-#endif Str_h
+#endif /* Str_h */