[phc-internals] svn commit by edsko

svn at phpcompiler.org svn at phpcompiler.org
Wed Nov 2 16:40:49 GMT 2005


Missing file.

# Changed
A   phc/src/lib/String.h

# Diff
Added: phc/src/lib/String.h
===================================================================
--- phc/src/lib/String.h	2005-11-02 16:40:29 UTC (rev 389)
+++ phc/src/lib/String.h	2005-11-02 16:40:47 UTC (rev 390)
@@ -0,0 +1,24 @@
+/*
+ * phc -- the open source PHP compiler
+ * Like STL string, but inherit from Object
+ */
+
+#ifndef STRING_H
+#define STRING_H
+
+#include <string>
+#include "object.h"
+
+using namespace std;
+
+class String : public string, virtual public Object
+{
+public:
+	String() {}
+	String(string& s) : string(s) {}
+	String(const char* s) : string(s) {}
+	String(const char* s, size_t n) : string(s, n) {}
+	virtual ~String() {}
+};
+
+#endif


More information about the phc-internals mailing list