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 --- fxbarcode/datamatrix/BC_EncoderContext.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'fxbarcode/datamatrix/BC_EncoderContext.cpp') diff --git a/fxbarcode/datamatrix/BC_EncoderContext.cpp b/fxbarcode/datamatrix/BC_EncoderContext.cpp index eaf3768f49..6e1671035a 100644 --- a/fxbarcode/datamatrix/BC_EncoderContext.cpp +++ b/fxbarcode/datamatrix/BC_EncoderContext.cpp @@ -28,12 +28,12 @@ #include "fxbarcode/datamatrix/BC_SymbolInfo.h" #include "fxbarcode/utils.h" -CBC_EncoderContext::CBC_EncoderContext(const CFX_WideString& msg, - const CFX_WideString& ecLevel, +CBC_EncoderContext::CBC_EncoderContext(const WideString& msg, + const WideString& ecLevel, int32_t& e) { - CFX_ByteString dststr; + ByteString dststr; CBC_UtilCodingConvert::UnicodeToUTF8(msg, dststr); - CFX_WideString sb; + WideString sb; FX_STRSIZE c = dststr.GetLength(); for (FX_STRSIZE i = 0; i < c; i++) { wchar_t ch = static_cast(dststr[i] & 0xff); @@ -66,7 +66,7 @@ wchar_t CBC_EncoderContext::getCurrent() { return m_msg[m_pos]; } -void CBC_EncoderContext::writeCodewords(const CFX_WideString& codewords) { +void CBC_EncoderContext::writeCodewords(const WideString& codewords) { m_codewords += codewords; } -- cgit v1.2.3