Back to index

nux  3.0.0
Classes | Namespaces | Functions
TextString.h File Reference
#include "Math/MathUtility.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  nux::TCharToUpperCase
class  nux::TCharToLowerCase
struct  nux::ToLowerCaseFunctor< T >
struct  nux::ToUpperCaseFunctor< T >
struct  nux::LexicographicCompare< T >
 Compare two char or TCHAR. More...
struct  nux::LexicographicCompareWithConversion< T, ConversionFunctor >
 Compare two char or TCHAR. More...
struct  nux::EqualFunctor< T >
class  nux::NString

Namespaces

namespace  nux
 The Writer singleton is responsible for controlling where the logging message go.

Functions

template<typename T >
nux::ToLowerCase (T c)
template<typename T >
nux::ToUpperCase (T c)
template<typename T , typename U >
static int nux::StringCompareWithOperator (const T *lhs, const T *rhs, U functor)
 Compare two strings of char or TCHAR.
template<typename T , typename U >
static int nux::StringCompareWithOperator (const T *lhs, const T *rhs, unsigned int numCharToCompare, U functor)
 Compare the first N characters of two strings of char or TCHAR (case insensitive).
template<typename T >
static int nux::StringCompare (const T *lhs, const T *rhs)
 Compare two strings of char or TCHAR for equality.
template<class T >
static int nux::StringCompare (const T *lhs, const T *rhs, unsigned int len)
 Compare the first N characters of two strings of char or TCHAR for equality.
template<typename T >
static int nux::StringCompareCaseInsensitive (const T *lhs, const T *rhs)
 Compare two strings of char or TCHAR for equality (case insensitive).
template<typename T >
static unsigned int nux::StringCopy (T *dest, const T *src)
 Copy one string to another without controls of buffer size for the destination.
template<typename T >
static unsigned int nux::StringCopy (T *dest, unsigned int bufferSize, const T *src, unsigned int lengthToCopy=0xFFFFFFFF)
 Copy one string to another with controls of buffer size for the destination.
template<typename T , typename U >
static T * nux::FindString (const T *src, const T *str, U functor)
 Find a string inside a char or TCHAR string.
template<typename T >
static T * nux::FindString (const T *src, const T *str)
template<class T >
static size_t nux::StringLength (const T *s)
 Returns a TCHAR length.
template<class T >
size_t nux::ToCharString (char *buffer, size_t bufferlen, const char *format, T value)
template<class T >
int nux::ToTCharString (TCHAR *buffer, size_t bufferlen, const TCHAR *format, T value)
size_t nux::ValueToLiteralString (char *buffer, size_t len, unsigned short value)
size_t nux::ValueToLiteralString (char *buffer, size_t len, short value)
size_t nux::ValueToLiteralString (char *buffer, size_t len, unsigned int value)
size_t nux::ValueToLiteralString (char *buffer, size_t len, int value)
size_t nux::ValueToLiteralString (char *buffer, size_t len, unsigned long value)
size_t nux::ValueToLiteralString (char *buffer, size_t len, long value)
size_t nux::ValueToLiteralString (char *buffer, size_t len, unsigned long long value)
size_t nux::ValueToLiteralString (char *buffer, size_t len, long long value)
size_t nux::ValueToLiteralString (char *buffer, size_t len, float value)
size_t nux::ValueToLiteralString (char *buffer, size_t len, double value)
size_t nux::ValueToLiteralString (char *buffer, size_t len, unsigned char value)
size_t nux::ValueToLiteralString (char *buffer, size_t len, char value)
template<class T >
bool nux::FromCharString (const char *buffer, size_t bufferlen, const char *format, T &value)
template<class T >
bool nux::FromTCharString (const TCHAR *buffer, size_t bufferlen, const TCHAR *format, T &value)
bool nux::ValueFromLiteralString (const char *buffer, size_t len, unsigned short &value)
bool nux::ValueFromLiteralString (const char *buffer, size_t len, short &value)
bool nux::ValueFromLiteralString (const char *buffer, size_t len, unsigned int &value)
bool nux::ValueFromLiteralString (const char *buffer, size_t len, int &value)
bool nux::ValueFromLiteralString (const char *buffer, size_t len, unsigned long &value)
bool nux::ValueFromLiteralString (const char *buffer, size_t len, long &value)
bool nux::ValueFromLiteralString (const char *buffer, size_t len, unsigned long long &value)
bool nux::ValueFromLiteralString (const char *buffer, size_t len, long long &value)
bool nux::ValueFromLiteralString (const char *buffer, size_t len, float &value)
bool nux::ValueFromLiteralString (const char *buffer, size_t len, double &value)
bool nux::ValueFromLiteralString (const char *buffer, size_t len, unsigned char &value)
bool nux::ValueFromLiteralString (const char *buffer, size_t len, char &value)
TCHARnux::Strncpy (TCHAR *Dest, size_t Size, const TCHAR *Src, size_t MaxLen)
TCHARnux::Strncat (TCHAR *Dest, size_t Size, const TCHAR *Src, size_t Max)
 Concatenate a string with length checking.
const TCHARnux::Strfind (const TCHAR *Str, const TCHAR *Find)
TCHARnux::inlStringCopy (TCHAR *Dest, size_t numberOfElements, const TCHAR *Src)
 Copy a string.
TCHARnux::inlTCharStringConcat (TCHAR *Dest, size_t numberOfElements, const TCHAR *Src)
 Append a string.
TCHARnux::inlStrupr (TCHAR *String, size_t numberOfElements)
 Convert a string to uppercase. Returns a pointer to the altered string. Return 0 if not successful.
TCHARnux::Strstr (const TCHAR *String, const TCHAR *Find)
 Return a pointer to the first occurrence of a search string in a string.
TCHARnux::Strchr (const TCHAR *String, int c)
 Find the first occurrence a character in a string. Returns a pointer to that character in the string or NULL if it is not found.
TCHARnux::Strrchr (const TCHAR *String, int c)
 Find the last occurrence a character in a string. Returns a pointer to that character in the string or NULL if it is not found.
int nux::TCharStringCompare (const TCHAR *String1, const TCHAR *String2)
 Performs a case-sensitive comparison. The return value indicates the lexicographic relation of String1 to String2.
int nux::Stricmp (const TCHAR *String1, const TCHAR *String2)
 Performs a case-insensitive comparison. The return value indicates the lexicographic relation of String1 to String2.
int nux::Strtoi (const TCHAR *Start, TCHAR **End, int Base)
int nux::TCharStringNCompare (const TCHAR *A, const TCHAR *B, size_t Count)
int nux::TCharStringNICompare (const TCHAR *A, const TCHAR *B, size_t Count)
TCHARnux::Strdup (const TCHAR *str)
 Duplicate a null terminated string using new[]. The resulting string is NULL terminated. Use delete[] to destroy.
ANSICHARnux::StrdupA (const ANSICHAR *str)
 Duplicate a null terminated ANSICHAR string using new[]. The resulting string is NULL terminated. Use delete[] to destroy.
UNICHARnux::StrdupU (const UNICHAR *str)
 Duplicate a null terminated UNICHAR string using new[]. The resulting string is NULL terminated. Use delete[] to destroy.
 nux::VARARG_DECL (int, static int, return, Snprintf, VARARG_NONE, const TCHAR *, VARARG_EXTRA(TCHAR *Dest) VARARG_EXTRA(int Size) VARARG_EXTRA(int Count), VARARG_EXTRA(Dest) VARARG_EXTRA(Size) VARARG_EXTRA(Count))
 Formatted Printf.
bool nux::IsLastChar (const TCHAR *CharString, const TCHAR Chr)
NString nux::Itoa (int InNum)