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/
|
strong |
| 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.
| CORE_API ETextDirection TextBiDi::ComputeTextDirection | ( | const FText & | InText | ) |
Utility function which will compute the reading direction of the given text.
| 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.
| 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.