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 --- fpdfsdk/pwl/cpwl_edit_impl.h | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'fpdfsdk/pwl/cpwl_edit_impl.h') diff --git a/fpdfsdk/pwl/cpwl_edit_impl.h b/fpdfsdk/pwl/cpwl_edit_impl.h index 177a0524f4..a63b22cd10 100644 --- a/fpdfsdk/pwl/cpwl_edit_impl.h +++ b/fpdfsdk/pwl/cpwl_edit_impl.h @@ -233,7 +233,7 @@ class CFXEU_Clear : public IFX_Edit_UndoItem { public: CFXEU_Clear(CPWL_EditImpl* pEdit, const CPVT_WordRange& wrSel, - const CFX_WideString& swText); + const WideString& swText); ~CFXEU_Clear() override; // IFX_Edit_UndoItem: @@ -244,7 +244,7 @@ class CFXEU_Clear : public IFX_Edit_UndoItem { CFX_UnownedPtr m_pEdit; CPVT_WordRange m_wrSel; - CFX_WideString m_swText; + WideString m_swText; }; class CFXEU_InsertText : public IFX_Edit_UndoItem { @@ -252,7 +252,7 @@ class CFXEU_InsertText : public IFX_Edit_UndoItem { CFXEU_InsertText(CPWL_EditImpl* pEdit, const CPVT_WordPlace& wpOldPlace, const CPVT_WordPlace& wpNewPlace, - const CFX_WideString& swText, + const WideString& swText, int32_t charset); ~CFXEU_InsertText() override; @@ -265,7 +265,7 @@ class CFXEU_InsertText : public IFX_Edit_UndoItem { CPVT_WordPlace m_wpOld; CPVT_WordPlace m_wpNew; - CFX_WideString m_swText; + WideString m_swText; int32_t m_nCharset; }; @@ -323,27 +323,27 @@ class CPWL_EditImpl { void OnVK_RIGHT(bool bShift, bool bCtrl); void OnVK_HOME(bool bShift, bool bCtrl); void OnVK_END(bool bShift, bool bCtrl); - void SetText(const CFX_WideString& sText); + void SetText(const WideString& sText); bool InsertWord(uint16_t word, int32_t charset); bool InsertReturn(); bool Backspace(); bool Delete(); bool ClearSelection(); - bool InsertText(const CFX_WideString& sText, int32_t charset); + bool InsertText(const WideString& sText, int32_t charset); bool Redo(); bool Undo(); CPVT_WordPlace WordIndexToWordPlace(int32_t index) const; CPVT_WordPlace SearchWordPlace(const CFX_PointF& point) const; int32_t GetCaret() const; CPVT_WordPlace GetCaretWordPlace() const; - CFX_WideString GetSelectedText() const; - CFX_WideString GetText() const; + WideString GetSelectedText() const; + WideString GetText() const; float GetFontSize() const; uint16_t GetPasswordChar() const; CFX_PointF GetScrollPos() const; int32_t GetCharArray() const; CFX_FloatRect GetContentRect() const; - CFX_WideString GetRangeText(const CPVT_WordRange& range) const; + WideString GetRangeText(const CPVT_WordRange& range) const; int32_t GetHorzScale() const; float GetCharSpace() const; void SetSelection(int32_t nStartChar, int32_t nEndChar); @@ -366,15 +366,15 @@ class CPWL_EditImpl { bool Empty(); CPVT_WordPlace DoInsertText(const CPVT_WordPlace& place, - const CFX_WideString& sText, + const WideString& sText, int32_t charset); int32_t GetCharSetFromUnicode(uint16_t word, int32_t nOldCharset); int32_t GetTotalLines() const; - CFX_ByteString GetPDFWordString(int32_t nFontIndex, - uint16_t Word, - uint16_t SubWord); + ByteString GetPDFWordString(int32_t nFontIndex, + uint16_t Word, + uint16_t SubWord); private: friend class CPWL_EditImpl_Iterator; @@ -408,7 +408,7 @@ class CPWL_EditImpl { bool Backspace(bool bAddUndo, bool bPaint); bool Delete(bool bAddUndo, bool bPaint); bool Clear(bool bAddUndo, bool bPaint); - bool InsertText(const CFX_WideString& sText, + bool InsertText(const WideString& sText, int32_t charset, bool bAddUndo, bool bPaint); -- cgit v1.2.3