diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-05-01 17:07:19 -0700 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-05-01 17:07:19 -0700 |
commit | a0446b2db3666899f4780c14e1905e354ccaaa00 (patch) | |
tree | 1039781cd01b9589fe27dd182c7a47b367ac7977 /core/include/fxcrt | |
parent | 0b36bb48bd2e8c0a24505521e267cdd52a1dd683 (diff) | |
download | pdfium-a0446b2db3666899f4780c14e1905e354ccaaa00.tar.xz |
Merge to XFA: Backfill some FX String/StringC unit tests for == and !=.
Original Review URL: https://codereview.chromium.org/1118973005
Original Review URL: https://codereview.chromium.org/1122573002
R=thestig@chromium.org
TBR=thestig@chromium.org
Review URL: https://codereview.chromium.org/1126433002
Diffstat (limited to 'core/include/fxcrt')
-rw-r--r-- | core/include/fxcrt/fx_string.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/core/include/fxcrt/fx_string.h b/core/include/fxcrt/fx_string.h index c98a77cfe1..b4d7249209 100644 --- a/core/include/fxcrt/fx_string.h +++ b/core/include/fxcrt/fx_string.h @@ -182,7 +182,10 @@ struct CFX_StringData { FX_STRSIZE m_nAllocLength; FX_CHAR m_String[1]; }; -class CFX_ByteString + +// A mutable string with shared buffers using copy-on-write semantics that +// avoids the cost of std::string's iterator stability guarantees. +class CFX_ByteString { public: typedef FX_CHAR value_type; @@ -595,7 +598,10 @@ struct CFX_StringDataW { FX_STRSIZE m_nAllocLength; FX_WCHAR m_String[1]; }; -class CFX_WideString + +// A mutable string with shared buffers using copy-on-write semantics that +// avoids the cost of std::string's iterator stability guarantees. +class CFX_WideString { public: typedef FX_WCHAR value_type; |