Index: Source/wtf/text/StringBuilder.h |
diff --git a/Source/wtf/text/StringBuilder.h b/Source/wtf/text/StringBuilder.h |
old mode 100644 |
new mode 100755 |
index 3f78ed03b1a51a4e5a181a411f33f5fd339abbc2..292359b438d94e61374eac77908ce33d5a195100 |
--- a/Source/wtf/text/StringBuilder.h |
+++ b/Source/wtf/text/StringBuilder.h |
@@ -260,6 +260,8 @@ public: |
bool is8Bit() const { return m_is8Bit; } |
+ unsigned sizeInBytes() const { return length() * (is8Bit() ? sizeof(LChar) : sizeof(UChar)); } |
+ |
void clear() |
{ |
m_length = 0; |