LibreOffice Module comphelper (master) 1
Namespaces | Functions
string.cxx File Reference
#include <sal/config.h>
#include <cassert>
#include <cstddef>
#include <string_view>
#include <utility>
#include <vector>
#include <algorithm>
#include <o3tl/safeint.hxx>
#include <o3tl/string_view.hxx>
#include <rtl/character.hxx>
#include <rtl/ustring.hxx>
#include <rtl/ustrbuf.hxx>
#include <rtl/string.hxx>
#include <rtl/strbuf.hxx>
#include <sal/log.hxx>
#include <sal/types.h>
#include <comphelper/string.hxx>
#include <comphelper/stl_types.hxx>
#include <comphelper/sequence.hxx>
#include <com/sun/star/i18n/BreakIterator.hpp>
#include <com/sun/star/i18n/CharType.hpp>
#include <com/sun/star/i18n/Collator.hpp>
Include dependency graph for string.cxx:

Go to the source code of this file.

Namespaces

namespace  comphelper
 
namespace  comphelper::string
 

Functions

OString comphelper::string::stripStart (const OString &rIn, char c)
 Strips occurrences of a character from the start of the source string. More...
 
std::string_view comphelper::string::stripStart (std::string_view rIn, char c)
 
OUString comphelper::string::stripStart (const OUString &rIn, sal_Unicode c)
 Strips occurrences of a character from the start of the source string. More...
 
std::u16string_view comphelper::string::stripStart (std::u16string_view rIn, sal_Unicode c)
 
OString comphelper::string::stripEnd (const OString &rIn, char c)
 Strips occurrences of a character from the end of the source string. More...
 
std::string_view comphelper::string::stripEnd (std::string_view rIn, char c)
 
OUString comphelper::string::stripEnd (const OUString &rIn, sal_Unicode c)
 Strips occurrences of a character from the end of the source string. More...
 
std::u16string_view comphelper::string::stripEnd (std::u16string_view rIn, sal_Unicode c)
 
OString comphelper::string::strip (const OString &rIn, char c)
 Strips occurrences of a character from the start and end of the source string. More...
 
std::string_view comphelper::string::strip (std::string_view rIn, char c)
 
OUString comphelper::string::strip (const OUString &rIn, sal_Unicode c)
 Strips occurrences of a character from the start and end of the source string. More...
 
std::u16string_view comphelper::string::strip (std::u16string_view rIn, sal_Unicode c)
 
sal_Int32 comphelper::string::getTokenCount (std::string_view rIn, char cTok)
 Returns number of tokens in an OUString. More...
 
sal_Int32 comphelper::string::getTokenCount (std::u16string_view rIn, sal_Unicode cTok)
 Returns number of tokens in an OUString. More...
 
sal_uInt32 comphelper::string::decimalStringToNumber (std::u16string_view str)
 Convert a decimal string to a number. More...
 
OUString comphelper::string::convertCommaSeparated (uno::Sequence< OUString > const &i_rSeq)
 
std::vector< OUString > comphelper::string::split (std::u16string_view rStr, sal_Unicode cSeparator)
 
uno::Sequence< OUString > comphelper::string::convertCommaSeparated (std::u16string_view i_rString)
 Convert a single comma separated string to a sequence of strings. More...
 
OString comphelper::string::join (std::string_view rSeparator, const std::vector< OString > &rSequence)
 Return a string which is the concatenation of the strings in the sequence. More...
 
sal_Int32 comphelper::string::compareNatural (const OUString &rLHS, const OUString &rRHS, const uno::Reference< i18n::XCollator > &rCollator, const uno::Reference< i18n::XBreakIterator > &rBI, const lang::Locale &rLocale)
 
bool comphelper::string::isdigitAsciiString (std::string_view rString)
 Determine if an OString contains solely ASCII numeric digits. More...
 
bool comphelper::string::isdigitAsciiString (std::u16string_view rString)
 Determine if an OUString contains solely ASCII numeric digits. More...
 
OUString comphelper::string::reverseString (std::u16string_view rStr)
 Reverse an OUString's UTF-16 code units. More...
 
OUString comphelper::string::reverseCodePoints (OUString const &str)
 Reverse an OUString's Unicode code points. More...
 
sal_Int32 comphelper::string::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. More...
 
OUString comphelper::string::removeAny (std::u16string_view rIn, sal_Unicode const *const pChars)
 Remove any of a list of code units in the string. More...
 
OUString comphelper::string::setToken (const OUString &rIn, sal_Int32 nToken, sal_Unicode cTok, std::u16string_view rNewToken)
 Replace a token in a string. More...
 
void comphelper::string::replaceAt (OUStringBuffer &rIn, sal_Int32 nIndex, sal_Int32 nCount, std::u16string_view newStr)
 Similar to OUString::replaceAt, but for an OUStringBuffer. More...
 
OUString comphelper::string::sanitizeStringSurrogates (const OUString &rString)
 Sanitize an OUString to not have invalid surrogates. More...