LibreOffice Module comphelper (master)  1
Namespaces | Functions
string.cxx File Reference
#include <sal/config.h>
#include <cstddef>
#include <string_view>
#include <vector>
#include <algorithm>
#include <rtl/character.hxx>
#include <rtl/ustring.hxx>
#include <rtl/ustrbuf.hxx>
#include <rtl/string.hxx>
#include <rtl/strbuf.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

 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...
 
OUString comphelper::string::stripStart (const OUString &rIn, sal_Unicode c)
 Strips occurrences of a character from the start of the source string. More...
 
OString comphelper::string::stripEnd (const OString &rIn, char c)
 Strips occurrences of a character from the end of the source string. More...
 
OUString comphelper::string::stripEnd (const OUString &rIn, sal_Unicode c)
 Strips occurrences of a character from the end of the source string. More...
 
OString comphelper::string::strip (const OString &rIn, char c)
 Strips occurrences of a character from the start and end of the source string. More...
 
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...
 
sal_Int32 comphelper::string::getTokenCount (const OString &rIn, char cTok)
 Returns number of tokens in an OUString. More...
 
sal_Int32 comphelper::string::getTokenCount (const OUString &rIn, sal_Unicode cTok)
 Returns number of tokens in an OUString. More...
 
static sal_uInt32 comphelper::string::decimalStringToNumber (OUString const &str, sal_Int32 nStart, sal_Int32 nLength)
 
sal_uInt32 comphelper::string::decimalStringToNumber (OUString const &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 (const OUString &rStr, sal_Unicode cSeparator)
 
uno::Sequence< OUString > comphelper::string::convertCommaSeparated (OUString const &i_rString)
 Convert a single comma separated string to a sequence of strings. More...
 
OString comphelper::string::join (const OString &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 (const OString &rString)
 Determine if an OString contains solely ASCII numeric digits. More...
 
bool comphelper::string::isdigitAsciiString (const OUString &rString)
 Determine if an OUString contains solely ASCII numeric digits. More...
 
OUString comphelper::string::reverseString (const OUString &rStr)
 Reverse an OUString. More...
 
OString comphelper::string::reverseString (const OString &rStr)
 Reverse an OString. More...
 
sal_Int32 comphelper::string::indexOfAny (OUString const &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 (OUString const &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, const OUString &rNewToken)
 Replace a token in a string. More...