21#include <com/sun/star/i18n/TransliterationType.hpp>
35 return TransliterationType::NUMERIC;
57#define isNumber(c) ((c) >= 0x30 && (c) <= 0x39)
58#define NUMBER_ZERO 0x30
64 sal_Int32 number = -1, j = 0, endPos = startPos +
nCount;
66 if (endPos >
static_cast<sal_Int32
>(inStr.size()))
67 endPos = inStr.size();
69 rtl_uString* pStr = rtl_uString_alloc(
nCount);
74 auto ppOffset = pOffset ? pOffset->getArray() :
nullptr;
76 for (sal_Int32
i = startPos;
i < endPos;
i++) {
88 ppOffset[j] = startPos;
91 for (sal_Int32 k = startPos; k <
i; k++) {
96 }
else if (number > 0) {
98 ppOffset[j] = startPos;
100 }
else if (
i < endPos) {
113 return OUString( pStr, SAL_NO_ACQUIRE );
static sal_Unicode getNativeNumberChar(const sal_Unicode inChar, const css::lang::Locale &aLocale, sal_Int16 nNativeNumberMode)
virtual OUString foldingImpl(const OUString &inStr, sal_Int32 startPos, sal_Int32 nCount, css::uno::Sequence< sal_Int32 > *pOffset) override
virtual sal_Int16 SAL_CALL getType() override
virtual OUString transliterateImpl(const OUString &inStr, sal_Int32 startPos, sal_Int32 nCount, css::uno::Sequence< sal_Int32 > *pOffset) override
OUString transliterateBullet(std::u16string_view inStr, sal_Int32 startPos, sal_Int32 nCount, css::uno::Sequence< sal_Int32 > *pOffset) const
virtual sal_Bool SAL_CALL equals(const OUString &str1, sal_Int32 pos1, sal_Int32 nCount1, sal_Int32 &nMatch1, const OUString &str2, sal_Int32 pos2, sal_Int32 nCount2, sal_Int32 &nMatch2) override
const sal_Unicode * table
virtual css::uno::Sequence< OUString > SAL_CALL transliterateRange(const OUString &str1, const OUString &str2) override
virtual sal_Unicode SAL_CALL transliterateChar2Char(sal_Unicode inChar) override
sal_Int16 nNativeNumberMode
css::lang::Locale aLocale
Constant values shared between i18npool and, for example, the number formatter.