Make sure string constructors are efficient on literals
authorTom Sepez <tsepez@chromium.org>
Tue, 5 May 2015 22:15:38 +0000 (15:15 -0700)
committerTom Sepez <tsepez@chromium.org>
Tue, 5 May 2015 22:15:38 +0000 (15:15 -0700)
commit2cf0d21788974dd1ea19a68259c4fbccb0e56897
tree06f5cd5713ad59a0dfc4bf1152ac0b679c7d51b1
parentaadcd71ab29f588d4997ec25855f60f5866959f2
Make sure string constructors are efficient on literals

Separate out the overload when the length is not known, and be sure that
strlen() call is in the header so that strlen("foo") => 3 (since many
compilers support this optimization).

Also delete some unused types.

BUG=pdfium:151
R=thestig@chromium.org

Review URL: https://codereview.chromium.org/1117263004
core/include/fxcrt/fx_string.h
core/src/fxcrt/fx_basic_wstring.cpp