ActiveLib
Loading...
Searching...
No Matches
Classes | Concepts | Enumerations | Functions
active::utility Namespace Reference

Classes

class  BufferIn
 
class  BufferOut
 
class  Cloner
 
struct  DataFormat
 
class  Defer
 A class to hold an action to be deferred until its scope is exited. More...
 
class  Guid
 
class  Memory
 Class representing (and optionally allocating) memory with a specified location and size. More...
 
class  Mover
 
class  NameID
 
class  StackBufferOut
 
class  String
 A Unicode-aware string class. More...
 
class  Time
 A class to represent a date/time. More...
 
class  UniqueString
 

Concepts

concept  Clonable
 Clonable concept for classes/functions dependent on cloning.
 
concept  Movable
 Movable concept for classes/functions dependent on cloning with a move.
 

Enumerations

enum class  TextEncoding {
  UTF8 = 0 , UTF16 , UTF32 , ascii ,
  ISO8859_1
}
 

Functions

void swap (BufferIn &v1, BufferIn &v2)
 
template<class T >
requires Clonable<T>
auto clone (const T &item)
 
Defer defer (Defer::Action &&action)
 
template<class T >
requires Movable<T>
auto cloneMove (T &&item)
 
String operator+ (const String &str1, const String &str2)
 
bool isWhiteSpace (char32_t uniChar)
 
bool isLineEnding (char32_t uniChar)
 
bool isDigit (char32_t uniChar)
 
bool isNumeric (char32_t uniChar)
 
bool isFloat (char32_t uniChar)
 
std::optional< TextEncoding > encodingFromName (const String &name)
 
std::optional< StringnameFromEncoding (TextEncoding encoding)
 

Detailed Description

Copyright 2024 Ralph Wessel and Hugh Wessel Distributed under the MIT License (See accompanying file LICENSE.txt or copy at https://opensource.org/license/mit/)

License:\n Distributed under the MIT License (See accompanying file LICENSE.txt or copy at https://opensource.org/license/mit/)

Function Documentation

◆ clone()

template<class T >
requires Clonable<T>
auto active::utility::clone ( const T & item)
inline

Make a clone of a specified item

Parameters
itemThe item to clone
Returns
A clone of the item
Here is the caller graph for this function:

◆ cloneMove()

template<class T >
requires Movable<T>
auto active::utility::cloneMove ( T && item)
inline

Make a clone of a specified item, moving the item resources to the clone

Parameters
itemThe item to clone
Returns
A clone of the item

◆ defer()

Defer active::utility::defer ( Defer::Action && action)
inline

Factory function to instantiate a deferred action

◆ encodingFromName()

std::optional< TextEncoding > active::utility::encodingFromName ( const String & name)

Convert an encoding name to a type

Parameters
nameThe encoding name
Returns
The encoding type (nullopt if no match found)

◆ isDigit()

bool active::utility::isDigit ( char32_t uniChar)
inline

Determine if a specified char is numeric (int)

Parameters
uniCharThe char to test
Returns
True if a specified char is numeric
Here is the caller graph for this function:

◆ isFloat()

bool active::utility::isFloat ( char32_t uniChar)
inline

Determine if a specified char is numeric (int)

Parameters
uniCharThe char to test
Returns
True if a specified char is numeric
Here is the call graph for this function:

◆ isLineEnding()

bool active::utility::isLineEnding ( char32_t uniChar)
inline

Determine if a specified char is a line ending

Parameters
uniCharThe char to test
Returns
True if a specified char is a line ending

◆ isNumeric()

bool active::utility::isNumeric ( char32_t uniChar)
inline

Determine if a specified char is numeric (int)

Parameters
uniCharThe char to test
Returns
True if a specified char is numeric
Here is the call graph for this function:
Here is the caller graph for this function:

◆ isWhiteSpace()

bool active::utility::isWhiteSpace ( char32_t uniChar)
inline

Determine if a specified char is white-space

Parameters
uniCharThe char to test
Returns
True if a specified char is white-space

◆ nameFromEncoding()

std::optional< String > active::utility::nameFromEncoding ( TextEncoding encoding)

Convert an encoding type to a name

Parameters
encodingThe encoding type
Returns
The name of the encoding type (nullopt if no match found)

◆ operator+()

String active::utility::operator+ ( const String & str1,
const String & str2 )
inline

Addition operator

Parameters
str1The first string
str2The second string
Returns
The concatonated string
Here is the call graph for this function: