OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #include "xfa/src/fgas/layout/fgas_linebreak.h" | 7 #include "xfa/fgas/layout/fgas_linebreak.h" |
8 | 8 |
9 #include "core/include/fxcrt/fx_ucd.h" | 9 #include "core/include/fxcrt/fx_ucd.h" |
10 | 10 |
11 const FX_LINEBREAKTYPE gs_FX_LineBreak_PairTable[64][32] = { | 11 const FX_LINEBREAKTYPE gs_FX_LineBreak_PairTable[64][32] = { |
12 {FX_LBPB, FX_LBPB, FX_LBPB, FX_LBPB, FX_LBPB, FX_LBPB, FX_LBPB, FX_LBPB, | 12 {FX_LBPB, FX_LBPB, FX_LBPB, FX_LBPB, FX_LBPB, FX_LBPB, FX_LBPB, FX_LBPB, |
13 FX_LBPB, FX_LBPB, FX_LBPB, FX_LBPB, FX_LBPB, FX_LBPB, FX_LBPB, FX_LBPB, | 13 FX_LBPB, FX_LBPB, FX_LBPB, FX_LBPB, FX_LBPB, FX_LBPB, FX_LBPB, FX_LBPB, |
14 FX_LBPB, FX_LBPB, FX_LBPB, FX_LBCP, FX_LBPB, FX_LBPB, FX_LBPB, FX_LBPB, | 14 FX_LBPB, FX_LBPB, FX_LBPB, FX_LBCP, FX_LBPB, FX_LBPB, FX_LBPB, FX_LBPB, |
15 FX_LBPB, FX_LBPB, FX_LBUN, FX_LBUN, FX_LBUN, FX_LBUN, FX_LBUN, FX_LBUN}, | 15 FX_LBPB, FX_LBPB, FX_LBUN, FX_LBUN, FX_LBUN, FX_LBUN, FX_LBUN, FX_LBUN}, |
16 {FX_LBDB, FX_LBPB, FX_LBIB, FX_LBIB, FX_LBPB, FX_LBPB, FX_LBPB, FX_LBPB, | 16 {FX_LBDB, FX_LBPB, FX_LBIB, FX_LBIB, FX_LBPB, FX_LBPB, FX_LBPB, FX_LBPB, |
17 FX_LBIB, FX_LBIB, FX_LBDB, FX_LBDB, FX_LBDB, FX_LBDB, FX_LBIB, FX_LBIB, | 17 FX_LBIB, FX_LBIB, FX_LBDB, FX_LBDB, FX_LBDB, FX_LBDB, FX_LBIB, FX_LBIB, |
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 } else { | 311 } else { |
312 eType = *((const FX_LINEBREAKTYPE*)gs_FX_LineBreak_PairTable + | 312 eType = *((const FX_LINEBREAKTYPE*)gs_FX_LineBreak_PairTable + |
313 (dwCur << 5) + dwNext); | 313 (dwCur << 5) + dwNext); |
314 } | 314 } |
315 if (eType == FX_LBT_DIRECT_BRK) { | 315 if (eType == FX_LBT_DIRECT_BRK) { |
316 bp.Add(i); | 316 bp.Add(i); |
317 } | 317 } |
318 dwCur = dwNext; | 318 dwCur = dwNext; |
319 } | 319 } |
320 } | 320 } |
OLD | NEW |