Ark Server API (ASE) - Wiki
Loading...
Searching...
No Matches
Poco Namespace Reference

Namespaces

namespace  Crypto
 
namespace  Dynamic
 
namespace  Net
 
namespace  Util
 

Classes

class  AbstractDelegate
 Base class for Delegate and Expire. More...
 
class  AbstractDelegate< void >
 Base class for Delegate and Expire. More...
 
class  AbstractEvent
 
class  AbstractEvent< void, TStrategy, TDelegate, TMutex >
 
class  ActiveMethod
 
class  ActiveMethod< ResultType, void, OwnerType, StarterType >
 
class  ActiveResult
 
class  ActiveResult< void >
 
class  ActiveResultHolder
 
class  ActiveResultHolder< void >
 
class  ActiveRunnable
 
class  ActiveRunnable< ResultType, void, OwnerType >
 
class  ActiveRunnable< void, ArgType, OwnerType >
 
class  ActiveRunnable< void, void, OwnerType >
 
class  ActiveRunnableBase
 The base class for all ActiveRunnable instantiations. More...
 
class  ActiveStarter
 
class  Any
 
class  Ascii
 
class  AtomicCounter
 
class  AutoPtr
 
class  BasicEvent
 
class  BasicFIFOBuffer
 
class  BasicMemoryBinaryReader
 A convenient wrapper for using Buffer and MemoryStream with BinaryReader. More...
 
class  BasicMemoryBinaryWriter
 A convenient wrapper for using Buffer and MemoryStream with BinarWriter. More...
 
class  BasicMemoryStreamBuf
 
class  BasicUnbufferedStreamBuf
 
class  BinaryReader
 
class  BinaryWriter
 
class  Buffer
 
class  Bugcheck
 
struct  CILess
 
class  DateTime
 
class  DefaultStrategy
 
class  DefaultStrategy< void, TDelegate >
 
class  DigestEngine
 
class  Event
 
class  EventImpl
 
class  Exception
 
class  FastMutex
 
struct  i_char_traits
 
struct  IsConst
 Use this struct to determine if a template type is a const type. More...
 
struct  IsConst< const T & >
 
struct  IsConst< const T >
 
struct  IsConst< const T[i]>
 Specialization for const char arrays. More...
 
struct  IsReference
 Use this struct to determine if a template type is a reference. More...
 
struct  IsReference< const T & >
 
struct  IsReference< T & >
 
class  ListMap
 
class  MemoryInputStream
 An input stream for reading from a memory area. More...
 
class  MemoryIOS
 
class  MemoryOutputStream
 An input stream for reading from a memory area. More...
 
class  Mutex
 
class  MutexImpl
 
class  NotificationStrategy
 
class  NotificationStrategy< void, TDelegate >
 
class  NullInputStream
 
class  NullIOS
 
class  NullMutex
 
class  NullOutputStream
 This stream discards all characters written to it. More...
 
class  NullStreamBuf
 
class  Path
 
union  Placeholder
 
class  RefCountedObject
 
class  ReferenceCounter
 Simple ReferenceCounter object, does not delete itself when count reaches 0. More...
 
class  ReleaseArrayPolicy
 The release policy for SharedPtr holding arrays. More...
 
class  ReleasePolicy
 
class  Runnable
 
class  ScopedLock
 
class  ScopedLockWithUnlock
 
class  SharedPtr
 
class  SingletonHolder
 
class  StreamCopier
 
class  Thread
 
class  ThreadImpl
 
class  ThreadPool
 
class  Timespan
 A class that represents time spans up to microsecond resolution. More...
 
class  Timestamp
 
struct  TypeWrapper
 Use the type wrapper if you want to decouple constness and references from template types. More...
 
struct  TypeWrapper< const T & >
 
struct  TypeWrapper< const T >
 
struct  TypeWrapper< T & >
 
class  URI
 
struct  UTF8
 

Typedefs

typedef BasicMemoryBinaryReader< char > MemoryBinaryReader
 
typedef BasicMemoryBinaryWriter< char > MemoryBinaryWriter
 
typedef BasicFIFOBuffer< char > FIFOBuffer
 
typedef BasicMemoryStreamBuf< char, std::char_traits< char > > MemoryStreamBuf
 
typedef MutexImpl FastMutexImpl
 
typedef std::basic_string< char, i_char_traits< char > > istring
 
using Int8 = std::int8_t
 
using UInt8 = std::uint8_t
 
using Int16 = std::int16_t
 
using UInt16 = std::uint16_t
 
using Int32 = std::int32_t
 
using UInt32 = std::uint32_t
 
using Int64 = std::int64_t
 
using UInt64 = std::uint64_t
 
using IntPtr = std::intptr_t
 
using UIntPtr = std::uintptr_t
 
typedef BasicUnbufferedStreamBuf< char, std::char_traits< char > > UnbufferedStreamBuf
 

Functions

void swap (Path &p1, Path &p2)
 
void swap (URI &u1, URI &u2)
 
template<typename ValueType >
ValueType * AnyCast (Any *operand)
 
template<typename ValueType >
const ValueType * AnyCast (const Any *operand)
 
template<typename ValueType >
ValueType AnyCast (Any &operand)
 
template<typename ValueType >
ValueType AnyCast (const Any &operand)
 
template<typename ValueType >
const ValueType & RefAnyCast (const Any &operand)
 
template<typename ValueType >
ValueType & RefAnyCast (Any &operand)
 
template<typename ValueType >
ValueType * UnsafeAnyCast (Any *operand)
 
template<typename ValueType >
const ValueType * UnsafeAnyCast (const Any *operand)
 
template<class C >
void swap (AutoPtr< C > &p1, AutoPtr< C > &p2)
 
template<typename T , typename... Args>
AutoPtr< T > makeAuto (Args &&... args)
 
void swap (DateTime &d1, DateTime &d2)
 
std::string Foundation_API format (const std::string &fmt, const Any &value)
 
void Foundation_API format (std::string &result, const char *fmt, const std::vector< Any > &values)
 
void Foundation_API format (std::string &result, const std::string &fmt, const std::vector< Any > &values)
 
template<typename T , typename... Args>
void format (std::string &result, const std::string &fmt, T arg1, Args... args)
 Appends the formatted string to result.
 
template<typename T , typename... Args>
void format (std::string &result, const char *fmt, T arg1, Args... args)
 Appends the formatted string to result.
 
template<typename T , typename... Args>
std::string format (const std::string &fmt, T arg1, Args... args)
 Returns the formatted string.
 
template<typename T , typename... Args>
std::string format (const char *fmt, T arg1, Args... args)
 Returns the formatted string.
 
template<class C , class RC , class RP >
void swap (SharedPtr< C, RC, RP > &p1, SharedPtr< C, RC, RP > &p2)
 
template<typename T , typename... Args>
SharedPtr< T > makeShared (Args &&... args)
 
template<typename T >
SharedPtr< T, ReferenceCounter, ReleaseArrayPolicy< T > > makeSharedArray (std::size_t size)
 
template<class S >
trimLeft (const S &str)
 
template<class S >
S & trimLeftInPlace (S &str)
 Removes all leading whitespace in str.
 
template<class S >
trimRight (const S &str)
 
template<class S >
S & trimRightInPlace (S &str)
 Removes all trailing whitespace in str.
 
template<class S >
trim (const S &str)
 
template<class S >
S & trimInPlace (S &str)
 Removes all leading and trailing whitespace in str.
 
template<class S >
toUpper (const S &str)
 Returns a copy of str containing all upper-case characters.
 
template<class S >
S & toUpperInPlace (S &str)
 Replaces all characters in str with their upper-case counterparts.
 
template<class S >
toLower (const S &str)
 Returns a copy of str containing all lower-case characters.
 
template<class S >
S & toLowerInPlace (S &str)
 Replaces all characters in str with their lower-case counterparts.
 
template<class S , class It >
int icompare (const S &str, typename S::size_type pos, typename S::size_type n, It it2, It end2)
 Case-insensitive string comparison.
 
template<class S >
int icompare (const S &str1, const S &str2)
 
template<class S >
int icompare (const S &str1, typename S::size_type n1, const S &str2, typename S::size_type n2)
 
template<class S >
int icompare (const S &str1, typename S::size_type n, const S &str2)
 
template<class S >
int icompare (const S &str1, typename S::size_type pos, typename S::size_type n, const S &str2)
 
template<class S >
int icompare (const S &str1, typename S::size_type pos1, typename S::size_type n1, const S &str2, typename S::size_type pos2, typename S::size_type n2)
 
template<class S >
int icompare (const S &str1, typename S::size_type pos1, typename S::size_type n, const S &str2, typename S::size_type pos2)
 
template<class S >
int icompare (const S &str, typename S::size_type pos, typename S::size_type n, const typename S::value_type *ptr)
 
template<class S >
int icompare (const S &str, typename S::size_type pos, const typename S::value_type *ptr)
 
template<class S >
int icompare (const S &str, const typename S::value_type *ptr)
 
template<class S >
translate (const S &str, const S &from, const S &to)
 
template<class S >
translate (const S &str, const typename S::value_type *from, const typename S::value_type *to)
 
template<class S >
S & translateInPlace (S &str, const S &from, const S &to)
 
template<class S >
translateInPlace (S &str, const typename S::value_type *from, const typename S::value_type *to)
 
template<class S >
S & replaceInPlace (S &str, const S &from, const S &to, typename S::size_type start=0)
 
template<class S >
S & replaceInPlace (S &str, const typename S::value_type *from, const typename S::value_type *to, typename S::size_type start=0)
 
template<class S >
S & replaceInPlace (S &str, const typename S::value_type from, const typename S::value_type to=0, typename S::size_type start=0)
 
template<class S >
S & removeInPlace (S &str, const typename S::value_type ch, typename S::size_type start=0)
 
template<class S >
replace (const S &str, const S &from, const S &to, typename S::size_type start=0)
 
template<class S >
replace (const S &str, const typename S::value_type *from, const typename S::value_type *to, typename S::size_type start=0)
 
template<class S >
replace (const S &str, const typename S::value_type from, const typename S::value_type to=0, typename S::size_type start=0)
 
template<class S >
remove (const S &str, const typename S::value_type ch, typename S::size_type start=0)
 
template<class S >
cat (const S &s1, const S &s2)
 Concatenates two strings.
 
template<class S >
cat (const S &s1, const S &s2, const S &s3)
 Concatenates three strings.
 
template<class S >
cat (const S &s1, const S &s2, const S &s3, const S &s4)
 Concatenates four strings.
 
template<class S >
cat (const S &s1, const S &s2, const S &s3, const S &s4, const S &s5)
 Concatenates five strings.
 
template<class S >
cat (const S &s1, const S &s2, const S &s3, const S &s4, const S &s5, const S &s6)
 Concatenates six strings.
 
template<class S , class It >
cat (const S &delim, const It &begin, const It &end)
 
template<class S >
bool startsWith (const S &str, const S &prefix)
 Tests whether the string starts with the given prefix.
 
template<class S >
bool endsWith (const S &str, const S &suffix)
 Tests whether the string ends with the given suffix.
 
template<typename T >
std::size_t isubstr (const T &str, const T &sought)
 Case-insensitive std::string counterpart.
 
void swap (Timespan &s1, Timespan &s2)
 
void swap (Timestamp &s1, Timestamp &s2)
 

Typedef Documentation

◆ FastMutexImpl

Definition at line 44 of file Mutex_WIN32.h.

◆ FIFOBuffer

Definition at line 550 of file FIFOBuffer.h.

◆ Int16

using Poco::Int16 = std::int16_t

Definition at line 30 of file Types.h.

◆ Int32

using Poco::Int32 = std::int32_t

Definition at line 32 of file Types.h.

◆ Int64

using Poco::Int64 = std::int64_t

Definition at line 34 of file Types.h.

◆ Int8

using Poco::Int8 = std::int8_t

Definition at line 28 of file Types.h.

◆ IntPtr

using Poco::IntPtr = std::intptr_t

Definition at line 36 of file Types.h.

◆ istring

typedef std::basic_string<char, i_char_traits<char> > Poco::istring

Definition at line 691 of file String.h.

◆ MemoryBinaryReader

Definition at line 202 of file BinaryReader.h.

◆ MemoryBinaryWriter

Definition at line 224 of file BinaryWriter.h.

◆ MemoryStreamBuf

typedef BasicMemoryStreamBuf<char, std::char_traits<char> > Poco::MemoryStreamBuf

Definition at line 175 of file MemoryStream.h.

◆ UInt16

using Poco::UInt16 = std::uint16_t

Definition at line 31 of file Types.h.

◆ UInt32

using Poco::UInt32 = std::uint32_t

Definition at line 33 of file Types.h.

◆ UInt64

using Poco::UInt64 = std::uint64_t

Definition at line 35 of file Types.h.

◆ UInt8

using Poco::UInt8 = std::uint8_t

Definition at line 29 of file Types.h.

◆ UIntPtr

using Poco::UIntPtr = std::uintptr_t

Definition at line 37 of file Types.h.

◆ UnbufferedStreamBuf

typedef BasicUnbufferedStreamBuf<char, std::char_traits<char> > Poco::UnbufferedStreamBuf

Definition at line 173 of file UnbufferedStreamBuf.h.

Function Documentation

◆ AnyCast() [1/4]

template<typename ValueType >
ValueType Poco::AnyCast ( Any & operand)

AnyCast operator used to extract a copy of the ValueType from an Any&.

Example Usage: MyType tmp = AnyCast<MyType>(anAny). Will throw a BadCastException if the cast fails. Do not use an AnyCast in combination with references, i.e. MyType& tmp = ... or const MyType& tmp = ... Some compilers will accept this code although a copy is returned. Use the RefAnyCast in these cases.

Definition at line 509 of file Any.h.

◆ AnyCast() [2/4]

template<typename ValueType >
ValueType * Poco::AnyCast ( Any * operand)

AnyCast operator used to extract the ValueType from an Any*. Will return a pointer to the stored value.

Example Usage: MyType* pTmp = AnyCast<MyType*>(pAny). Will return NULL if the cast fails, i.e. types don't match.

Definition at line 481 of file Any.h.

◆ AnyCast() [3/4]

template<typename ValueType >
ValueType Poco::AnyCast ( const Any & operand)

AnyCast operator used to extract a copy of the ValueType from an const Any&.

Example Usage: MyType tmp = AnyCast<MyType>(anAny). Will throw a BadCastException if the cast fails. Do not use an AnyCast in combination with references, i.e. MyType& tmp = ... or const MyType& = ... Some compilers will accept this code although a copy is returned. Use the RefAnyCast in these cases.

Definition at line 540 of file Any.h.

◆ AnyCast() [4/4]

template<typename ValueType >
const ValueType * Poco::AnyCast ( const Any * operand)

AnyCast operator used to extract a const ValueType pointer from an const Any*. Will return a const pointer to the stored value.

Example Usage: const MyType* pTmp = AnyCast<MyType*>(pAny). Will return NULL if the cast fails, i.e. types don't match.

Definition at line 496 of file Any.h.

◆ cat() [1/6]

template<class S , class It >
S Poco::cat ( const S & delim,
const It & begin,
const It & end )

Concatenates a sequence of strings, delimited by the string given in delim.

Definition at line 618 of file String.h.

◆ cat() [2/6]

template<class S >
S Poco::cat ( const S & s1,
const S & s2 )

Concatenates two strings.

Definition at line 553 of file String.h.

◆ cat() [3/6]

template<class S >
S Poco::cat ( const S & s1,
const S & s2,
const S & s3 )

Concatenates three strings.

Definition at line 564 of file String.h.

◆ cat() [4/6]

template<class S >
S Poco::cat ( const S & s1,
const S & s2,
const S & s3,
const S & s4 )

Concatenates four strings.

Definition at line 576 of file String.h.

◆ cat() [5/6]

template<class S >
S Poco::cat ( const S & s1,
const S & s2,
const S & s3,
const S & s4,
const S & s5 )

Concatenates five strings.

Definition at line 589 of file String.h.

◆ cat() [6/6]

template<class S >
S Poco::cat ( const S & s1,
const S & s2,
const S & s3,
const S & s4,
const S & s5,
const S & s6 )

Concatenates six strings.

Definition at line 603 of file String.h.

◆ endsWith()

template<class S >
bool Poco::endsWith ( const S & str,
const S & suffix )

Tests whether the string ends with the given suffix.

Definition at line 641 of file String.h.

◆ format() [1/7]

template<typename T , typename... Args>
std::string Poco::format ( const char * fmt,
T arg1,
Args... args )

Returns the formatted string.

Definition at line 164 of file Format.h.

◆ format() [2/7]

std::string Foundation_API Poco::format ( const std::string & fmt,
const Any & value )

◆ format() [3/7]

template<typename T , typename... Args>
std::string Poco::format ( const std::string & fmt,
T arg1,
Args... args )

Returns the formatted string.

Definition at line 148 of file Format.h.

◆ format() [4/7]

void Foundation_API Poco::format ( std::string & result,
const char * fmt,
const std::vector< Any > & values )

This function implements sprintf-style formatting in a typesafe way. Various variants of the function are available, supporting a different number of arguments (up to six).

The formatting is controlled by the format string in fmt. Format strings are quite similar to those of the std::printf() function, but there are some minor differences.

The format string can consist of any sequence of characters; certain characters have a special meaning. Characters without a special meaning are copied verbatim to the result. A percent sign (%) marks the beginning of a format specification. Format specifications have the following syntax:

%[<index>][<flags>][<width>][.<precision>][<modifier>]<type>

Index, flags, width, precision and prefix are optional. The only required part of the format specification, apart from the percent sign, is the type.

The optional index argument has the format "[<n>]" and allows to address an argument by its zero-based position (see the example below).

Following are valid type specifications and their meaning:

  • b boolean (true = 1, false = 0)
  • c character
  • d signed decimal integer
  • i signed decimal integer
  • o unsigned octal integer
  • u unsigned decimal integer
  • x unsigned hexadecimal integer (lower case)
  • X unsigned hexadecimal integer (upper case)
  • e signed floating-point value in the form [-]d.dddde[<sign>]dd[d]
  • E signed floating-point value in the form [-]d.ddddE[<sign>]dd[d]
  • f signed floating-point value in the form [-]dddd.dddd
  • s std::string
  • z std::size_t

The following flags are supported:

  • - left align the result within the given field width
  • + prefix the output value with a sign (+ or -) if the output value is of a signed type
  • 0 if width is prefixed with 0, zeros are added until the minimum width is reached
  • # For o, x, X, the # flag prefixes any nonzero output value with 0, 0x, or 0X, respectively; for e, E, f, the # flag forces the output value to contain a decimal point in all cases.

The following modifiers are supported:

  • (none) argument is char (c), int (d, i), unsigned (o, u, x, X) double (e, E, f, g, G) or string (s)
  • l argument is long (d, i), unsigned long (o, u, x, X) or long double (e, E, f, g, G)
  • L argument is long long (d, i), unsigned long long (o, u, x, X)
  • h argument is short (d, i), unsigned short (o, u, x, X) or float (e, E, f, g, G)
  • ? argument is any signed or unsigned int, short, long, or 64-bit integer (d, i, o, x, X)

The width argument is a nonnegative decimal integer or '*' with an additional nonnegative integer value preceding the value to be formated, controlling the minimum number of characters printed. If the number of characters in the output value is less than the specified width, blanks or leading zeros are added, according to the specified flags (-, +, 0).

Precision is a nonnegative decimal integer or '*' with an additional nonnegative integer value preceding the value to be formated, preceded by a period (.), which specifies the number of characters to be printed, the number of decimal places, or the number of significant digits.

Throws an InvalidArgumentException if an argument index is out of range.

Starting with release 1.4.3, an argument that does not match the format specifier no longer results in a BadCastException. The string [ERRFMT] is written to the result string instead.

If there are more format specifiers than values, the format specifiers without a corresponding value are copied verbatim to output.

If there are more values than format specifiers, the superfluous values are ignored.

Usage Examples: std::string s1 = format("The answer to life, the universe, and everything is %d", 42); std::string s2 = format("second: %[1]d, first: %[0]d", 1, 2);

◆ format() [5/7]

template<typename T , typename... Args>
void Poco::format ( std::string & result,
const char * fmt,
T arg1,
Args... args )

Appends the formatted string to result.

Definition at line 134 of file Format.h.

◆ format() [6/7]

void Foundation_API Poco::format ( std::string & result,
const std::string & fmt,
const std::vector< Any > & values )

Supports a variable number of arguments and is used by all other variants of format().

◆ format() [7/7]

template<typename T , typename... Args>
void Poco::format ( std::string & result,
const std::string & fmt,
T arg1,
Args... args )

Appends the formatted string to result.

Supports a variable number of arguments and is used by all other variants of format().

Definition at line 120 of file Format.h.

◆ icompare() [1/10]

template<class S >
int Poco::icompare ( const S & str,
const typename S::value_type * ptr )

Definition at line 324 of file String.h.

◆ icompare() [2/10]

template<class S >
int Poco::icompare ( const S & str,
typename S::size_type pos,
const typename S::value_type * ptr )

Definition at line 314 of file String.h.

◆ icompare() [3/10]

template<class S >
int Poco::icompare ( const S & str,
typename S::size_type pos,
typename S::size_type n,
const typename S::value_type * ptr )

Definition at line 283 of file String.h.

◆ icompare() [4/10]

template<class S , class It >
int Poco::icompare ( const S & str,
typename S::size_type pos,
typename S::size_type n,
It it2,
It end2 )

Case-insensitive string comparison.

Definition at line 171 of file String.h.

◆ icompare() [5/10]

template<class S >
int Poco::icompare ( const S & str1,
const S & str2 )

Definition at line 203 of file String.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ icompare() [6/10]

template<class S >
int Poco::icompare ( const S & str1,
typename S::size_type n,
const S & str2 )

Definition at line 237 of file String.h.

◆ icompare() [7/10]

template<class S >
int Poco::icompare ( const S & str1,
typename S::size_type n1,
const S & str2,
typename S::size_type n2 )

Definition at line 229 of file String.h.

◆ icompare() [8/10]

template<class S >
int Poco::icompare ( const S & str1,
typename S::size_type pos,
typename S::size_type n,
const S & str2 )

Definition at line 245 of file String.h.

◆ icompare() [9/10]

template<class S >
int Poco::icompare ( const S & str1,
typename S::size_type pos1,
typename S::size_type n,
const S & str2,
typename S::size_type pos2 )

Definition at line 268 of file String.h.

◆ icompare() [10/10]

template<class S >
int Poco::icompare ( const S & str1,
typename S::size_type pos1,
typename S::size_type n1,
const S & str2,
typename S::size_type pos2,
typename S::size_type n2 )

Definition at line 252 of file String.h.

◆ isubstr()

template<typename T >
std::size_t Poco::isubstr ( const T & str,
const T & sought )

Case-insensitive std::string counterpart.

Case-insensitive substring; searches for a substring without regards to case.

Definition at line 696 of file String.h.

◆ makeAuto()

template<typename T , typename... Args>
AutoPtr< T > Poco::makeAuto ( Args &&... args)

Definition at line 408 of file AutoPtr.h.

◆ makeShared()

template<typename T , typename... Args>
SharedPtr< T > Poco::makeShared ( Args &&... args)

Definition at line 474 of file SharedPtr.h.

◆ makeSharedArray()

template<typename T >
SharedPtr< T, ReferenceCounter, ReleaseArrayPolicy< T > > Poco::makeSharedArray ( std::size_t size)

Definition at line 481 of file SharedPtr.h.

◆ RefAnyCast() [1/2]

template<typename ValueType >
ValueType & Poco::RefAnyCast ( Any & operand)

AnyCast operator used to return a reference to the internal data.

Example Usage: MyType& tmp = RefAnyCast<MyType>(anAny);

Definition at line 582 of file Any.h.

◆ RefAnyCast() [2/2]

template<typename ValueType >
const ValueType & Poco::RefAnyCast ( const Any & operand)

AnyCast operator used to return a const reference to the internal data.

Example Usage: const MyType& tmp = RefAnyCast<MyType>(anAny);

Definition at line 557 of file Any.h.

◆ remove()

template<class S >
S Poco::remove ( const S & str,
const typename S::value_type ch,
typename S::size_type start = 0 )

Definition at line 528 of file String.h.

◆ removeInPlace()

template<class S >
S & Poco::removeInPlace ( S & str,
const typename S::value_type ch,
typename S::size_type start = 0 )

Definition at line 492 of file String.h.

◆ replace() [1/3]

template<class S >
S Poco::replace ( const S & str,
const S & from,
const S & to,
typename S::size_type start = 0 )

Replace all occurrences of from (which must not be the empty string) in str with to, starting at position start.

Definition at line 499 of file String.h.

◆ replace() [2/3]

template<class S >
S Poco::replace ( const S & str,
const typename S::value_type * from,
const typename S::value_type * to,
typename S::size_type start = 0 )

Definition at line 510 of file String.h.

◆ replace() [3/3]

template<class S >
S Poco::replace ( const S & str,
const typename S::value_type from,
const typename S::value_type to = 0,
typename S::size_type start = 0 )

Definition at line 519 of file String.h.

◆ replaceInPlace() [1/3]

template<class S >
S & Poco::replaceInPlace ( S & str,
const S & from,
const S & to,
typename S::size_type start = 0 )

Definition at line 421 of file String.h.

◆ replaceInPlace() [2/3]

template<class S >
S & Poco::replaceInPlace ( S & str,
const typename S::value_type * from,
const typename S::value_type * to,
typename S::size_type start = 0 )

Definition at line 446 of file String.h.

◆ replaceInPlace() [3/3]

template<class S >
S & Poco::replaceInPlace ( S & str,
const typename S::value_type from,
const typename S::value_type to = 0,
typename S::size_type start = 0 )

Definition at line 472 of file String.h.

◆ startsWith()

template<class S >
bool Poco::startsWith ( const S & str,
const S & prefix )

Tests whether the string starts with the given prefix.

Definition at line 633 of file String.h.

◆ swap() [1/7]

template<class C >
void Poco::swap ( AutoPtr< C > & p1,
AutoPtr< C > & p2 )
inline

Definition at line 401 of file AutoPtr.h.

◆ swap() [2/7]

void Poco::swap ( DateTime & d1,
DateTime & d2 )
inline

Definition at line 434 of file DateTime.h.

+ Here is the call graph for this function:

◆ swap() [3/7]

void Poco::swap ( Path & p1,
Path & p2 )
inline

Definition at line 498 of file Path.h.

+ Here is the call graph for this function:

◆ swap() [4/7]

template<class C , class RC , class RP >
void Poco::swap ( SharedPtr< C, RC, RP > & p1,
SharedPtr< C, RC, RP > & p2 )
inline

Definition at line 467 of file SharedPtr.h.

◆ swap() [5/7]

void Poco::swap ( Timespan & s1,
Timespan & s2 )
inline

Definition at line 289 of file Timespan.h.

+ Here is the call graph for this function:

◆ swap() [6/7]

void Poco::swap ( Timestamp & s1,
Timestamp & s2 )
inline

Definition at line 263 of file Timestamp.h.

+ Here is the call graph for this function:

◆ swap() [7/7]

void Poco::swap ( URI & u1,
URI & u2 )
inline

Definition at line 415 of file URI.h.

+ Here is the call graph for this function:

◆ toLower()

template<class S >
S Poco::toLower ( const S & str)

Returns a copy of str containing all lower-case characters.

Definition at line 142 of file String.h.

◆ toLowerInPlace()

template<class S >
S & Poco::toLowerInPlace ( S & str)

Replaces all characters in str with their lower-case counterparts.

Definition at line 156 of file String.h.

◆ toUpper()

template<class S >
S Poco::toUpper ( const S & str)

Returns a copy of str containing all upper-case characters.

Definition at line 116 of file String.h.

◆ toUpperInPlace()

template<class S >
S & Poco::toUpperInPlace ( S & str)

Replaces all characters in str with their upper-case counterparts.

Definition at line 130 of file String.h.

◆ translate() [1/2]

template<class S >
S Poco::translate ( const S & str,
const S & from,
const S & to )

Returns a copy of str with all characters in from replaced by the corresponding (by position) characters in to. If there is no corresponding character in to, the character is removed from the copy.

Definition at line 351 of file String.h.

◆ translate() [2/2]

template<class S >
S Poco::translate ( const S & str,
const typename S::value_type * from,
const typename S::value_type * to )

Definition at line 381 of file String.h.

◆ translateInPlace() [1/2]

template<class S >
S & Poco::translateInPlace ( S & str,
const S & from,
const S & to )

Replaces in str all occurrences of characters in from with the corresponding (by position) characters in to. If there is no corresponding character, the character is removed.

Definition at line 390 of file String.h.

◆ translateInPlace() [2/2]

template<class S >
S Poco::translateInPlace ( S & str,
const typename S::value_type * from,
const typename S::value_type * to )

Definition at line 402 of file String.h.

◆ trim()

template<class S >
S Poco::trim ( const S & str)

Returns a copy of str with all leading and trailing whitespace removed.

Definition at line 82 of file String.h.

◆ trimInPlace()

template<class S >
S & Poco::trimInPlace ( S & str)

Removes all leading and trailing whitespace in str.

Definition at line 97 of file String.h.

◆ trimLeft()

template<class S >
S Poco::trimLeft ( const S & str)

Returns a copy of str with all leading whitespace removed.

Definition at line 31 of file String.h.

◆ trimLeftInPlace()

template<class S >
S & Poco::trimLeftInPlace ( S & str)

Removes all leading whitespace in str.

Definition at line 44 of file String.h.

◆ trimRight()

template<class S >
S Poco::trimRight ( const S & str)

Returns a copy of str with all trailing whitespace removed.

Definition at line 57 of file String.h.

◆ trimRightInPlace()

template<class S >
S & Poco::trimRightInPlace ( S & str)

Removes all trailing whitespace in str.

Definition at line 69 of file String.h.

◆ UnsafeAnyCast() [1/2]

template<typename ValueType >
ValueType * Poco::UnsafeAnyCast ( Any * operand)

The "unsafe" versions of AnyCast are not part of the public interface and may be removed at any time. They are required where we know what type is stored in the any and can't use typeid() comparison, e.g., when our types may travel across different shared libraries.

Definition at line 607 of file Any.h.

◆ UnsafeAnyCast() [2/2]

template<typename ValueType >
const ValueType * Poco::UnsafeAnyCast ( const Any * operand)

The "unsafe" versions of AnyCast are not part of the public interface and may be removed at any time. They are required where we know what type is stored in the any and can't use typeid() comparison, e.g., when our types may travel across different shared libraries.

Definition at line 619 of file Any.h.