2006-08-31 Anders Carlsson <acarlsson@apple.com>
[WebKit-https.git] / WebCore / ChangeLog
index 8e54b85b5365e86b899599a2138b9a213926315c..2c9f7a1fc7c681dfd3e2ccdc41b7cbb023c7f3b6 100644 (file)
@@ -1,3 +1,30 @@
+2006-08-31  Anders Carlsson  <acarlsson@apple.com>
+
+        Reviewed by Maciej.
+
+        Add CString. CString is a simple, null-terminated byte buffer that supports data
+        sharing. Its main use is to be a better const char*.
+        
+        Also add latin1 and utf8 methods to String which returns CStrings.
+        
+        * platform/CString.cpp: Added.
+        (WebCore::CString::CString):
+        (WebCore::CString::init):
+        (WebCore::CString::data):
+        (WebCore::CString::length):
+        (WebCore::CString::deprecatedCString):
+        * platform/CString.h: Added.
+        (WebCore::CStringBuffer::CStringBuffer):
+        (WebCore::CStringBuffer::data):
+        (WebCore::CStringBuffer::length):
+        (WebCore::CString::CString):
+        (WebCore::CString::operator const char*):
+        (WebCore::CString::isNull):
+        * platform/PlatformString.h:
+        * platform/String.cpp:
+        (WebCore::String::latin1):
+        (WebCore::String::utf8):
+
 2006-08-31  Brady Eidson  <beidson@apple.com>
 
         Reviewed by Hyatt