Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(345)

Unified Diff: xfa/src/fee/fx_wordbreak/fx_wordbreak_impl.cpp

Issue 1778633003: Collapse xfa/src/fee directories (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « xfa/src/fee/fx_wordbreak/fx_wordbreak_impl.h ('k') | xfa/src/fee/fx_wordbreak/fx_wordbreakdata.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: xfa/src/fee/fx_wordbreak/fx_wordbreak_impl.cpp
diff --git a/xfa/src/fee/src/fx_wordbreak/fx_wordbreak_impl.cpp b/xfa/src/fee/fx_wordbreak/fx_wordbreak_impl.cpp
similarity index 97%
rename from xfa/src/fee/src/fx_wordbreak/fx_wordbreak_impl.cpp
rename to xfa/src/fee/fx_wordbreak/fx_wordbreak_impl.cpp
index 155d1658c6908657d75027f229fbbc81b335b2ee..036b4f80facbc7a723d61934ed6860eff452ed69 100644
--- a/xfa/src/fee/src/fx_wordbreak/fx_wordbreak_impl.cpp
+++ b/xfa/src/fee/fx_wordbreak/fx_wordbreak_impl.cpp
@@ -4,14 +4,12 @@
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-#include "xfa/src/fee/src/fx_wordbreak/fx_wordbreak_impl.h"
-
-#define FX_IsOdd(a) ((a)&1)
+#include "xfa/src/fee/fx_wordbreak/fx_wordbreak_impl.h"
FX_WordBreakProp FX_GetWordBreakProperty(FX_WCHAR wcCodePoint) {
FX_DWORD dwProperty =
(FX_DWORD)gs_FX_WordBreak_CodePointProperties[wcCodePoint >> 1];
- return (FX_WordBreakProp)(FX_IsOdd(wcCodePoint) ? (dwProperty & 0x0F)
+ return (FX_WordBreakProp)(((wcCodePoint) & 1) ? (dwProperty & 0x0F)
: (dwProperty >> 4));
}
CFX_CharIter::CFX_CharIter(const CFX_WideString& wsText)
« no previous file with comments | « xfa/src/fee/fx_wordbreak/fx_wordbreak_impl.h ('k') | xfa/src/fee/fx_wordbreak/fx_wordbreakdata.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698