summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorChris Sherlock <chris.sherlock79@gmail.com>2017-07-15 14:35:50 +1000
committerChris Sherlock <chris.sherlock79@gmail.com>2017-07-17 21:47:38 +0200
commit9af8964dd2cb048e328732ee6eb809b0da46a3ae (patch)
tree1f863b2e15beb4808cfb9c2aa6aeb0e651854cfb /sal
parent2cbd4121685b5c2f2cfddea6775171aaee72a4c1 (diff)
RTL_UNICODETOTEXT_INFO_{DEST|SCR}BUFFERTOSMALL should use TOO, not TO
I have kept the old mispelled constant for backwards compatibility Change-Id: I128a2eec76d00cc5ef058cd6a0c35a7474d2411e Reviewed-on: https://gerrit.libreoffice.org/39995 Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com> Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/unx/file_url.cxx2
-rw-r--r--sal/qa/rtl/textenc/rtl_textcvt.cxx14
-rw-r--r--sal/rtl/uri.cxx6
-rw-r--r--sal/rtl/ustring.cxx10
-rw-r--r--sal/textenc/convertbig5hkscs.cxx8
-rw-r--r--sal/textenc/converteuctw.cxx8
-rw-r--r--sal/textenc/convertgb18030.cxx8
-rw-r--r--sal/textenc/convertisciidevangari.cxx4
-rw-r--r--sal/textenc/convertiso2022cn.cxx8
-rw-r--r--sal/textenc/convertiso2022jp.cxx8
-rw-r--r--sal/textenc/convertiso2022kr.cxx8
-rw-r--r--sal/textenc/convertsimple.cxx2
-rw-r--r--sal/textenc/convertsinglebytetobmpunicode.cxx2
-rw-r--r--sal/textenc/tcvtbyte.cxx4
-rw-r--r--sal/textenc/tcvtmb.cxx12
-rw-r--r--sal/textenc/tcvtutf7.cxx14
-rw-r--r--sal/textenc/tcvtutf8.cxx8
-rw-r--r--sal/textenc/textcvt.cxx2
18 files changed, 64 insertions, 64 deletions
diff --git a/sal/osl/unx/file_url.cxx b/sal/osl/unx/file_url.cxx
index 865021bce770..4e8c7f445da6 100644
--- a/sal/osl/unx/file_url.cxx
+++ b/sal/osl/unx/file_url.cxx
@@ -818,7 +818,7 @@ int TextToUnicode(
text, text_buffer_size, unic_text, unic_text_buffer_size,
OSTRING_TO_OUSTRING_CVTFLAGS | RTL_TEXTTOUNICODE_FLAGS_FLUSH, &nInfo, &nSrcChars);
- if (nInfo & RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOSMALL)
+ if (nInfo & RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOOSMALL)
{
errno = EOVERFLOW;
return 0;
diff --git a/sal/qa/rtl/textenc/rtl_textcvt.cxx b/sal/qa/rtl/textenc/rtl_textcvt.cxx
index 34e5208ae890..d698bc22cd74 100644
--- a/sal/qa/rtl/textenc/rtl_textcvt.cxx
+++ b/sal/qa/rtl/textenc/rtl_textcvt.cxx
@@ -265,7 +265,7 @@ void doComplexCharSetTest(ComplexCharSetTest const & rTest) {
nOutput += nSize;
nInput += nConverted;
CPPUNIT_ASSERT_EQUAL((sal_uInt32) 0,
- (nInfo & ~RTL_TEXTTOUNICODE_INFO_SRCBUFFERTOSMALL));
+ (nInfo & ~RTL_TEXTTOUNICODE_INFO_SRCBUFFERTOOSMALL));
}
CPPUNIT_ASSERT_EQUAL(rTest.m_nUnicodeSize, nOutput);
CPPUNIT_ASSERT_EQUAL(rTest.m_nTextSize, nInput);
@@ -306,11 +306,11 @@ void doComplexCharSetTest(ComplexCharSetTest const & rTest) {
| (rTest.m_bGlobalSignature ?
RTL_TEXTTOUNICODE_FLAGS_GLOBAL_SIGNATURE : 0)),
&nInfo, &nCvtBytes);
- if ((nInfo & RTL_TEXTTOUNICODE_INFO_SRCBUFFERTOSMALL) != 0) {
+ if ((nInfo & RTL_TEXTTOUNICODE_INFO_SRCBUFFERTOOSMALL) != 0) {
sal_Char sBuffer[10];
sBuffer[0] = c1;
sal_uInt16 nLen = 1;
- while ((nInfo & RTL_TEXTTOUNICODE_INFO_SRCBUFFERTOSMALL) != 0
+ while ((nInfo & RTL_TEXTTOUNICODE_INFO_SRCBUFFERTOOSMALL) != 0
&& nLen < 10)
{
if (i == rTest.m_nTextSize) {
@@ -336,7 +336,7 @@ void doComplexCharSetTest(ComplexCharSetTest const & rTest) {
aUnicode[nSize++] = aUC[1];
} else {
OSL_ASSERT(
- (nInfo & RTL_TEXTTOUNICODE_INFO_SRCBUFFERTOSMALL) == 0
+ (nInfo & RTL_TEXTTOUNICODE_INFO_SRCBUFFERTOOSMALL) == 0
&& nChars == 0 && nInfo != 0);
aUnicode[nSize++] = sBuffer[0];
i -= nLen - 1;
@@ -426,9 +426,9 @@ void doComplexCharSetCutTest(ComplexCharSetTest const & rTest) {
&nInfo, &nConverted);
CPPUNIT_ASSERT_EQUAL(rTest.m_nUnicodeSize, nSize);
- if (nInfo != RTL_TEXTTOUNICODE_INFO_SRCBUFFERTOSMALL)
+ if (nInfo != RTL_TEXTTOUNICODE_INFO_SRCBUFFERTOOSMALL)
{
- CPPUNIT_ASSERT_EQUAL(RTL_TEXTTOUNICODE_INFO_ERROR | RTL_TEXTTOUNICODE_INFO_SRCBUFFERTOSMALL,
+ CPPUNIT_ASSERT_EQUAL(RTL_TEXTTOUNICODE_INFO_ERROR | RTL_TEXTTOUNICODE_INFO_SRCBUFFERTOOSMALL,
nInfo);
}
CPPUNIT_ASSERT_MESSAGE("nConverted should be less than rTest.m_nTextSize", nConverted < rTest.m_nTextSize);
@@ -2683,7 +2683,7 @@ void Test::testSRCBUFFERTOSMALL() {
RTL_TEXTTOUNICODE_FLAGS_MBUNDEFINED_ERROR |
RTL_TEXTTOUNICODE_FLAGS_INVALID_ERROR),
&info, &cvt));
- CPPUNIT_ASSERT_EQUAL(RTL_TEXTTOUNICODE_INFO_SRCBUFFERTOSMALL, info);
+ CPPUNIT_ASSERT_EQUAL(RTL_TEXTTOUNICODE_INFO_SRCBUFFERTOOSMALL, info);
CPPUNIT_ASSERT(cvt <= 1);
rtl_destroyTextToUnicodeContext(cv, cx);
rtl_destroyTextToUnicodeConverter(cv);
diff --git a/sal/rtl/uri.cxx b/sal/rtl/uri.cxx
index e23d5ac60db7..b886e2153795 100644
--- a/sal/rtl/uri.cxx
+++ b/sal/rtl/uri.cxx
@@ -175,7 +175,7 @@ sal_uInt32 readUcs4(sal_Unicode const ** pBegin, sal_Unicode const * pEnd,
return nDstSize == 1
? aDst[0] : rtl::combineSurrogates(aDst[0], aDst[1]);
}
- if (nInfo == RTL_TEXTTOUNICODE_INFO_SRCBUFFERTOSMALL
+ if (nInfo == RTL_TEXTTOUNICODE_INFO_SRCBUFFERTOOSMALL
&& pEnd - p >= 3 && p[0] == cEscapePrefix
&& (nWeight1 = getHexWeight(p[1])) >= 0
&& (nWeight2 = getHexWeight(p[2])) >= 0)
@@ -183,7 +183,7 @@ sal_uInt32 readUcs4(sal_Unicode const ** pBegin, sal_Unicode const * pEnd,
p += 3;
aBuf.append(static_cast< char >(nWeight1 << 4 | nWeight2));
}
- else if (nInfo == RTL_TEXTTOUNICODE_INFO_SRCBUFFERTOSMALL
+ else if (nInfo == RTL_TEXTTOUNICODE_INFO_SRCBUFFERTOOSMALL
&& p != pEnd && *p <= 0x7F)
{
aBuf.append(static_cast< char >(*p++));
@@ -191,7 +191,7 @@ sal_uInt32 readUcs4(sal_Unicode const ** pBegin, sal_Unicode const * pEnd,
else
{
assert(
- (nInfo & RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOSMALL)
+ (nInfo & RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOOSMALL)
== 0);
break;
}
diff --git a/sal/rtl/ustring.cxx b/sal/rtl/ustring.cxx
index 80832e71e089..a5b67a8760fc 100644
--- a/sal/rtl/ustring.cxx
+++ b/sal/rtl/ustring.cxx
@@ -728,7 +728,7 @@ static void rtl_string2UString_status( rtl_uString** ppThis,
if (*ppThis == nullptr) {
if (pInfo != nullptr) {
*pInfo = RTL_TEXTTOUNICODE_INFO_ERROR |
- RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOSMALL;
+ RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOOSMALL;
}
return;
}
@@ -783,7 +783,7 @@ retry:
{
if (pInfo != nullptr) {
*pInfo = RTL_TEXTTOUNICODE_INFO_ERROR |
- RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOSMALL;
+ RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOOSMALL;
}
return;
}
@@ -814,7 +814,7 @@ retry:
if (pTemp == nullptr) {
if (pInfo != nullptr) {
*pInfo = RTL_TEXTTOUNICODE_INFO_ERROR |
- RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOSMALL;
+ RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOOSMALL;
}
return;
}
@@ -828,7 +828,7 @@ retry:
/* Shouldn't be the case, but if we get textencoding which
could results in more unicode characters we have this
code here. Could be the case for apple encodings */
- while ( nInfo & RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOSMALL )
+ while ( nInfo & RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOOSMALL )
{
rtl_freeMemory( pTemp );
nNewLen += 8;
@@ -836,7 +836,7 @@ retry:
if (pTemp == nullptr) {
if (pInfo != nullptr) {
*pInfo = RTL_TEXTTOUNICODE_INFO_ERROR |
- RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOSMALL;
+ RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOOSMALL;
}
return;
}
diff --git a/sal/textenc/convertbig5hkscs.cxx b/sal/textenc/convertbig5hkscs.cxx
index 08b8db6e4252..b6852b7a0270 100644
--- a/sal/textenc/convertbig5hkscs.cxx
+++ b/sal/textenc/convertbig5hkscs.cxx
@@ -239,17 +239,17 @@ sal_Size ImplConvertBig5HkscsToUnicode(void const * pData,
no_output:
--pSrcBuf;
- nInfo |= RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOSMALL;
+ nInfo |= RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOOSMALL;
break;
}
if (nRow != 0
&& (nInfo & (RTL_TEXTTOUNICODE_INFO_ERROR
- | RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOSMALL))
+ | RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOOSMALL))
== 0)
{
if ((nFlags & RTL_TEXTTOUNICODE_FLAGS_FLUSH) == 0)
- nInfo |= RTL_TEXTTOUNICODE_INFO_SRCBUFFERTOSMALL;
+ nInfo |= RTL_TEXTTOUNICODE_INFO_SRCBUFFERTOOSMALL;
else
switch (sal::detail::textenc::handleBadInputTextToUnicodeConversion(
false, true, 0, nFlags, &pDestBufPtr, pDestBufEnd,
@@ -261,7 +261,7 @@ sal_Size ImplConvertBig5HkscsToUnicode(void const * pData,
break;
case sal::detail::textenc::BAD_INPUT_NO_OUTPUT:
- nInfo |= RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOSMALL;
+ nInfo |= RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOOSMALL;
break;
}
}
diff --git a/sal/textenc/converteuctw.cxx b/sal/textenc/converteuctw.cxx
index 9fdd97e05a21..e8c8a442c859 100644
--- a/sal/textenc/converteuctw.cxx
+++ b/sal/textenc/converteuctw.cxx
@@ -248,17 +248,17 @@ sal_Size ImplConvertEucTwToUnicode(void const * pData,
no_output:
--pSrcBuf;
- nInfo |= RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOSMALL;
+ nInfo |= RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOOSMALL;
break;
}
if (eState != IMPL_EUC_TW_TO_UNICODE_STATE_0
&& (nInfo & (RTL_TEXTTOUNICODE_INFO_ERROR
- | RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOSMALL))
+ | RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOOSMALL))
== 0)
{
if ((nFlags & RTL_TEXTTOUNICODE_FLAGS_FLUSH) == 0)
- nInfo |= RTL_TEXTTOUNICODE_INFO_SRCBUFFERTOSMALL;
+ nInfo |= RTL_TEXTTOUNICODE_INFO_SRCBUFFERTOOSMALL;
else
switch (sal::detail::textenc::handleBadInputTextToUnicodeConversion(
false, true, 0, nFlags, &pDestBufPtr, pDestBufEnd,
@@ -270,7 +270,7 @@ sal_Size ImplConvertEucTwToUnicode(void const * pData,
break;
case sal::detail::textenc::BAD_INPUT_NO_OUTPUT:
- nInfo |= RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOSMALL;
+ nInfo |= RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOOSMALL;
break;
}
}
diff --git a/sal/textenc/convertgb18030.cxx b/sal/textenc/convertgb18030.cxx
index dec9d4880a49..59f580d4bd9f 100644
--- a/sal/textenc/convertgb18030.cxx
+++ b/sal/textenc/convertgb18030.cxx
@@ -240,17 +240,17 @@ sal_Size ImplConvertGb18030ToUnicode(void const * pData,
no_output:
--pSrcBuf;
- nInfo |= RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOSMALL;
+ nInfo |= RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOOSMALL;
break;
}
if (eState != IMPL_GB_18030_TO_UNICODE_STATE_0
&& (nInfo & (RTL_TEXTTOUNICODE_INFO_ERROR
- | RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOSMALL))
+ | RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOOSMALL))
== 0)
{
if ((nFlags & RTL_TEXTTOUNICODE_FLAGS_FLUSH) == 0)
- nInfo |= RTL_TEXTTOUNICODE_INFO_SRCBUFFERTOSMALL;
+ nInfo |= RTL_TEXTTOUNICODE_INFO_SRCBUFFERTOOSMALL;
else
switch (sal::detail::textenc::handleBadInputTextToUnicodeConversion(
false, true, 0, nFlags, &pDestBufPtr, pDestBufEnd,
@@ -262,7 +262,7 @@ sal_Size ImplConvertGb18030ToUnicode(void const * pData,
break;
case sal::detail::textenc::BAD_INPUT_NO_OUTPUT:
- nInfo |= RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOSMALL;
+ nInfo |= RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOOSMALL;
break;
}
}
diff --git a/sal/textenc/convertisciidevangari.cxx b/sal/textenc/convertisciidevangari.cxx
index ed87c5819586..852b8c65a3ce 100644
--- a/sal/textenc/convertisciidevangari.cxx
+++ b/sal/textenc/convertisciidevangari.cxx
@@ -101,7 +101,7 @@ sal_Size IsciiDevanagariToUnicode::convert(
{
if (pDestBufPtr == pDestBufEnd)
{
- nInfo |= RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOSMALL;
+ nInfo |= RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOOSMALL;
break;
}
@@ -196,7 +196,7 @@ sal_Size IsciiDevanagariToUnicode::convert(
break;
if (eAction == BAD_INPUT_NO_OUTPUT)
{
- nInfo |= RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOSMALL;
+ nInfo |= RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOOSMALL;
break;
}
}
diff --git a/sal/textenc/convertiso2022cn.cxx b/sal/textenc/convertiso2022cn.cxx
index 7adece94fff0..a134a4d65d89 100644
--- a/sal/textenc/convertiso2022cn.cxx
+++ b/sal/textenc/convertiso2022cn.cxx
@@ -373,17 +373,17 @@ sal_Size ImplConvertIso2022CnToUnicode(void const * pData,
no_output:
--pSrcBuf;
- nInfo |= RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOSMALL;
+ nInfo |= RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOOSMALL;
break;
}
if (eState > IMPL_ISO_2022_CN_TO_UNICODE_STATE_SO
&& (nInfo & (RTL_TEXTTOUNICODE_INFO_ERROR
- | RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOSMALL))
+ | RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOOSMALL))
== 0)
{
if ((nFlags & RTL_TEXTTOUNICODE_FLAGS_FLUSH) == 0)
- nInfo |= RTL_TEXTTOUNICODE_INFO_SRCBUFFERTOSMALL;
+ nInfo |= RTL_TEXTTOUNICODE_INFO_SRCBUFFERTOOSMALL;
else
switch (sal::detail::textenc::handleBadInputTextToUnicodeConversion(
false, true, 0, nFlags, &pDestBufPtr, pDestBufEnd,
@@ -396,7 +396,7 @@ sal_Size ImplConvertIso2022CnToUnicode(void const * pData,
break;
case sal::detail::textenc::BAD_INPUT_NO_OUTPUT:
- nInfo |= RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOSMALL;
+ nInfo |= RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOOSMALL;
break;
}
}
diff --git a/sal/textenc/convertiso2022jp.cxx b/sal/textenc/convertiso2022jp.cxx
index bb89509e2e69..7a7e6b675add 100644
--- a/sal/textenc/convertiso2022jp.cxx
+++ b/sal/textenc/convertiso2022jp.cxx
@@ -261,17 +261,17 @@ sal_Size ImplConvertIso2022JpToUnicode(void const * pData,
no_output:
--pSrcBuf;
- nInfo |= RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOSMALL;
+ nInfo |= RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOOSMALL;
break;
}
if (eState > IMPL_ISO_2022_JP_TO_UNICODE_STATE_0208
&& (nInfo & (RTL_TEXTTOUNICODE_INFO_ERROR
- | RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOSMALL))
+ | RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOOSMALL))
== 0)
{
if ((nFlags & RTL_TEXTTOUNICODE_FLAGS_FLUSH) == 0)
- nInfo |= RTL_TEXTTOUNICODE_INFO_SRCBUFFERTOSMALL;
+ nInfo |= RTL_TEXTTOUNICODE_INFO_SRCBUFFERTOOSMALL;
else
switch (sal::detail::textenc::handleBadInputTextToUnicodeConversion(
false, true, 0, nFlags, &pDestBufPtr, pDestBufEnd,
@@ -283,7 +283,7 @@ sal_Size ImplConvertIso2022JpToUnicode(void const * pData,
break;
case sal::detail::textenc::BAD_INPUT_NO_OUTPUT:
- nInfo |= RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOSMALL;
+ nInfo |= RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOOSMALL;
break;
}
}
diff --git a/sal/textenc/convertiso2022kr.cxx b/sal/textenc/convertiso2022kr.cxx
index 687e8dfc3db1..41487c5ec994 100644
--- a/sal/textenc/convertiso2022kr.cxx
+++ b/sal/textenc/convertiso2022kr.cxx
@@ -224,17 +224,17 @@ sal_Size ImplConvertIso2022KrToUnicode(void const * pData,
no_output:
--pSrcBuf;
- nInfo |= RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOSMALL;
+ nInfo |= RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOOSMALL;
break;
}
if (eState > IMPL_ISO_2022_KR_TO_UNICODE_STATE_1001
&& (nInfo & (RTL_TEXTTOUNICODE_INFO_ERROR
- | RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOSMALL))
+ | RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOOSMALL))
== 0)
{
if ((nFlags & RTL_TEXTTOUNICODE_FLAGS_FLUSH) == 0)
- nInfo |= RTL_TEXTTOUNICODE_INFO_SRCBUFFERTOSMALL;
+ nInfo |= RTL_TEXTTOUNICODE_INFO_SRCBUFFERTOOSMALL;
else
switch (sal::detail::textenc::handleBadInputTextToUnicodeConversion(
false, true, 0, nFlags, &pDestBufPtr, pDestBufEnd,
@@ -246,7 +246,7 @@ sal_Size ImplConvertIso2022KrToUnicode(void const * pData,
break;
case sal::detail::textenc::BAD_INPUT_NO_OUTPUT:
- nInfo |= RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOSMALL;
+ nInfo |= RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOOSMALL;
break;
}
}
diff --git a/sal/textenc/convertsimple.cxx b/sal/textenc/convertsimple.cxx
index 507e20907346..09124d148b6a 100644
--- a/sal/textenc/convertsimple.cxx
+++ b/sal/textenc/convertsimple.cxx
@@ -554,7 +554,7 @@ sal_Size sal::detail::textenc::convertCharToUnicode(
if ( pDestBuf == pEndDestBuf )
{
- *pInfo |= RTL_TEXTTOUNICODE_INFO_ERROR | RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOSMALL;
+ *pInfo |= RTL_TEXTTOUNICODE_INFO_ERROR | RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOOSMALL;
break;
}
diff --git a/sal/textenc/convertsinglebytetobmpunicode.cxx b/sal/textenc/convertsinglebytetobmpunicode.cxx
index 5890a9dc8220..e8653531ed41 100644
--- a/sal/textenc/convertsinglebytetobmpunicode.cxx
+++ b/sal/textenc/convertsinglebytetobmpunicode.cxx
@@ -69,7 +69,7 @@ sal_Size rtl_textenc_convertSingleByteToBmpUnicode(
break;
no_output:
--srcBuf;
- infoFlags |= RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOSMALL;
+ infoFlags |= RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOOSMALL;
break;
}
if (info != nullptr) {
diff --git a/sal/textenc/tcvtbyte.cxx b/sal/textenc/tcvtbyte.cxx
index 834e91a44959..1b976217cf01 100644
--- a/sal/textenc/tcvtbyte.cxx
+++ b/sal/textenc/tcvtbyte.cxx
@@ -42,7 +42,7 @@ sal_Size ImplSymbolToUnicode( SAL_UNUSED_PARAMETER const void*,
{
if ( pDestBuf == pEndDestBuf )
{
- *pInfo |= RTL_TEXTTOUNICODE_INFO_ERROR | RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOSMALL;
+ *pInfo |= RTL_TEXTTOUNICODE_INFO_ERROR | RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOOSMALL;
break;
}
@@ -136,7 +136,7 @@ sal_Size ImplUpperCharToUnicode( const void* pData,
pEndSrcBuf = pSrcBuf+nSrcBytes;
if ( pDestBuf == pEndDestBuf )
{
- *pInfo |= RTL_TEXTTOUNICODE_INFO_ERROR | RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOSMALL;
+ *pInfo |= RTL_TEXTTOUNICODE_INFO_ERROR | RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOOSMALL;
*pSrcCvtBytes = 0;
return 0;
}
diff --git a/sal/textenc/tcvtmb.cxx b/sal/textenc/tcvtmb.cxx
index a41611a84669..902269d72ece 100644
--- a/sal/textenc/tcvtmb.cxx
+++ b/sal/textenc/tcvtmb.cxx
@@ -87,7 +87,7 @@ sal_Size ImplDBCSToUnicode( const void* pData, SAL_UNUSED_PARAMETER void*,
{
if ( (nFlags & RTL_TEXTTOUNICODE_FLAGS_FLUSH) == 0 )
{
- *pInfo |= RTL_TEXTTOUNICODE_INFO_ERROR | RTL_TEXTTOUNICODE_INFO_SRCBUFFERTOSMALL;
+ *pInfo |= RTL_TEXTTOUNICODE_INFO_ERROR | RTL_TEXTTOUNICODE_INFO_SRCBUFFERTOOSMALL;
break;
}
cConv = 0;
@@ -194,7 +194,7 @@ sal_Size ImplDBCSToUnicode( const void* pData, SAL_UNUSED_PARAMETER void*,
if ( pDestBuf == pEndDestBuf )
{
- *pInfo |= RTL_TEXTTOUNICODE_INFO_ERROR | RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOSMALL;
+ *pInfo |= RTL_TEXTTOUNICODE_INFO_ERROR | RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOOSMALL;
break;
}
@@ -403,7 +403,7 @@ sal_Size ImplEUCJPToUnicode( const void* pData,
/* Source buffer to small */
if ( pSrcBuf + 1 == pEndSrcBuf )
{
- *pInfo |= RTL_TEXTTOUNICODE_INFO_SRCBUFFERTOSMALL;
+ *pInfo |= RTL_TEXTTOUNICODE_INFO_SRCBUFFERTOOSMALL;
break;
}
@@ -427,7 +427,7 @@ sal_Size ImplEUCJPToUnicode( const void* pData,
/* Source buffer to small */
if (pEndSrcBuf - pSrcBuf < 3)
{
- *pInfo |= RTL_TEXTTOUNICODE_INFO_SRCBUFFERTOSMALL;
+ *pInfo |= RTL_TEXTTOUNICODE_INFO_SRCBUFFERTOOSMALL;
break;
}
@@ -444,7 +444,7 @@ sal_Size ImplEUCJPToUnicode( const void* pData,
/* Source buffer to small */
if ( pSrcBuf + 1 == pEndSrcBuf )
{
- *pInfo |= RTL_TEXTTOUNICODE_INFO_SRCBUFFERTOSMALL;
+ *pInfo |= RTL_TEXTTOUNICODE_INFO_SRCBUFFERTOOSMALL;
break;
}
@@ -512,7 +512,7 @@ sal_Size ImplEUCJPToUnicode( const void* pData,
if ( pDestBuf == pEndDestBuf )
{
- *pInfo |= RTL_TEXTTOUNICODE_INFO_ERROR | RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOSMALL;
+ *pInfo |= RTL_TEXTTOUNICODE_INFO_ERROR | RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOOSMALL;
break;
}
diff --git a/sal/textenc/tcvtutf7.cxx b/sal/textenc/tcvtutf7.cxx
index ab798d8b1ecb..c7279875fb54 100644
--- a/sal/textenc/tcvtutf7.cxx
+++ b/sal/textenc/tcvtutf7.cxx
@@ -224,7 +224,7 @@ sal_Size ImplUTF7ToUnicode( SAL_UNUSED_PARAMETER const void*, void* pContext,
{
if ( pDestBuf >= pEndDestBuf )
{
- *pInfo |= RTL_TEXTTOUNICODE_INFO_ERROR | RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOSMALL;
+ *pInfo |= RTL_TEXTTOUNICODE_INFO_ERROR | RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOOSMALL;
break;
}
*pDestBuf = IMPL_SHIFT_IN_CHAR;
@@ -248,7 +248,7 @@ sal_Size ImplUTF7ToUnicode( SAL_UNUSED_PARAMETER const void*, void* pContext,
/* When no more bytes in the source buffer, then */
/* this buffer may be to small */
if ( bEnd )
- *pInfo |= RTL_TEXTTOUNICODE_INFO_ERROR | RTL_TEXTTOUNICODE_INFO_SRCBUFFERTOSMALL;
+ *pInfo |= RTL_TEXTTOUNICODE_INFO_ERROR | RTL_TEXTTOUNICODE_INFO_SRCBUFFERTOOSMALL;
else
{
*pInfo |= RTL_TEXTTOUNICODE_INFO_INVALID;
@@ -284,7 +284,7 @@ sal_Size ImplUTF7ToUnicode( SAL_UNUSED_PARAMETER const void*, void* pContext,
if ( nBufferBits >= 16 )
{
- *pInfo |= RTL_TEXTTOUNICODE_INFO_ERROR | RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOSMALL;
+ *pInfo |= RTL_TEXTTOUNICODE_INFO_ERROR | RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOOSMALL;
break;
}
@@ -297,7 +297,7 @@ sal_Size ImplUTF7ToUnicode( SAL_UNUSED_PARAMETER const void*, void* pContext,
/* When no more bytes in the source buffer, then */
/* this buffer may be to small */
if ( bEnd )
- *pInfo |= RTL_TEXTTOUNICODE_INFO_ERROR | RTL_TEXTTOUNICODE_INFO_SRCBUFFERTOSMALL;
+ *pInfo |= RTL_TEXTTOUNICODE_INFO_ERROR | RTL_TEXTTOUNICODE_INFO_SRCBUFFERTOOSMALL;
else
{
*pInfo |= RTL_TEXTTOUNICODE_INFO_INVALID;
@@ -310,7 +310,7 @@ sal_Size ImplUTF7ToUnicode( SAL_UNUSED_PARAMETER const void*, void* pContext,
{
if ( pDestBuf >= pEndDestBuf )
{
- *pInfo |= RTL_TEXTTOUNICODE_INFO_ERROR | RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOSMALL;
+ *pInfo |= RTL_TEXTTOUNICODE_INFO_ERROR | RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOOSMALL;
break;
}
*pDestBuf++
@@ -351,7 +351,7 @@ sal_Size ImplUTF7ToUnicode( SAL_UNUSED_PARAMETER const void*, void* pContext,
{
if ( pDestBuf >= pEndDestBuf )
{
- *pInfo |= RTL_TEXTTOUNICODE_INFO_ERROR | RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOSMALL;
+ *pInfo |= RTL_TEXTTOUNICODE_INFO_ERROR | RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOOSMALL;
break;
}
*pDestBuf++
@@ -362,7 +362,7 @@ sal_Size ImplUTF7ToUnicode( SAL_UNUSED_PARAMETER const void*, void* pContext,
/* Write char to unicode buffer */
if ( pDestBuf >= pEndDestBuf )
{
- *pInfo |= RTL_TEXTTOUNICODE_INFO_ERROR | RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOSMALL;
+ *pInfo |= RTL_TEXTTOUNICODE_INFO_ERROR | RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOOSMALL;
break;
}
*pDestBuf = c;
diff --git a/sal/textenc/tcvtutf8.cxx b/sal/textenc/tcvtutf8.cxx
index f9c9879c54a3..c1a6949c01c5 100644
--- a/sal/textenc/tcvtutf8.cxx
+++ b/sal/textenc/tcvtutf8.cxx
@@ -207,17 +207,17 @@ sal_Size ImplConvertUtf8ToUnicode(
no_output:
--pSrcBufPtr;
- nInfo |= RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOSMALL;
+ nInfo |= RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOOSMALL;
break;
}
if (nShift >= 0
&& (nInfo & (RTL_TEXTTOUNICODE_INFO_ERROR
- | RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOSMALL))
+ | RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOOSMALL))
== 0)
{
if ((nFlags & RTL_TEXTTOUNICODE_FLAGS_FLUSH) == 0)
- nInfo |= RTL_TEXTTOUNICODE_INFO_SRCBUFFERTOSMALL;
+ nInfo |= RTL_TEXTTOUNICODE_INFO_SRCBUFFERTOOSMALL;
else
switch (sal::detail::textenc::handleBadInputTextToUnicodeConversion(
false, true, 0, nFlags, &pDestBufPtr, pDestBufEnd,
@@ -230,7 +230,7 @@ sal_Size ImplConvertUtf8ToUnicode(
break;
case sal::detail::textenc::BAD_INPUT_NO_OUTPUT:
- nInfo |= RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOSMALL;
+ nInfo |= RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOOSMALL;
break;
}
}
diff --git a/sal/textenc/textcvt.cxx b/sal/textenc/textcvt.cxx
index d654ca5ecb04..b1024976eecd 100644
--- a/sal/textenc/textcvt.cxx
+++ b/sal/textenc/textcvt.cxx
@@ -50,7 +50,7 @@ static sal_Size ImplDummyToUnicode( const char* pSrcBuf, sal_Size nSrcBytes,
{
if ( pDestBuf == pEndDestBuf )
{
- *pInfo |= RTL_TEXTTOUNICODE_INFO_ERROR | RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOSMALL;
+ *pInfo |= RTL_TEXTTOUNICODE_INFO_ERROR | RTL_TEXTTOUNICODE_INFO_DESTBUFFERTOOSMALL;
break;
}