engine
 
载入中...
搜索中...
未找到
类 | 枚举 | 函数
TextBiDi 命名空间参考

Unicode Bidirectional text support http://www.unicode.org/reports/tr9/ 更多...

类

struct  FTextDirectionInfo
 A single complex layout entry. 更多...
 
class  ITextBiDi
 Defines the interface for a re-usable BiDi object 更多...
 

枚举

enum class  ETextDirection : uint8 { LeftToRight , RightToLeft , Mixed }
 Lists the potential reading directions for text 更多...
 

函数

CORE_API ETextDirection ComputeBaseDirection (const FText &InText)
 Utility function which will compute the base direction of the given text. 更多...
 
CORE_API ETextDirection ComputeTextDirection (const FText &InText)
 Utility function which will compute the reading direction of the given text. 更多...
 
CORE_API ETextDirection ComputeTextDirection (const FText &InText, const ETextDirection InBaseDirection, TArray< FTextDirectionInfo > &OutTextDirectionInfo)
 Utility function which will compute the reading direction of the given text, as well as populate any advanced layout data for the text. 更多...
 
CORE_API TUniquePtr< ITextBiDi > CreateTextBiDi ()
 Create a re-usable BiDi object. 更多...
 
CORE_API bool IsControlCharacter (const TCHAR InChar)
 Utility function which tests to see whether the given character is a bidirectional control character.
 

详细描述

Unicode Bidirectional text support http://www.unicode.org/reports/tr9/

枚举类型说明

◆ ETextDirection

enum class TextBiDi::ETextDirection : uint8
strong

Lists the potential reading directions for text

枚举值
LeftToRight 

Contains only LTR text - requires simple LTR layout

RightToLeft 

Contains only RTL text - requires simple RTL layout

Mixed 

Contains both LTR and RTL text - requires more complex layout using multiple runs of text

函数说明

◆ ComputeBaseDirection()

CORE_API ETextDirection TextBiDi::ComputeBaseDirection ( const FText &  InText)

Utility function which will compute the base direction of the given text.

This provides the text flow direction that should be used when combining bidirectional text runs together.

返回
RightToLeft if the first character in the string has a bidirectional character type of R or AL, otherwise LeftToRight.

◆ ComputeTextDirection() [1/2]

CORE_API ETextDirection TextBiDi::ComputeTextDirection ( const FText &  InText)

Utility function which will compute the reading direction of the given text.

注解
You may want to use the version that returns you the advanced layout data in the Mixed case.
返回
LeftToRight if all of the text is LTR, RightToLeft if all of the text is RTL, or Mixed if the text contains both LTR and RTL text.

◆ ComputeTextDirection() [2/2]

CORE_API ETextDirection TextBiDi::ComputeTextDirection ( const FText &  InText,
const ETextDirection  InBaseDirection,
TArray< FTextDirectionInfo > &  OutTextDirectionInfo 
)

Utility function which will compute the reading direction of the given text, as well as populate any advanced layout data for the text.

The base direction is the overall reading direction of the text (see ComputeBaseDirection). This will affect where some characters (such as brackets and quotes) are placed within the resultant FTextDirectionInfo data.

返回
LeftToRight if all of the text is LTR, RightToLeft if all of the text is RTL, or Mixed if the text contains both LTR and RTL text.

◆ CreateTextBiDi()

CORE_API TUniquePtr< ITextBiDi > TextBiDi::CreateTextBiDi ( )

Create a re-usable BiDi object.

This may yield better performance than the utility functions if you're performing a lot of BiDi requests, as this object can re-use allocated data between requests.