27#include <rtl/strbuf.hxx>
28#include <rtl/ustrbuf.hxx>
29#include <com/sun/star/uno/Sequence.h>
30#include <com/sun/star/uno/Reference.hxx>
32#include <com/sun/star/lang/Locale.hpp>
49inline OUStringBuffer&
remove(OUStringBuffer &rIn,
55 if (
index >= rIn.getLength())
169 if (nLen < rBuffer.getLength())
170 rBuffer.setLength(nLen);
188 OUStringBuffer& rBuffer, sal_Int32 nLength)
195 template<
typename B,
typename U>
B&
padToLength(B& rBuffer, sal_Int32 nLen, U cFill)
197 const sal_Int32 nPadLen = nLen - rBuffer.getLength();
199 std::fill_n(rBuffer.appendUninitialized(nPadLen), nPadLen, cFill);
218 OStringBuffer& rBuffer, sal_Int32 nLength,
225 OUStringBuffer& rBuffer, sal_Int32 nLength,
247 std::u16string_view rNewToken);
258 sal_Unicode const*
const pChars, sal_Int32
const nPos);
279 css::uno::Sequence< OUString >
const & i_rSeq);
303 std::u16string_view str );
337 const css::uno::Reference< css::i18n::XCollator > &rCollator,
338 const css::uno::Reference< css::i18n::XBreakIterator > &rBI,
339 const css::lang::Locale &rLocale );
346 css::uno::Reference< css::i18n::XBreakIterator >
m_xBI;
349 const css::uno::Reference< css::uno::XComponentContext > &rContext,
350 css::lang::Locale aLocale);
351 sal_Int32
compare(
const OUString &rLHS,
const OUString &rRHS)
const
css::lang::Locale const m_aLocale
sal_Int32 compare(const OUString &rLHS, const OUString &rRHS) const
css::uno::Reference< css::i18n::XBreakIterator > m_xBI
css::uno::Reference< css::i18n::XCollator > m_xCollator
const css::lang::Locale & getLocale() const
#define COMPHELPER_DLLPUBLIC
B & padToLength(B &rBuffer, sal_Int32 nLen, U cFill)
B & truncateToLength(B &rBuffer, sal_Int32 nLen)
bool isdigitAsciiString(std::string_view rString)
Determine if an OString contains solely ASCII numeric digits.
OUString setToken(const OUString &rIn, sal_Int32 nToken, sal_Unicode cTok, std::u16string_view rNewToken)
Replace a token in a string.
OString join(std::string_view rSeparator, const std::vector< OString > &rSequence)
Return a string which is the concatenation of the strings in the sequence.
OUStringBuffer & remove(OUStringBuffer &rIn, sal_Unicode c)
Removes all occurrences of a character from within the source string.
OUString sanitizeStringSurrogates(const OUString &rString)
Sanitize an OUString to not have invalid surrogates.
OString strip(const OString &rIn, char c)
Strips occurrences of a character from the start and end of the source string.
OString stripEnd(const OString &rIn, char c)
Strips occurrences of a character from the end of the source string.
sal_uInt32 decimalStringToNumber(std::u16string_view str)
Convert a decimal string to a number.
void replaceAt(OUStringBuffer &rIn, sal_Int32 nIndex, sal_Int32 nCount, std::u16string_view newStr)
Similar to OUString::replaceAt, but for an OUStringBuffer.
OUString reverseString(std::u16string_view rStr)
Reverse an OUString's UTF-16 code units.
OUString removeAny(std::u16string_view rIn, sal_Unicode const *const pChars)
Remove any of a list of code units in the string.
sal_Int32 indexOfAny(std::u16string_view rIn, sal_Unicode const *const pChars, sal_Int32 const nPos)
Find any of a list of code units in the string.
OStringBuffer & padToLength(OStringBuffer &rBuffer, sal_Int32 nLength, char cFill='\0')
Pad a buffer to a given length using a given char.
OUString reverseCodePoints(OUString const &str)
Reverse an OUString's Unicode code points.
OUStringBuffer & truncateToLength(OUStringBuffer &rBuffer, sal_Int32 nLength)
Truncate a buffer to a given length.
OUString convertCommaSeparated(uno::Sequence< OUString > const &i_rSeq)
OString stripStart(const OString &rIn, char c)
Strips occurrences of a character from the start of the source string.
std::vector< OUString > split(std::u16string_view rStr, sal_Unicode cSeparator)
sal_Int32 compareNatural(const OUString &rLHS, const OUString &rRHS, const uno::Reference< i18n::XCollator > &rCollator, const uno::Reference< i18n::XBreakIterator > &rBI, const lang::Locale &rLocale)
sal_Int32 getTokenCount(std::string_view rIn, char cTok)
Returns number of tokens in an OUString.