Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(91)

Unified Diff: public/platform/WebString.h

Issue 15806014: Reduce usage of WebString::data (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Tools/DumpRenderTree/chromium/TestRunner/src/SpellCheckClient.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebString.h
diff --git a/public/platform/WebString.h b/public/platform/WebString.h
index c336dd113dcd61aefae52a9808b6c57275f3b9df..b8bc939db832b32cb9635e47f1f686331144002f 100644
--- a/public/platform/WebString.h
+++ b/public/platform/WebString.h
@@ -78,6 +78,9 @@ public:
WEBKIT_EXPORT size_t length() const;
WEBKIT_EXPORT const WebUChar* data() const;
+ // Caller must check bounds.
+ WEBKIT_EXPORT WebUChar at(unsigned) const;
+
bool isEmpty() const { return !length(); }
bool isNull() const { return !m_private; }
@@ -159,6 +162,7 @@ public:
private:
void assign(WebStringPrivate*);
+
WebStringPrivate* m_private;
};
« no previous file with comments | « Tools/DumpRenderTree/chromium/TestRunner/src/SpellCheckClient.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698