git://git.webkit.org
/
WebKit-https.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Optimize serialization of quoted JSON strings.
[WebKit-https.git]
/
Source
/
WTF
/
wtf
/
text
/
StringBuilder.h
diff --git
a/Source/WTF/wtf/text/StringBuilder.h
b/Source/WTF/wtf/text/StringBuilder.h
index 93422a2462631f307c0c13f28cb3b561d476aef1..be5c1172cccb998a410580345af40c29cb13498e 100644
(file)
--- a/
Source/WTF/wtf/text/StringBuilder.h
+++ b/
Source/WTF/wtf/text/StringBuilder.h
@@
-159,6
+159,8
@@
public:
append(U16_TRAIL(c));
}
+ WTF_EXPORT_PRIVATE void appendQuotedJSONString(const String&);
+
template<unsigned charactersCount>
ALWAYS_INLINE void appendLiteral(const char (&characters)[charactersCount]) { append(characters, charactersCount - 1); }