diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-04-18 13:56:39 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-04-18 18:08:17 +0000 |
commit | 994acdc1a31015674e786d24cc37d08dfae6d863 (patch) | |
tree | cc0fc6e15f4dd439b86e2cb673282613867ce4bb /xfa/fgas/layout/cfx_linebreak.h | |
parent | 5ae87922cb96810a05b2262c66b55b7e8f00e46d (diff) | |
download | pdfium-994acdc1a31015674e786d24cc37d08dfae6d863.tar.xz |
Rename text break files to match class names.
This CL renames several fgas/layout files to match the class names
contained in the files.
Change-Id: Ib4feaa902618e577261e51dbac743cb4cb500ea1
Reviewed-on: https://pdfium-review.googlesource.com/4290
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Nicolás Peña <npm@chromium.org>
Diffstat (limited to 'xfa/fgas/layout/cfx_linebreak.h')
-rw-r--r-- | xfa/fgas/layout/cfx_linebreak.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/xfa/fgas/layout/cfx_linebreak.h b/xfa/fgas/layout/cfx_linebreak.h new file mode 100644 index 0000000000..8ba022e71e --- /dev/null +++ b/xfa/fgas/layout/cfx_linebreak.h @@ -0,0 +1,32 @@ +// Copyright 2014 PDFium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com + +#ifndef XFA_FGAS_LAYOUT_CFX_LINEBREAK_H_ +#define XFA_FGAS_LAYOUT_CFX_LINEBREAK_H_ + +#include "core/fxcrt/fx_system.h" + +enum FX_LINEBREAKTYPE : uint8_t { + FX_LBT_UNKNOWN = 0x00, + FX_LBT_DIRECT_BRK = 0x1A, + FX_LBT_INDIRECT_BRK = 0x2B, + FX_LBT_COM_INDIRECT_BRK = 0x3C, + FX_LBT_COM_PROHIBITED_BRK = 0x4D, + FX_LBT_PROHIBITED_BRK = 0x5E, + FX_LBT_HANGUL_SPACE_BRK = 0x6F, +}; + +#define FX_LBUN FX_LBT_UNKNOWN +#define FX_LBDB FX_LBT_DIRECT_BRK +#define FX_LBIB FX_LBT_INDIRECT_BRK +#define FX_LBCB FX_LBT_COM_INDIRECT_BRK +#define FX_LBCP FX_LBT_COM_PROHIBITED_BRK +#define FX_LBPB FX_LBT_PROHIBITED_BRK +#define FX_LBHS FX_LBT_HANGUL_SPACE_BRK + +extern const FX_LINEBREAKTYPE gs_FX_LineBreak_PairTable[64][32]; + +#endif // XFA_FGAS_LAYOUT_CFX_LINEBREAK_H_ |