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

Unified Diff: Source/wtf/text/TextEncoding.h

Issue 27030014: Remove Backslash-as-JPY hack (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: TextCodec/Encoding added Created 7 years, 2 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 | « Source/wtf/text/TextCodecICU.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/text/TextEncoding.h
diff --git a/Source/wtf/text/TextEncoding.h b/Source/wtf/text/TextEncoding.h
index 7ba35fe8cf399c8434b483ea3b0fe5a2da5d1d36..1e4aa7b3f683f8135a38cd9c8103a78086464b0b 100644
--- a/Source/wtf/text/TextEncoding.h
+++ b/Source/wtf/text/TextEncoding.h
@@ -42,26 +42,6 @@ public:
bool isValid() const { return m_name; }
const char* name() const { return m_name; }
bool usesVisualOrdering() const;
-
- bool hasTrivialDisplayString() const { return m_backslashAsCurrencySymbol == '\\'; }
-
- PassRefPtr<StringImpl> displayString(PassRefPtr<StringImpl> str) const
- {
- if (hasTrivialDisplayString() || !str)
- return str;
- return str->replace('\\', m_backslashAsCurrencySymbol);
- }
- template <typename CharacterType>
- void displayBuffer(CharacterType* characters, unsigned len) const
- {
- if (hasTrivialDisplayString())
- return;
- for (unsigned i = 0; i < len; ++i) {
- if (characters[i] == '\\')
- characters[i] = m_backslashAsCurrencySymbol;
- }
- }
-
const TextEncoding& closestByteBasedEquivalent() const;
const TextEncoding& encodingForFormSubmission() const;
« no previous file with comments | « Source/wtf/text/TextCodecICU.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698