Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
SkBidiIterator_icu4x Class Reference
Inheritance diagram for SkBidiIterator_icu4x:
SkBidiIterator

Public Member Functions

 SkBidiIterator_icu4x (std::shared_ptr< std::vector< SkUnicode::BidiRegion > > regions)
 
Position getLength () override
 
Level getLevelAt (Position pos) override
 
- Public Member Functions inherited from SkBidiIterator
virtual ~SkBidiIterator ()=default
 
virtual Position getLength ()=0
 
virtual Level getLevelAt (Position)=0
 

Additional Inherited Members

- Public Types inherited from SkBidiIterator
enum  Direction { kLTR , kRTL }
 
typedef int32_t Position
 
typedef uint8_t Level
 

Detailed Description

Definition at line 348 of file SkUnicode_icu4x.cpp.

Constructor & Destructor Documentation

◆ SkBidiIterator_icu4x()

SkBidiIterator_icu4x::SkBidiIterator_icu4x ( std::shared_ptr< std::vector< SkUnicode::BidiRegion > >  regions)
inlineexplicit

Definition at line 351 of file SkUnicode_icu4x.cpp.

352 : fRegions(regions) { }

Member Function Documentation

◆ getLength()

Position SkBidiIterator_icu4x::getLength ( )
inlineoverridevirtual

Implements SkBidiIterator.

Definition at line 353 of file SkUnicode_icu4x.cpp.

353{ return fRegions->size(); }

◆ getLevelAt()

Level SkBidiIterator_icu4x::getLevelAt ( Position  pos)
inlineoverridevirtual

Implements SkBidiIterator.

Definition at line 354 of file SkUnicode_icu4x.cpp.

354 {
355 auto found = std::lower_bound(
356 fRegions->begin(),
357 fRegions->end(),
360 return a.start <= b.start && a.end <= b.end;
361 });
362 return found->level;
363 }
SkPoint pos
static bool b
struct MyStruct a[10]

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