From 275e260a6cd4a8e506ba974feb85ebcd926c1739 Mon Sep 17 00:00:00 2001 From: Ryan Harrison Date: Mon, 18 Sep 2017 14:23:18 -0400 Subject: Convert string class names Automated using git grep & sed. Replace StringC classes with StringView classes. Remove the CFX_ prefix and put string classes in fxcrt namespace. Change AsStringC() to AsStringView(). Rename tests from TEST(fxcrt, *String*Foo) to TEST(*String*, Foo). Couple of tests needed to have their names regularlized. BUG=pdfium:894 Change-Id: I7ca038685c8d803795f3ed02545124f7a224c83d Reviewed-on: https://pdfium-review.googlesource.com/14151 Reviewed-by: Tom Sepez Commit-Queue: Ryan Harrison --- BUILD.gn | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'BUILD.gn') diff --git a/BUILD.gn b/BUILD.gn index b4b93b5849..8606748926 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -803,13 +803,13 @@ config("fxge_warnings") { static_library("fxcrt") { sources = [ + "core/fxcrt/bytestring.cpp", + "core/fxcrt/bytestring.h", "core/fxcrt/cfx_autorestorer.h", "core/fxcrt/cfx_binarybuf.cpp", "core/fxcrt/cfx_binarybuf.h", "core/fxcrt/cfx_bitstream.cpp", "core/fxcrt/cfx_bitstream.h", - "core/fxcrt/cfx_bytestring.cpp", - "core/fxcrt/cfx_bytestring.h", "core/fxcrt/cfx_datetime.cpp", "core/fxcrt/cfx_datetime.h", "core/fxcrt/cfx_fileaccess_posix.cpp", @@ -823,15 +823,12 @@ static_library("fxcrt") { "core/fxcrt/cfx_observable.h", "core/fxcrt/cfx_retain_ptr.h", "core/fxcrt/cfx_shared_copy_on_write.h", - "core/fxcrt/cfx_string_c_template.h", "core/fxcrt/cfx_string_data_template.h", "core/fxcrt/cfx_string_pool_template.h", "core/fxcrt/cfx_unowned_ptr.h", "core/fxcrt/cfx_utf8decoder.cpp", "core/fxcrt/cfx_utf8decoder.h", "core/fxcrt/cfx_weak_ptr.h", - "core/fxcrt/cfx_widestring.cpp", - "core/fxcrt/cfx_widestring.h", "core/fxcrt/cfx_widetextbuf.cpp", "core/fxcrt/cfx_widetextbuf.h", "core/fxcrt/fx_bidi.cpp", @@ -858,6 +855,9 @@ static_library("fxcrt") { "core/fxcrt/fx_unicode.h", "core/fxcrt/ifx_fileaccess.h", "core/fxcrt/ifx_pauseindicator.h", + "core/fxcrt/string_view_template.h", + "core/fxcrt/widestring.cpp", + "core/fxcrt/widestring.h", "core/fxcrt/xml/cxml_attritem.cpp", "core/fxcrt/xml/cxml_attritem.h", "core/fxcrt/xml/cxml_attrmap.cpp", @@ -1917,7 +1917,7 @@ test("pdfium_unittests") { "core/fxcodec/codec/fx_codec_rle_unittest.cpp", "core/fxcodec/jbig2/JBig2_BitStream_unittest.cpp", "core/fxcodec/jbig2/JBig2_Image_unittest.cpp", - "core/fxcrt/cfx_bytestring_unittest.cpp", + "core/fxcrt/bytestring_unittest.cpp", "core/fxcrt/cfx_maybe_owned_unittest.cpp", "core/fxcrt/cfx_observable_unittest.cpp", "core/fxcrt/cfx_retain_ptr_unittest.cpp", @@ -1925,7 +1925,6 @@ test("pdfium_unittests") { "core/fxcrt/cfx_string_pool_template_unittest.cpp", "core/fxcrt/cfx_unowned_ptr_unittest.cpp", "core/fxcrt/cfx_weak_ptr_unittest.cpp", - "core/fxcrt/cfx_widestring_unittest.cpp", "core/fxcrt/fx_bidi_unittest.cpp", "core/fxcrt/fx_coordinates_unittest.cpp", "core/fxcrt/fx_extension_unittest.cpp", @@ -1933,6 +1932,7 @@ test("pdfium_unittests") { "core/fxcrt/fx_random_unittest.cpp", "core/fxcrt/fx_string_unittest.cpp", "core/fxcrt/fx_system_unittest.cpp", + "core/fxcrt/widestring_unittest.cpp", "core/fxge/dib/cstretchengine_unittest.cpp", "fpdfsdk/fpdfdoc_unittest.cpp", "fpdfsdk/fpdfeditimg_unittest.cpp", -- cgit v1.2.3