cohtml::IInternationalizationManager

Takes care of culture specific text operations.

#include <InternationalizationManager.h>

Public Classes

Name
structTextDirectionResult

Public Functions

Name
IInternationalizationManager()
virtual~IInternationalizationManager()
virtual i18n::IBreakIterator *CreateBreakIterator(i18n::BreakIteratorBoundary type)
Create a break iterator of specific boundary type.
virtual i18n::TextDirectionComputeBaseDirection(const char * utf8Buffer, unsigned size) const
Compute the base direction of the text.
virtual i18n::TextDirectionComputeTextDirection(const char * utf8Buffer, unsigned size, TextDirectionResult * result) const
Compute the text direction and provide information about subsections with different direction when text has mixed direction.

Public Functions Documentation

function IInternationalizationManager

IInternationalizationManager()

function ~IInternationalizationManager

virtual ~IInternationalizationManager()

function CreateBreakIterator

inline virtual i18n::IBreakIterator * CreateBreakIterator(
    i18n::BreakIteratorBoundary type
)

Create a break iterator of specific boundary type.

function ComputeBaseDirection

inline virtual i18n::TextDirection ComputeBaseDirection(
    const char * utf8Buffer,
    unsigned size
) const

Compute the base direction of the text.

function ComputeTextDirection

inline virtual i18n::TextDirection ComputeTextDirection(
    const char * utf8Buffer,
    unsigned size,
    TextDirectionResult * result
) const

Compute the text direction and provide information about subsections with different direction when text has mixed direction.

Note: When text direction is LTR or RTL there is no need to add subsections