indigoX
|
Classes | |
class | FileReader |
Class for reading simple text file from disk. More... | |
struct | SimpleBiMap |
Enumerations | |
enum | Option |
Functions | |
std::string | GetRandomString (size_t length, size_t seed=0) |
Generate a random string. More... | |
Option | operator & (Option l, Option r) |
Option | operator| (Option l, Option r) |
std::string | ToLower (const std::string &s) |
Convert a string to lower case. More... | |
std::string | ToUpper (const std::string &s) |
Convert a string to upper case. More... | |
std::string | ToUpperFirst (const std::string &s) |
Convert a string to lower case with a single leading upper case. More... | |
template<typename T , typename __Iter > | |
__Iter | WeakContainsShared (__Iter b, __Iter e, std::shared_ptr< T > x) |
Check if a given shared_ptr<T> is in a weak_ptr<T> container. More... | |
|
strong |
std::string indigox::utils::GetRandomString | ( | size_t | length, |
size_t | seed = 0 |
||
) |
Generate a random string.
All upper and lower case letters are available.
length | the number of characters to generate. |
seed | the seed for the random number generator. If |
std::string indigox::utils::ToLower | ( | const std::string & | s | ) |
Convert a string to lower case.
s | the string to convert. |
std::string indigox::utils::ToUpper | ( | const std::string & | s | ) |
Convert a string to upper case.
s | the string to convert. |
std::string indigox::utils::ToUpperFirst | ( | const std::string & | s | ) |
Convert a string to lower case with a single leading upper case.
Acts on the string as a whole, ignoring any white space.
s | the string the convert. |
|
inline |
Check if a given shared_ptr<T> is in a weak_ptr<T> container.
Checks all weak_ptr<T> instances in the iterator range to see if the reference the supplied shared_ptr<T>. If the supplied shared_ptr<T> is empty, no comparisons are made.
T | the element_type. |
__Iter | the iterator type. |
b,e | start and end of the iterator range. |
x | the shared_ptr<T> instance to search for. |