24#include <rtl/ustrbuf.hxx>
32 for (
size_t i = 0;
i < rTxt.size(); ++
i)
40 sal_Int32
n = rTxt.getLength();
43 return n != rTxt.getLength();
49 if(nSize == rTxt.getLength())
52 OUStringBuffer
aBuf(nSize);
53 aBuf.setLength(nSize);
54 for (sal_Int32
i = 0, j = 0;
i < rTxt.getLength() && j < nSize; ++
i)
58 rTxt =
aBuf.makeStringAndClear();
59 DBG_ASSERT(rTxt.getLength() == nSize,
"GetNumControlChars returned a different number of control characters than were actually removed.");
76 sal_Int32
n = rTxt.getLength();
78 OUStringBuffer
aBuf(
n);
82 for (sal_Int32
i = 0;
i <
n && j <
n; ++
i)
91 rTxt =
aBuf.makeStringAndClear();
103 OUString aText(rText);
105 sal_Int32
nPos = aText.indexOf(
'(');
108 sal_Int32 nEnd = aText.indexOf(
')',
nPos);
111 OUStringBuffer aTextBuf(aText);
112 aTextBuf.remove(
nPos, nEnd -
nPos + 1);
113 aText = aTextBuf.makeStringAndClear();
117 nPos = aText.indexOf(
'(');
120 nPos = aText.indexOf(
'*');
124 aText = aText.copy(0,
nPos);
#define DBG_ASSERT(sCon, aError)
OString strip(const OString &rIn, char c)
bool RemoveHyphens(OUString &rTxt)
OUString GetThesaurusReplaceText(const OUString &rText)
bool RemoveControlChars(OUString &rTxt)
bool IsControlChar(sal_Unicode cChar)
bool ReplaceControlChars(OUString &rTxt)
sal_Int32 GetNumControlChars(std::u16string_view rTxt)