summaryrefslogtreecommitdiff
path: root/core/fxcrt/include/fx_arabic.h
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-05-06 13:15:46 -0700
committerCommit bot <commit-bot@chromium.org>2016-05-06 13:15:46 -0700
commite00f75c2318d55dfa261f1915decd2545c44ccfb (patch)
treec4189761ba9dc3be9c3e4b11172a0f3bd8ecdad7 /core/fxcrt/include/fx_arabic.h
parentd29882d3a0567e297756f69b77562ed4892f012a (diff)
downloadpdfium-e00f75c2318d55dfa261f1915decd2545c44ccfb.tar.xz
CFX_ArabicChar contains only static methods, no need to instantiate.chromium/2733chromium/2732chromium/2731chromium/2730
Review-Url: https://codereview.chromium.org/1954593004
Diffstat (limited to 'core/fxcrt/include/fx_arabic.h')
-rw-r--r--core/fxcrt/include/fx_arabic.h27
1 files changed, 10 insertions, 17 deletions
diff --git a/core/fxcrt/include/fx_arabic.h b/core/fxcrt/include/fx_arabic.h
index 96fa7954c3..2617d1897f 100644
--- a/core/fxcrt/include/fx_arabic.h
+++ b/core/fxcrt/include/fx_arabic.h
@@ -14,25 +14,18 @@
#define FX_BidiGetDeferredType(a) (((a) >> 4) & 0x0F)
#define FX_BidiGetResolvedType(a) ((a)&0x0F)
-class CFX_ArabicChar {
- public:
- void Release() { delete this; }
+namespace pdfium {
+namespace arabic {
- FX_BOOL IsArabicChar(FX_WCHAR wch) const;
- FX_BOOL IsArabicFormChar(FX_WCHAR wch) const;
+bool IsArabicChar(FX_WCHAR wch);
+bool IsArabicFormChar(FX_WCHAR wch);
+FX_WCHAR GetFormChar(FX_WCHAR wch, FX_WCHAR prev = 0, FX_WCHAR next = 0);
+FX_WCHAR GetFormChar(const CFX_Char* cur,
+ const CFX_Char* prev,
+ const CFX_Char* next);
- FX_WCHAR GetFormChar(FX_WCHAR wch,
- FX_WCHAR prev = 0,
- FX_WCHAR next = 0) const;
- FX_WCHAR GetFormChar(const CFX_Char* cur,
- const CFX_Char* prev,
- const CFX_Char* next) const;
-
- protected:
- const FX_ARBFORMTABLE* ParseChar(const CFX_Char* pTC,
- FX_WCHAR& wChar,
- FX_CHARTYPE& eType) const;
-};
+} // namespace arabic
+} // namespace pdfium
void FX_BidiReverseString(CFX_WideString& wsText,
int32_t iStart,