| Index: xfa/fgas/layout/fgas_linebreak.cpp
|
| diff --git a/xfa/fgas/layout/fgas_linebreak.cpp b/xfa/fgas/layout/fgas_linebreak.cpp
|
| index 72f5d703238fbc6e303786f81da3ba4eedd314f3..519ccc590a224b424534890e03e5bd663f313a23 100644
|
| --- a/xfa/fgas/layout/fgas_linebreak.cpp
|
| +++ b/xfa/fgas/layout/fgas_linebreak.cpp
|
| @@ -266,55 +266,3 @@ const FX_LINEBREAKTYPE gs_FX_LineBreak_PairTable[64][32] = {
|
| FX_LBUN, FX_LBUN, FX_LBUN, FX_LBUN, FX_LBUN, FX_LBUN, FX_LBUN, FX_LBUN,
|
| FX_LBUN, FX_LBUN, FX_LBUN, FX_LBUN, FX_LBUN, FX_LBUN, FX_LBUN, FX_LBUN},
|
| };
|
| -
|
| -void FX_GetLineBreakPositions(const FX_WCHAR* pwsText,
|
| - FX_LINEBREAKTYPE* pBrkType,
|
| - int32_t iLength) {
|
| - if (iLength < 2) {
|
| - return;
|
| - }
|
| - uint32_t dwCur, dwNext;
|
| - FX_WCHAR wch;
|
| - wch = *pwsText++;
|
| - dwCur = kTextLayoutCodeProperties[(uint16_t)wch] & 0x003F;
|
| - iLength--;
|
| - for (int32_t i = 0; i < iLength; i++) {
|
| - wch = *pwsText++;
|
| - dwNext = kTextLayoutCodeProperties[(uint16_t)wch] & 0x003F;
|
| - if (dwNext == FX_CBP_SP) {
|
| - pBrkType[i] = FX_LBT_PROHIBITED_BRK;
|
| - } else {
|
| - pBrkType[i] = *((const FX_LINEBREAKTYPE*)gs_FX_LineBreak_PairTable +
|
| - (dwCur << 5) + dwNext);
|
| - }
|
| - dwCur = dwNext;
|
| - }
|
| - pBrkType[iLength] = FX_LBT_INDIRECT_BRK;
|
| -}
|
| -void FX_GetLineBreakPositions(const FX_WCHAR* pwsText,
|
| - int32_t iLength,
|
| - CFX_Int32MassArray& bp) {
|
| - if (iLength < 2) {
|
| - return;
|
| - }
|
| - FX_LINEBREAKTYPE eType;
|
| - uint32_t dwCur, dwNext;
|
| - FX_WCHAR wch;
|
| - wch = *pwsText++;
|
| - dwCur = kTextLayoutCodeProperties[(uint16_t)wch] & 0x003F;
|
| - iLength--;
|
| - for (int32_t i = 0; i < iLength; i++) {
|
| - wch = *pwsText++;
|
| - dwNext = kTextLayoutCodeProperties[(uint16_t)wch] & 0x003F;
|
| - if (dwNext == FX_CBP_SP) {
|
| - eType = FX_LBT_PROHIBITED_BRK;
|
| - } else {
|
| - eType = *((const FX_LINEBREAKTYPE*)gs_FX_LineBreak_PairTable +
|
| - (dwCur << 5) + dwNext);
|
| - }
|
| - if (eType == FX_LBT_DIRECT_BRK) {
|
| - bp.Add(i);
|
| - }
|
| - dwCur = dwNext;
|
| - }
|
| -}
|
|
|