Add missing operators for CFX_ByteStringC.
authorTom Sepez <tsepez@chromium.org>
Wed, 22 Apr 2015 19:04:14 +0000 (12:04 -0700)
committerTom Sepez <tsepez@chromium.org>
Wed, 22 Apr 2015 19:04:14 +0000 (12:04 -0700)
commit1ddf056da74de0a34631b8a719f4f02b4ec82144
tree45217449a89d4286a903c76774971c1c2c6c38e4
parentea6a069e6e593d97513e86fc761cf789a9714c22
Add missing operators for CFX_ByteStringC.

Removing the implicit cast operator forces a build breakage should we
use ByteStringC in STL containers. Adding an operator< restores correct
behaviour. Adding an operator[] avoids re-writing some code to call
GetPtr() prior to array indexing.

Part 1 of 4.

R=thestig@chromium.org
TBR=brucedawson@chromium.org
BUG=pdfium:142.

Review URL: https://codereview.chromium.org/1090303003
core/include/fxcrt/fx_string.h
core/src/fpdfapi/fpdf_page/fpdf_page_graph_state.cpp
core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp
core/src/fpdfapi/fpdf_parser/fpdf_parser_utility.cpp
core/src/fxcrt/fx_basic_bstring.cpp
core/src/fxcrt/fx_basic_bstring_unittest.cpp
core/src/fxcrt/fx_basic_buffer.cpp
core/src/fxcrt/fx_basic_maps.cpp