Flutter Engine
minikin::HyphenEdit Class Reference

#include <Hyphenator.h>

Public Member Functions

 HyphenEdit ()
 
 HyphenEdit (uint32_t hyphenInt)
 
uint32_t getHyphen () const
 
bool operator== (const HyphenEdit &other) const
 
uint32_t getEnd () const
 
uint32_t getStart () const
 

Static Public Member Functions

static bool isReplacement (uint32_t hyph)
 
static bool isInsertion (uint32_t hyph)
 
static const uint32_t * getHyphenString (uint32_t hyph)
 
static uint32_t editForThisLine (HyphenationType type)
 
static uint32_t editForNextLine (HyphenationType type)
 

Static Public Attributes

static const uint32_t NO_EDIT = 0x00
 
static const uint32_t INSERT_HYPHEN_AT_END = 0x01
 
static const uint32_t INSERT_ARMENIAN_HYPHEN_AT_END = 0x02
 
static const uint32_t INSERT_MAQAF_AT_END = 0x03
 
static const uint32_t INSERT_UCAS_HYPHEN_AT_END = 0x04
 
static const uint32_t INSERT_ZWJ_AND_HYPHEN_AT_END = 0x05
 
static const uint32_t REPLACE_WITH_HYPHEN_AT_END = 0x06
 
static const uint32_t BREAK_AT_END = 0x07
 
static const uint32_t INSERT_HYPHEN_AT_START = 0x01 << 3
 
static const uint32_t INSERT_ZWJ_AT_START = 0x02 << 3
 
static const uint32_t BREAK_AT_START = 0x03 << 3
 
static const uint32_t MASK_END_OF_LINE = 0x07
 
static const uint32_t MASK_START_OF_LINE = 0x03 << 3
 

Detailed Description

Definition at line 75 of file Hyphenator.h.

Constructor & Destructor Documentation

◆ HyphenEdit() [1/2]

minikin::HyphenEdit::HyphenEdit ( )
inline

Definition at line 112 of file Hyphenator.h.

112 : hyphen(NO_EDIT) {}
static const uint32_t NO_EDIT
Definition: Hyphenator.h:77

◆ HyphenEdit() [2/2]

minikin::HyphenEdit::HyphenEdit ( uint32_t  hyphenInt)
inline

Definition at line 113 of file Hyphenator.h.

113 : hyphen(hyphenInt) {} // NOLINT(implicit)

Member Function Documentation

◆ editForNextLine()

static uint32_t minikin::HyphenEdit::editForNextLine ( HyphenationType  type)
static

◆ editForThisLine()

static uint32_t minikin::HyphenEdit::editForThisLine ( HyphenationType  type)
static

◆ getEnd()

uint32_t minikin::HyphenEdit::getEnd ( ) const
inline

Definition at line 119 of file Hyphenator.h.

119 { return hyphen & MASK_END_OF_LINE; }
static const uint32_t MASK_END_OF_LINE
Definition: Hyphenator.h:93

◆ getHyphen()

uint32_t minikin::HyphenEdit::getHyphen ( ) const
inline

Definition at line 114 of file Hyphenator.h.

114 { return hyphen; }

◆ getHyphenString()

static const uint32_t* minikin::HyphenEdit::getHyphenString ( uint32_t  hyph)
static

◆ getStart()

uint32_t minikin::HyphenEdit::getStart ( ) const
inline

Definition at line 120 of file Hyphenator.h.

120 { return hyphen & MASK_START_OF_LINE; }
static const uint32_t MASK_START_OF_LINE
Definition: Hyphenator.h:94

◆ isInsertion()

static bool minikin::HyphenEdit::isInsertion ( uint32_t  hyph)
inlinestatic

Definition at line 100 of file Hyphenator.h.

100  {
101  return (hyph == INSERT_HYPHEN_AT_END ||
103  hyph == INSERT_MAQAF_AT_END || hyph == INSERT_UCAS_HYPHEN_AT_END ||
105  hyph == INSERT_HYPHEN_AT_START || hyph == INSERT_ZWJ_AT_START);
106  }
static const uint32_t INSERT_ZWJ_AT_START
Definition: Hyphenator.h:88
static const uint32_t INSERT_HYPHEN_AT_START
Definition: Hyphenator.h:87
static const uint32_t INSERT_ZWJ_AND_HYPHEN_AT_END
Definition: Hyphenator.h:83
static const uint32_t INSERT_HYPHEN_AT_END
Definition: Hyphenator.h:79
static const uint32_t INSERT_ARMENIAN_HYPHEN_AT_END
Definition: Hyphenator.h:80
static const uint32_t INSERT_MAQAF_AT_END
Definition: Hyphenator.h:81
static const uint32_t INSERT_UCAS_HYPHEN_AT_END
Definition: Hyphenator.h:82

◆ isReplacement()

static bool minikin::HyphenEdit::isReplacement ( uint32_t  hyph)
inlinestatic

Definition at line 96 of file Hyphenator.h.

96  {
97  return hyph == REPLACE_WITH_HYPHEN_AT_END;
98  }
static const uint32_t REPLACE_WITH_HYPHEN_AT_END
Definition: Hyphenator.h:84

◆ operator==()

bool minikin::HyphenEdit::operator== ( const HyphenEdit other) const
inline

Definition at line 115 of file Hyphenator.h.

115  {
116  return hyphen == other.hyphen;
117  }

Member Data Documentation

◆ BREAK_AT_END

const uint32_t minikin::HyphenEdit::BREAK_AT_END = 0x07
static

Definition at line 85 of file Hyphenator.h.

◆ BREAK_AT_START

const uint32_t minikin::HyphenEdit::BREAK_AT_START = 0x03 << 3
static

Definition at line 89 of file Hyphenator.h.

◆ INSERT_ARMENIAN_HYPHEN_AT_END

const uint32_t minikin::HyphenEdit::INSERT_ARMENIAN_HYPHEN_AT_END = 0x02
static

Definition at line 80 of file Hyphenator.h.

◆ INSERT_HYPHEN_AT_END

const uint32_t minikin::HyphenEdit::INSERT_HYPHEN_AT_END = 0x01
static

Definition at line 79 of file Hyphenator.h.

◆ INSERT_HYPHEN_AT_START

const uint32_t minikin::HyphenEdit::INSERT_HYPHEN_AT_START = 0x01 << 3
static

Definition at line 87 of file Hyphenator.h.

◆ INSERT_MAQAF_AT_END

const uint32_t minikin::HyphenEdit::INSERT_MAQAF_AT_END = 0x03
static

Definition at line 81 of file Hyphenator.h.

◆ INSERT_UCAS_HYPHEN_AT_END

const uint32_t minikin::HyphenEdit::INSERT_UCAS_HYPHEN_AT_END = 0x04
static

Definition at line 82 of file Hyphenator.h.

◆ INSERT_ZWJ_AND_HYPHEN_AT_END

const uint32_t minikin::HyphenEdit::INSERT_ZWJ_AND_HYPHEN_AT_END = 0x05
static

Definition at line 83 of file Hyphenator.h.

◆ INSERT_ZWJ_AT_START

const uint32_t minikin::HyphenEdit::INSERT_ZWJ_AT_START = 0x02 << 3
static

Definition at line 88 of file Hyphenator.h.

◆ MASK_END_OF_LINE

const uint32_t minikin::HyphenEdit::MASK_END_OF_LINE = 0x07
static

Definition at line 93 of file Hyphenator.h.

◆ MASK_START_OF_LINE

const uint32_t minikin::HyphenEdit::MASK_START_OF_LINE = 0x03 << 3
static

Definition at line 94 of file Hyphenator.h.

◆ NO_EDIT

const uint32_t minikin::HyphenEdit::NO_EDIT = 0x00
static

Definition at line 77 of file Hyphenator.h.

◆ REPLACE_WITH_HYPHEN_AT_END

const uint32_t minikin::HyphenEdit::REPLACE_WITH_HYPHEN_AT_END = 0x06
static

Definition at line 84 of file Hyphenator.h.


The documentation for this class was generated from the following file: