Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
SkBidiSubsetFactory Class Reference

#include <SkBidiFactory_icu_subset.h>

Inheritance diagram for SkBidiSubsetFactory:
SkBidiFactory SkRefCnt SkRefCntBase

Public Member Functions

const char * errorName (UErrorCode status) const override
 
SkBidiFactory::BidiCloseCallback bidi_close_callback () const override
 
UBiDiDirection bidi_getDirection (const UBiDi *bidi) const override
 
SkBidiIterator::Position bidi_getLength (const UBiDi *bidi) const override
 
SkBidiIterator::Level bidi_getLevelAt (const UBiDi *bidi, int pos) const override
 
UBiDi * bidi_openSized (int32_t maxLength, int32_t maxRunCount, UErrorCode *pErrorCode) const override
 
void bidi_setPara (UBiDi *bidi, const UChar *text, int32_t length, UBiDiLevel paraLevel, UBiDiLevel *embeddingLevels, UErrorCode *status) const override
 
void bidi_reorderVisual (const SkUnicode::BidiLevel runLevels[], int levelsCount, int32_t logicalFromVisual[]) const override
 
- Public Member Functions inherited from SkBidiFactory
std::unique_ptr< SkBidiIteratorMakeIterator (const uint16_t utf16[], int utf16Units, SkBidiIterator::Direction dir) const
 
std::unique_ptr< SkBidiIteratorMakeIterator (const char utf8[], int utf8Units, SkBidiIterator::Direction dir) const
 
bool ExtractBidi (const char utf8[], int utf8Units, SkUnicode::TextDirection dir, std::vector< SkUnicode::BidiRegion > *bidiRegions) const
 
virtual const char * errorName (UErrorCode status) const =0
 
virtual BidiCloseCallback bidi_close_callback () const =0
 
virtual UBiDiDirection bidi_getDirection (const UBiDi *bidi) const =0
 
virtual SkBidiIterator::Position bidi_getLength (const UBiDi *bidi) const =0
 
virtual SkBidiIterator::Level bidi_getLevelAt (const UBiDi *bidi, int pos) const =0
 
virtual UBiDi * bidi_openSized (int32_t maxLength, int32_t maxRunCount, UErrorCode *pErrorCode) const =0
 
virtual void bidi_setPara (UBiDi *bidi, const UChar *text, int32_t length, UBiDiLevel paraLevel, UBiDiLevel *embeddingLevels, UErrorCode *status) const =0
 
virtual void bidi_reorderVisual (const SkUnicode::BidiLevel runLevels[], int levelsCount, int32_t logicalFromVisual[]) const =0
 
- Public Member Functions inherited from SkRefCntBase
 SkRefCntBase ()
 
virtual ~SkRefCntBase ()
 
bool unique () const
 
void ref () const
 
void unref () const
 

Additional Inherited Members

- Public Types inherited from SkBidiFactory
using BidiCloseCallback = void(*)(UBiDi *bidi)
 

Detailed Description

Definition at line 19 of file SkBidiFactory_icu_subset.h.

Member Function Documentation

◆ bidi_close_callback()

SkBidiFactory::BidiCloseCallback SkBidiSubsetFactory::bidi_close_callback ( ) const
overridevirtual

Implements SkBidiFactory.

Definition at line 15 of file SkBidiFactory_icu_subset.cpp.

15 {
16 return ubidi_close_skia;
17}

◆ bidi_getDirection()

UBiDiDirection SkBidiSubsetFactory::bidi_getDirection ( const UBiDi *  bidi) const
overridevirtual

Implements SkBidiFactory.

Definition at line 19 of file SkBidiFactory_icu_subset.cpp.

19 {
20 return ubidi_getDirection_skia(bidi);
21}

◆ bidi_getLength()

SkBidiIterator::Position SkBidiSubsetFactory::bidi_getLength ( const UBiDi *  bidi) const
overridevirtual

Implements SkBidiFactory.

Definition at line 23 of file SkBidiFactory_icu_subset.cpp.

23 {
24 return ubidi_getLength_skia(bidi);
25}

◆ bidi_getLevelAt()

SkBidiIterator::Level SkBidiSubsetFactory::bidi_getLevelAt ( const UBiDi *  bidi,
int  pos 
) const
overridevirtual

Implements SkBidiFactory.

Definition at line 27 of file SkBidiFactory_icu_subset.cpp.

27 {
28 return ubidi_getLevelAt_skia(bidi, pos);
29}
SkPoint pos

◆ bidi_openSized()

UBiDi * SkBidiSubsetFactory::bidi_openSized ( int32_t  maxLength,
int32_t  maxRunCount,
UErrorCode *  pErrorCode 
) const
overridevirtual

Implements SkBidiFactory.

Definition at line 31 of file SkBidiFactory_icu_subset.cpp.

33 {
34 return ubidi_openSized_skia(maxLength, maxRunCount, pErrorCode);
35}

◆ bidi_reorderVisual()

void SkBidiSubsetFactory::bidi_reorderVisual ( const SkUnicode::BidiLevel  runLevels[],
int  levelsCount,
int32_t  logicalFromVisual[] 
) const
overridevirtual

Implements SkBidiFactory.

Definition at line 46 of file SkBidiFactory_icu_subset.cpp.

48 {
49 ubidi_reorderVisual_skia(runLevels, levelsCount, logicalFromVisual);
50}

◆ bidi_setPara()

void SkBidiSubsetFactory::bidi_setPara ( UBiDi *  bidi,
const UChar *  text,
int32_t  length,
UBiDiLevel  paraLevel,
UBiDiLevel *  embeddingLevels,
UErrorCode *  status 
) const
overridevirtual

Implements SkBidiFactory.

Definition at line 37 of file SkBidiFactory_icu_subset.cpp.

42 {
43 return ubidi_setPara_skia(bidi, text, length, paraLevel, embeddingLevels, status);
44}
size_t length
std::u16string text

◆ errorName()

const char * SkBidiSubsetFactory::errorName ( UErrorCode  status) const
overridevirtual

Implements SkBidiFactory.

Definition at line 11 of file SkBidiFactory_icu_subset.cpp.

11 {
12 return u_errorName_skia(status);
13}

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