10Duke Enterprise C++ SDK
Loading...
Searching...
No Matches
tenduke::utl Namespace Reference

Detailed Description

Utilities.

Namespaces

namespace  random
 Random number / string generation.
namespace  string
 String-utilities.

Classes

class  Base64Decoder
 Base64-decoder. More...
class  Base64Encoder
 Base64-encoder. More...
class  BinaryData
 A holder of binary data. More...
class  BinaryView
 A read-only view of binary data. More...
class  DataSpan
 A span of binary data. More...
class  DefaultBase64Decoder
 Default tenduke::utl::Base64Decoder implementation. More...
class  DefaultBase64Encoder
 Default tenduke::utl::Base64Encoder implementation. More...
class  FixedSizeBinaryData
 Utility class for fixed size binary data. More...
class  MutableDataSpan
 Extends DataSpan with mutable access to the underlying data. More...
class  PCTEncoder
 Encodes data using PCT-encoding. More...
class  SimpleBuffer
 Simple extensible binary buffer. More...

Functions

BinaryView empty_view ()
 Creates an empty tenduke::utl::BinaryView.
BinaryView make_view (const unsigned char *data, const std::size_t size)
 A helper function to create a tenduke::utl::BinaryView from a const pointer.
template<std::size_t N>
BinaryView make_view (unsigned char(&arr)[N])
 A helper function to create a tenduke::utl::BinaryView from fixed size arrays (deduces size automatically!).
BinaryView make_view (const char *value)
 A helper function to create a tenduke::utl::BinaryView from const char *.
BinaryView make_view (const std::string &value)
 A helper function to create a tenduke::utl::BinaryView from std:.string.
std::string toLowerCaseASCII (const std::string &string)
 Returns a copy of provided ASCII-string converted to lower-case.

Function Documentation

◆ empty_view()

BinaryView tenduke::utl::empty_view ( )
inline

Creates an empty tenduke::utl::BinaryView.

Returns
empty view

◆ make_view() [1/4]

BinaryView tenduke::utl::make_view ( const char * value)
inline

A helper function to create a tenduke::utl::BinaryView from const char *.

Parameters
valuethe string
Returns
the view

◆ make_view() [2/4]

BinaryView tenduke::utl::make_view ( const std::string & value)
inline

A helper function to create a tenduke::utl::BinaryView from std:.string.

Parameters
valuethe string
Returns
the view

◆ make_view() [3/4]

BinaryView tenduke::utl::make_view ( const unsigned char * data,
const std::size_t size )
inline

A helper function to create a tenduke::utl::BinaryView from a const pointer.

Parameters
datathe binary data
sizethe size of the binary data in bytes
Returns
the view

◆ make_view() [4/4]

template<std::size_t N>
BinaryView tenduke::utl::make_view ( unsigned char(&) arr[N])
inline

A helper function to create a tenduke::utl::BinaryView from fixed size arrays (deduces size automatically!).

Parameters
arrthe array
Returns
the view

◆ toLowerCaseASCII()

std::string tenduke::utl::toLowerCaseASCII ( const std::string & string)

Returns a copy of provided ASCII-string converted to lower-case.

Does not modify the original string.

Parameters
string-
Returns
-