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

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

Issue 1172793002: Merge to XFA: Use stdint.h types throughout PDFium. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 6 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/src/fx_wordbreak/fx_wordbreak_impl.h ('k') | xfa/src/fee/src/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/src/fx_wordbreak/fx_wordbreak_impl.cpp
diff --git a/xfa/src/fee/src/fx_wordbreak/fx_wordbreak_impl.cpp b/xfa/src/fee/src/fx_wordbreak/fx_wordbreak_impl.cpp
index 4847af9ed34fbe33acf0363fa7d7844cb9b11cec..ff8dafcf0fcf235cf8a2e4b6762721d3c815994e 100644
--- a/xfa/src/fee/src/fx_wordbreak/fx_wordbreak_impl.cpp
+++ b/xfa/src/fee/src/fx_wordbreak/fx_wordbreak_impl.cpp
@@ -44,14 +44,14 @@ FX_WCHAR CFX_CharIter::GetChar()
{
return m_wsText.GetAt(m_nIndex);
}
-void CFX_CharIter::SetAt(FX_INT32 nIndex)
+void CFX_CharIter::SetAt(int32_t nIndex)
{
if (nIndex < 0 || nIndex >= m_wsText.GetLength()) {
return;
}
m_nIndex = nIndex;
}
-FX_INT32 CFX_CharIter::GetAt() const
+int32_t CFX_CharIter::GetAt() const
{
return m_nIndex;
}
@@ -118,7 +118,7 @@ FX_BOOL CFX_WordBreak::Next(FX_BOOL bPrev)
}
return TRUE;
}
-void CFX_WordBreak::SetAt(FX_INT32 nIndex)
+void CFX_WordBreak::SetAt(int32_t nIndex)
{
if (m_pPreIter) {
m_pPreIter->Release();
@@ -130,23 +130,23 @@ void CFX_WordBreak::SetAt(FX_INT32 nIndex)
m_pCurIter = m_pPreIter->Clone();
FindNextBreakPos(m_pCurIter, FALSE, FALSE);
}
-FX_INT32 CFX_WordBreak::GetWordPos() const
+int32_t CFX_WordBreak::GetWordPos() const
{
return m_pPreIter->GetAt();
}
-FX_INT32 CFX_WordBreak::GetWordLength() const
+int32_t CFX_WordBreak::GetWordLength() const
{
return m_pCurIter->GetAt() - m_pPreIter->GetAt() + 1;
}
void CFX_WordBreak::GetWord(CFX_WideString &wsWord) const
{
- FX_INT32 nWordLength = GetWordLength();
+ int32_t nWordLength = GetWordLength();
if (nWordLength <= 0) {
return;
}
FX_LPWSTR lpBuf = wsWord.GetBuffer(nWordLength);
IFX_CharIter * pTempIter = m_pPreIter->Clone();
- FX_INT32 i = 0;
+ int32_t i = 0;
while (pTempIter->GetAt() <= m_pCurIter->GetAt()) {
lpBuf[i++] = pTempIter->GetChar();
FX_BOOL bEnd = pTempIter->Next();
@@ -190,7 +190,7 @@ FX_BOOL CFX_WordBreak::FindNextBreakPos(IFX_CharIter * pIter, FX_BOOL bPrev,
return TRUE;
}
if (bFirst) {
- FX_INT32 nFlags = 0;
+ int32_t nFlags = 0;
if (eCurType == FX_WordBreakProp_MidLetter) {
if (eNextType == FX_WordBreakProp_ALetter) {
nFlags = 1;
@@ -219,7 +219,7 @@ FX_BOOL CFX_WordBreak::FindNextBreakPos(IFX_CharIter * pIter, FX_BOOL bPrev,
bFirst = FALSE;
}
if (wBreak) {
- FX_INT32 nFlags = 0;
+ int32_t nFlags = 0;
if (eNextType == FX_WordBreakProp_MidLetter) {
if (eCurType == FX_WordBreakProp_ALetter) {
nFlags = 1;
« no previous file with comments | « xfa/src/fee/src/fx_wordbreak/fx_wordbreak_impl.h ('k') | xfa/src/fee/src/fx_wordbreak/fx_wordbreakdata.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698