|
AceLinux 2.0
A library of wicked convenience functions for Linux.
|
#include <Ace.h>
Static Public Member Functions | |
| static void * | _Aligned_Malloc (const size_t &size, const size_t &alignment=BYTE_ALIGNMENT) |
| Allocates a memory aligned buffer of specified size. More... | |
| static void * | _Aligned_Calloc (const size_t &size, const size_t &alignment=BYTE_ALIGNMENT) |
| Allocates a memory aligned buffer of specified size and zeros it out. More... | |
| static double | AbsoluteValue (const double &num) |
| Calculates the absolute value of a number in compliance with CERT Coding Standard. More... | |
| static float | AbsoluteValue (const float &num) |
| Calculates the absolute value of a number in compliance with CERT Coding Standard. More... | |
| static int | AbsoluteValue (const int &num) |
| Calculates the absolute value of a number in compliance with CERT Coding Standard. More... | |
| static long | AbsoluteValue (const long &num) |
| Calculates the absolute value of a number in compliance with CERT Coding Standard. More... | |
| static char * | AllocateAndCopyString (const char *strToCopy) |
| Allocates a buffer and copies a provided traditional string into the buffer. More... | |
| static wchar_t * | AllocateAndCopyString (const wchar_t *wideStrToCopy) |
| Allocates a buffer and copies a provided traditional wide string into the buffer. More... | |
| static double | ArcCos (const double &numInRadians) |
| Calculates the ArcCos in compliance with CERT Coding Standard. More... | |
| static float | ArcCos (const float &numInRadians) |
| Calculates the ArcCos in compliance with CERT Coding Standard. More... | |
| static int | ArcCos (const int &numInRadians) |
| Calculates the ArcCos in compliance with CERT Coding Standard. More... | |
| static long | ArcCos (const long &numInRadians) |
| Calculates the ArcCos in compliance with CERT Coding Standard. More... | |
| static double | ArcCosH (const double &numInRadians) |
| Calculates the ArcCosH in compliance with CERT Coding Standard. More... | |
| static float | ArcCosH (const float &numInRadians) |
| Calculates the ArcCosH in compliance with CERT Coding Standard. More... | |
| static int | ArcCosH (const int &numInRadians) |
| Calculates the ArcCosH in compliance with CERT Coding Standard. More... | |
| static long | ArcCosH (const long &numInRadians) |
| Calculates the ArcCosH in compliance with CERT Coding Standard. More... | |
| static double | ArcSin (const double &numInRadians) |
| Calculates the ArcSin in compliance with CERT Coding Standard. More... | |
| static float | ArcSin (const float &numInRadians) |
| Calculates the ArcSin in compliance with CERT Coding Standard. More... | |
| static int | ArcSin (const int &numInRadians) |
| Calculates the ArcSin in compliance with CERT Coding Standard. More... | |
| static long | ArcSin (const long &numInRadians) |
| Calculates the ArcSin in compliance with CERT Coding Standard. More... | |
| static double | ArcSinH (const double &numInRadians) |
| Calculates the ArcSinH in compliance with CERT Coding Standard. More... | |
| static float | ArcSinH (const float &numInRadians) |
| Calculates the ArcSinH in compliance with CERT Coding Standard. More... | |
| static int | ArcSinH (const int &numInRadians) |
| Calculates the ArcSinH in compliance with CERT Coding Standard. More... | |
| static long | ArcSinH (const long &numInRadians) |
| Calculates the ArcSinH in compliance with CERT Coding Standard. More... | |
| static double | ArcTan (const double &numInRadians) |
| Calculates the ArcTan in compliance with CERT Coding Standard. More... | |
| static float | ArcTan (const float &numInRadians) |
| Calculates the ArcTan in compliance with CERT Coding Standard. More... | |
| static int | ArcTan (const int &numInRadians) |
| Calculates the ArcTan in compliance with CERT Coding Standard. More... | |
| static long | ArcTan (const long &numInRadians) |
| Calculates the ArcTan in compliance with CERT Coding Standard. More... | |
| static double | ArcTanH (const double &numInRadians) |
| Calculates the ArcTanH in compliance with CERT Coding Standard. More... | |
| static float | ArcTanH (const float &numInRadians) |
| Calculates the ArcTanH in compliance with CERT Coding Standard. More... | |
| static int | ArcTanH (const int &numInRadians) |
| Calculates the ArcTanH in compliance with CERT Coding Standard. More... | |
| static long | ArcTanH (const long &numInRadians) |
| Calculates the ArcTanH in compliance with CERT Coding Standard. More... | |
| static double | ArcTan2 (const double &yInRadians, const double &xInRadians) |
| Calculates the ArcTan2 in compliance with CERT Coding Standard. More... | |
| static float | ArcTan2 (const float &yInRadians, const float &xInRadians) |
| Calculates the ArcTan2 in compliance with CERT Coding Standard. More... | |
| static int | ArcTan2 (const int &yInRadians, const int &xInRadians) |
| Calculates the ArcTan2 in compliance with CERT Coding Standard. More... | |
| static long | ArcTan2 (const long &yInRadians, const long &xInRadians) |
| Calculates the ArcTan2 in compliance with CERT Coding Standard. More... | |
| static void | CalculateAspectRatio (const int &newWidth, const int &newHeight, const int &originalWidth, const int &originalHeight, int &outAdjustedWidth, int &outAdjustedHeight) |
| Adjusts the resolution to the correct aspect ratio for the destination. More... | |
| static LONGLONG | CalculateFileSize (const char *theFilePath) |
| Uses fseek() to calculate the size of the file by moving the file pointer to the end. More... | |
| static LONGLONG | CalculateFileSize (const wchar_t *theFilePath) |
| Gets the size of the file in compliance with CERT Coding Standard. More... | |
| static int | CalculateNumLength (const int &num) |
| Counts the number of digits of num. More... | |
| static long | CalculateNumLength (const long &num) |
| Counts the number of digits of num. More... | |
| static double | Ceiling (const double &num) |
| Calculates the smallest integer value greater than or equal to num. More... | |
| static float | Ceiling (const float &num) |
| Calculates the smallest integer value greater than or equal to num. More... | |
| static int | Ceiling (const int &num) |
| Calculates the smallest integer value greater than or equal to num. More... | |
| static long | Ceiling (const long &num) |
| Calculates the smallest integer value greater than or equal to num. More... | |
| static bool | ChangeWindowsConsoleFont (const wchar_t *fontName, const wchar_t *locale, const UINT &fontFamily, const UINT &fontWeight, const SHORT &fontWidth, const SHORT &fontHeight, const DWORD &fontIndex=0) |
| static char | CharAt (const char *str, const int &index) |
| Returns a single character in str at a specified index. More... | |
| static wchar_t | CharAt (const wchar_t *str, const int &index) |
| Returns a single character in str at a specified index. More... | |
| static int | Clamp (const int &numToClamp, const int &min, const int &max) |
Returns a value between min and max inclusive. More... | |
| static long | Clamp (const long &numToClamp, const long &min, const long &max) |
Returns a value between min and max inclusive. More... | |
| static double | Clamp (const double &numToClamp, const double &min, const double &max) |
Returns a value between min and max inclusive. More... | |
| static float | Clamp (const float &numToClamp, const float &min, const float &max) |
Returns a value between min and max inclusive. More... | |
| static double | ComplementaryErrorFunction (const double &num) |
| Calculates the Complementary Error Function integral from num to infinity in compliance with CERT Coding Standard. More... | |
| static float | ComplementaryErrorFunction (const float &num) |
| Calculates the Complementary Error Function integral from num to infinity in compliance with CERT Coding Standard. More... | |
| static int | ComplementaryErrorFunction (const int &num) |
| Calculates the Complementary Error Function integral from num to infinity in compliance with CERT Coding Standard. More... | |
| static long | ComplementaryErrorFunction (const long &num) |
| Calculates the Complementary Error Function integral from num to infinity in compliance with CERT Coding Standard. More... | |
| static char * | ConcatenateStrings (const int &numStrings, char **stringArray) |
| Appends an array of strings together and returns the combined string. More... | |
| static wchar_t * | ConcatenateStrings (const int &numStrings, wchar_t **stringArray) |
| Appends an array of strings together and returns the combined string. More... | |
| static char * | ConcatenateStrings (const vector< const char * > &stringVectorArray) |
| Appends a vector array of strings together and returns the combined string. More... | |
| static wchar_t * | ConcatenateStrings (const vector< const wchar_t * > &stringVectorArray) |
| Appends a vector array of wide strings together and returns the combined wide string. More... | |
| static bool | ConcatenateStrings (char *destination, const int &numStrings, const char **stringArray) |
| Appends an array of strings together and stores it in the provided destination buffer. More... | |
| static bool | ConcatenateStrings (wchar_t *destination, const int &numStrings, const wchar_t **stringArray) |
| Appends an array of strings together and stores it in the provided destination buffer. More... | |
| static bool | ConcatenateStrings (char *destination, const vector< const char * > &stringVectorArray) |
| Appends a vector array of strings together and stores the result in the provided destination buffer. More... | |
| static bool | ConcatenateStrings (wchar_t *destination, const vector< const wchar_t * > &stringVectorArray) |
| Appends a vector array of wide strings together and returns the combined wide string. More... | |
| static char * | Concatenate (int numStrings,...) |
| Appends a series of strings together. More... | |
| static wchar_t * | ConcatenateW (int numWideStrings,...) |
| Appends a series of strings together. More... | |
| static bool | Concatenate (char *destination, int numStrings,...) |
| Appends a series of strings together. More... | |
| static bool | ConcatenateW (wchar_t *destination, int numWideStrings,...) |
| Appends a series of strings together. More... | |
| static bool | Contains (const char *strToSearch, const char *strToLookFor) |
| Searches strToSearch for the first occurrence of strToLookFor and returns true if found. More... | |
| static bool | Contains (const wchar_t *strToSearch, const wchar_t *strToLookFor) |
| Searches strToSearch for the first occurrence of strToLookFor and returns true if found. More... | |
| static bool | ContainsIgnoreCase (const char *strToSearch, const char *strToLookFor) |
| Searches strToSearch for the first occurrence of strToLookFor (regardless of case) and returns true if found. More... | |
| static bool | ContainsIgnoreCase (const wchar_t *strToSearch, const wchar_t *strToLookFor) |
| Searches strToSearch for the first occurrence of strToLookFor (regardless of case) and returns true if found. More... | |
| static bool | ConvertDoubleToBool (const double &num) |
| By definition, false is equal to 0 and true is equal to anything but 0. More... | |
| static bool | ConvertFloatToBool (const float &num) |
| By definition, false is equal to 0 and true is equal to anything but 0. More... | |
| static bool | ConvertIntToBool (const int &num) |
| By definition, false is equal to 0 and true is equal to anything but 0. More... | |
| static char * | ConvertIntToString (const int &integerToConvert) |
| Returns a buffer containing the result of _itoa_s() using integerToConvert. More... | |
| static wchar_t * | ConvertIntToWideString (const int &integerToConvert) |
| Returns a buffer containing the result of _itow_s() using integerToConvert. More... | |
| static bool | ConvertLongToBool (const long &num) |
| By definition, false is equal to 0 and true is equal to anything but 0. More... | |
| static char * | ConvertLongToString (const long &longToConvert) |
| Returns a buffer containing the result of snprintf() using integerToConvert. More... | |
| static wchar_t * | ConvertLongToWideString (const long &longToConvert) |
| Returns a buffer containing the result of swprintf() using longToConvert. More... | |
| static vector< char * > | ConvertStringArrayToStringVectorArray (char **stringArray) |
| Converts a traditional string array to a vector string array. More... | |
| static vector< wchar_t * > | ConvertStringArrayToStringVectorArray (wchar_t **stringArray) |
| Converts a traditional wide string array to a vector wide string array. More... | |
| static char * | ConvertStringFullWidthToHalfWidth (const char *fullWidthStr) |
| Converts a string containing "full width" characters to the corresponding "half width" characters. More... | |
| static wchar_t * | ConvertStringFullWidthToHalfWidth (const wchar_t *fullWidthStr) |
| Converts a string containing "full width" characters to the corresponding "half width" characters. More... | |
| static bool | ConvertStringFullWidthToHalfWidth (const char *fullWidthStr, char *outHalfWidthStr) |
| Converts a string containing "full width" characters to the corresponding "half width" characters. More... | |
| static bool | ConvertStringFullWidthToHalfWidth (const wchar_t *fullWidthStr, wchar_t *outHalfWidthStr) |
| Converts a string containing "full width" characters to the corresponding "half width" characters. More... | |
| static char * | ConvertStringHalfWidthToFullWidth (const char *halfWidthStr) |
| Converts a string containing "half width" characters to the corresponding "full width" characters. More... | |
| static wchar_t * | ConvertStringHalfWidthToFullWidth (const wchar_t *halfWidthStr) |
| Converts a string containing "half width" characters to the corresponding "full width" characters. More... | |
| static bool | ConvertStringHalfWidthToFullWidth (const char *halfWidthStr, char *outFullWidthStr) |
| Converts a string containing "half width" characters to the corresponding "full width" characters. More... | |
| static bool | ConvertStringHalfWidthToFullWidth (const wchar_t *halfWidthStr, wchar_t *outFullWidthStr) |
| Converts a string containing "half width" characters to the corresponding "full width" characters. More... | |
| static bool | ConvertStringToBool (const char *str) |
| Converts a given string to a bool, If str is a string like "False", "FALSE", or "tRuE", then the function will return false, false, true respectively. More... | |
| static bool | ConvertStringToBool (const wchar_t *str) |
| Converts a given wide string to a bool, If str is a wide string like "False", "FALSE", or "tRuE", then the function will return false, false, true respectively. More... | |
| static float * | ConvertStringToFloatArray (const char *strToConvert, const char *delimiter, int &outNumItems) |
| Converts a tokenized string (a string with commas separating numbers for example) to an array of floats. More... | |
| static float * | ConvertStringToFloatArray (const wchar_t *strToConvert, const wchar_t *delimiter, int &outNumItems) |
| Converts a tokenized wide string (a string with commas separating numbers for example) to an array of floats. More... | |
| static unsigned int | ConvertStringToHex (const char *str) |
| Converts a string to its hex value. More... | |
| static unsigned int | ConvertStringToHex (const wchar_t *str) |
| Converts a string to its hex value. More... | |
| static double | ConvertStringToDouble (const char *str) |
| Converts a string to its double value. More... | |
| static double | ConvertStringToDouble (const wchar_t *str) |
| Converts a string to its double value. More... | |
| static float | ConvertStringToFloat (const char *str) |
| Converts a string to its float value. More... | |
| static float | ConvertStringToFloat (const wchar_t *str) |
| Converts a string to its float value. More... | |
| static int | ConvertStringToInteger (const char *str) |
| Converts a string to its integer value. More... | |
| static int | ConvertStringToInteger (const wchar_t *str) |
| Converts a string to its integer value. More... | |
| static long | ConvertStringToLong (const char *str) |
| Converts a string to its long integer value. More... | |
| static long | ConvertStringToLong (const wchar_t *str) |
| Converts a string to its long integer value. More... | |
| static char * | ConvertStringToOneLine (const char *strToConvert) |
| Converts a traditional string to a traditional string that is all on one line, In other words; this function removes any occurrence of from stringToConvert. More... | |
| static wchar_t * | ConvertStringToOneLine (const wchar_t *strToConvert) |
| Converts a traditional wide string to a traditional wide string that is all on one line, In other words; this function removes any occurrence of from stringToConvert. More... | |
| static void | ConvertStringToOneLineInPlace (char *strToConvert) |
| Converts a traditional string to a traditional string that is all on one line, In other words; this function removes any occurrence of from stringToConvert. More... | |
| static void | ConvertStringToOneLineInPlace (wchar_t *strToConvert) |
| Converts a traditional wide string to a traditional wide string that is all on one line, In other words; this function removes any occurrence of from stringToConvert. More... | |
| static wchar_t * | ConvertStringToWCharString (const char *strToConvert) |
| Converts a traditional string to a wide string. More... | |
| static char ** | ConvertStringVectorArrayToStringArray (const vector< const char * > &stringVectorArray, int &outStringArrayLength) |
| Converts a string vector array to a traditional string array. More... | |
| static wchar_t ** | ConvertStringVectorArrayToStringArray (const vector< const wchar_t * > &stringVectorArray, int &outStringArrayLength) |
| Converts a wide string vector array to a traditional wide string array. More... | |
| static bool | ConvertStringVectorArrayToStringArray (char **destinationStrArray, const vector< const char * > &stringVectorArray, int &outStringArrayLength) |
| Converts a string vector array to a traditional string array. More... | |
| static bool | ConvertStringVectorArrayToStringArray (wchar_t **destinationStrArray, const vector< const wchar_t * > &stringVectorArray, int &outStringArrayLength) |
| Converts a string vector array to a traditional string array. More... | |
| static char | ConvertToLowerCase (const char &character) |
| Converts a character to lowercase. More... | |
| static wchar_t | ConvertToLowerCase (const wchar_t &character) |
| Converts a wide character to lowercase. More... | |
| static char | ConvertToUpperCase (const char &character) |
| Converts a character to uppercase. More... | |
| static wchar_t | ConvertToUpperCase (const wchar_t &character) |
| Converts a wide character to uppercase. More... | |
| static char * | ConvertToLowerCase (const char *str) |
| Converts a string to all lowercase letters. More... | |
| static wchar_t * | ConvertToLowerCase (const wchar_t *str) |
| Converts a wide string to all lowercase letters. More... | |
| static void | ConvertToLowerCaseInPlace (char *str) |
| Directly modifies str to have all its letters converted to lower case. More... | |
| static void | ConvertToLowerCaseInPlace (wchar_t *str) |
| Directly modifies str to have all its letters converted to lower case. More... | |
| static char * | ConvertToUpperCase (const char *str) |
| Converts a string to all uppercase letters. More... | |
| static wchar_t * | ConvertToUpperCase (const wchar_t *str) |
| Converts a string to all uppercase letters. More... | |
| static void | ConvertToUpperCaseInPlace (char *str) |
| Directly modifies str to have all its letters converted to upper case. More... | |
| static void | ConvertToUpperCaseInPlace (wchar_t *str) |
| Directly modifies str to have all its letters converted to upper case. More... | |
| static double | Cos (const double &numInRadians) |
| Calculates the Cosine (cos) of numInRadians in compliance with CERT Coding Standard. More... | |
| static float | Cos (const float &numInRadians) |
| Calculates the Cosine (cos) of numInRadians in compliance with CERT Coding Standard. More... | |
| static int | Cos (const int &numInRadians) |
| Calculates the Cosine (cos) of numInRadians in compliance with CERT Coding Standard. More... | |
| static long | Cos (const long &numInRadians) |
| Calculates the Cosine (cos) of numInRadians in compliance with CERT Coding Standard. More... | |
| static double | CosH (const double &numInRadians) |
| Calculates the CosH in compliance with CERT Coding Standard. More... | |
| static float | CosH (const float &numInRadians) |
| Calculates the CosH in compliance with CERT Coding Standard. More... | |
| static int | CosH (const int &numInRadians) |
| Calculates the CosH in compliance with CERT Coding Standard. More... | |
| static long | CosH (const long &numInRadians) |
| Calculates the CosH in compliance with CERT Coding Standard. More... | |
| static int | CountNumOccurrences (const char *strToSearch, const char &charToLookFor) |
| Counts the number of times charToLookFor appears in strToSearch. More... | |
| static int | CountNumOccurrences (const wchar_t *strToSearch, const wchar_t &charToLookFor) |
| Counts the number of times charToLookFor appears in strToSearch. More... | |
| static int | CountNumOccurrences (const char *strToSearch, const char *strToLookFor) |
| Counts the number of times strToLookFor appears in strToSearch. More... | |
| static int | CountNumOccurrences (const wchar_t *strToSearch, const wchar_t *strToLookFor) |
| Counts the number of times strToLookFor appears in strToSearch. More... | |
| static double | CubeRoot (const double &num) |
| Calculates the Cube Root in compliance with CERT Coding Standard. More... | |
| static float | CubeRoot (const float &num) |
| Calculates the Cube Root in compliance with CERT Coding Standard. More... | |
| static int | CubeRoot (const int &num) |
| Calculates the Cube Root in compliance with CERT Coding Standard. More... | |
| static long | CubeRoot (const long &num) |
| Calculates the Cube Root in compliance with CERT Coding Standard. More... | |
| static double | DegreesToRadians (const double °rees) |
| Converts a number from degrees to radians. More... | |
| static float | DegreesToRadians (const float °rees) |
| Converts a number from degrees to radians. More... | |
| static int | DegreesToRadians (const int °rees) |
| Converts a number from degrees to radians. More... | |
| static long | DegreesToRadians (const long °rees) |
| Converts a number from degrees to radians. More... | |
| static bool | DoesFileExist (const char *fullFilePathWithNameAndExt) |
| Returns true if the specified file exists, false otherwise. More... | |
| static bool | DoesFileExist (const wchar_t *fullFilePathWithNameAndExt) |
| Returns true if the specified file exists, false otherwise. More... | |
| static double | ErrorFunction (const double &num) |
| Calculates the Error Function integral from 0 to num in compliance with CERT Coding Standard. More... | |
| static float | ErrorFunction (const float &num) |
| Calculates the Error Function integral from 0 to num in compliance with CERT Coding Standard. More... | |
| static int | ErrorFunction (const int &num) |
| Calculates the Error Function integral from 0 to num in compliance with CERT Coding Standard. More... | |
| static long | ErrorFunction (const long &num) |
| Calculates the Error Function integral from 0 to num in compliance with CERT Coding Standard. More... | |
| static bool | Equals (const char *strToCompOne, const char *strToCompTwo) |
| Compares two traditional strings together. More... | |
| static bool | Equals (const wchar_t *strToCompOne, const wchar_t *strToCompTwo) |
| Compares two traditional wide strings together. More... | |
| static bool | EqualsIgnoreCase (const char *strToCompOne, const char *strToCompTwo) |
| Compares two traditional strings together but ignores upper/lower case. More... | |
| static bool | EqualsIgnoreCase (const wchar_t *strToCompOne, const wchar_t *strToCompTwo) |
| Compares two traditional wide strings together but ignores upper/lower case. More... | |
| static double | EToTheXPower (const double &power) |
| Calculates e^x in compliance with CERT Coding Standard. More... | |
| static float | EToTheXPower (const float &power) |
| Calculates e^x in compliance with CERT Coding Standard. More... | |
| static int | EToTheXPower (const int &power) |
| Calculates e^x in compliance with CERT Coding Standard. More... | |
| static long | EToTheXPower (const long &power) |
| Calculates e^x in compliance with CERT Coding Standard. More... | |
| static double | EToTheXPowerMinusOne (const double &power) |
| Calculates (e^x) - 1 in compliance with CERT Coding Standard. More... | |
| static float | EToTheXPowerMinusOne (const float &power) |
| Calculates (e^x) - 1 in compliance with CERT Coding Standard. More... | |
| static int | EToTheXPowerMinusOne (const int &power) |
| Calculates (e^x) - 1 in compliance with CERT Coding Standard. More... | |
| static long | EToTheXPowerMinusOne (const long &power) |
| Calculates (e^x) - 1 in compliance with CERT Coding Standard. More... | |
| static char | FirstChar (const char *str) |
| Returns the first character in str. More... | |
| static wchar_t | FirstChar (const wchar_t *str) |
| Returns the first character in str. More... | |
| static double | Floor (const double &num) |
| Calculates the largest integer value not greater than num. More... | |
| static float | Floor (const float &num) |
| Calculates the largest integer value not greater than num. More... | |
| static int | Floor (const int &num) |
| Calculates the largest integer value not greater than num. More... | |
| static long | Floor (const long &num) |
| Calculates the largest integer value not greater than num. More... | |
| static double | GammaFunction (const double &num) |
| Calculates The Gamma Function ( (0)integral(Inf)[t^num-1 * e^-t dt] ) in compliance with CERT Coding Standard. More... | |
| static float | GammaFunction (const float &num) |
| Calculates The Gamma Function ( (0)integral(Inf)[t^num-1 * e^-t dt] ) in compliance with CERT Coding Standard. More... | |
| static int | GammaFunction (const int &num) |
| Calculates The Gamma Function ( (0)integral(Inf)[t^num-1 * e^-t dt] ) in compliance with CERT Coding Standard. More... | |
| static long | GammaFunction (const long &num) |
| Calculates The Gamma Function ( (0)integral(Inf)[t^num-1 * e^-t dt] ) in compliance with CERT Coding Standard. More... | |
| static double | GenerateRandomNum (const double &min, const double &max) |
| Some might think this is all unnecessary but I think it's important to seed the RandomNumberGenerator properly with a proper seed value. More... | |
| static float | GenerateRandomNum (const float &min, const float &max) |
| Some might think this is all unnecessary but I think it's important to seed the RandomNumberGenerator properly with a proper seed value. More... | |
| static int | GenerateRandomNum (const int &min, const int &max) |
| Some might think this is all unnecessary but I think it's important to seed the RandomNumberGenerator properly with a proper seed value. More... | |
| static long | GenerateRandomNum (const long &min, const long &max) |
| Some might think this is all unnecessary but I think it's important to seed the RandomNumberGenerator properly with a proper seed value. More... | |
| static char * | GetHResultDescription (const HRESULT &result) |
| Gets the corresponding detailed description of the HRESULT. More... | |
| static wchar_t * | GetHResultDescriptionW (const HRESULT &result) |
| Gets the corresponding detailed description of the HRESULT. More... | |
| static void | GetImageSize (const char *fileName, int *outWidth, int *outHeight) |
| Gets the pixel dimensions of the provided image (filePath). More... | |
| static void | GetImageSizeW (const wchar_t *fileName, int *outWidth, int *outHeight) |
| Gets the pixel dimensions of the provided image (filePath). More... | |
| static void | GetLastWindowsError (wchar_t *outLastWindowsErrorMessage) |
| static double | Hypotenuse (const double &x, const double &y) |
| Solves for c in Pythagoras theorem (a^2 + b^2 = c^2); i.e square root of (x^2 + y^2). More... | |
| static float | Hypotenuse (const float &x, const float &y) |
| Solves for c in Pythagoras theorem (a^2 + b^2 = c^2); i.e square root of (a^2 + b^2). More... | |
| static int | Hypotenuse (const int &x, const int &y) |
| Solves for c in Pythagoras theorem (a^2 + b^2 = c^2); i.e square root of (a^2 + b^2). More... | |
| static long | Hypotenuse (const long &x, const long &y) |
| Solves for c in Pythagoras theorem (a^2 + b^2 = c^2); i.e square root of (a^2 + b^2). More... | |
| static int | IndexOf (const char *strToSearch, const char &charToLookFor) |
| Searches strToSearch for the first occurrence of charToLookFor and returns the (0 based) index of its location. More... | |
| static int | IndexOf (const wchar_t *strToSearch, const wchar_t &charToLookFor) |
| Searches strToSearch for the first occurrence of charToLookFor and returns the (0 based) index of its location. More... | |
| static int | IndexOf (const char *strToSearch, const char *strToLookFor) |
| Searches strToSearch for the first occurrence of strToLookFor and returns the (0 based) index of its location. More... | |
| static int | IndexOf (const wchar_t *strToSearch, const wchar_t *strToLookFor) |
| Searches strToSearch for the first occurrence of strToLookFor and returns the (0 based) index of its location. More... | |
| static int | IndexOfFirstLetter (const char *strToSearch) |
| Returns the first index of a letter in a given string. More... | |
| static int | IndexOfFirstLetter (const wchar_t *strToSearch) |
| Returns the first index of a letter in a given wide string. More... | |
| static int | IndexOfIgnoreCase (const char *strToSearch, const char &charToLookFor) |
| Searches strToSearch for the first occurrence of charToLookFor (regardless of case) and returns the (0 based) index of its location. More... | |
| static int | IndexOfIgnoreCase (const wchar_t *strToSearch, const wchar_t &charToLookFor) |
| Searches strToSearch for the first occurrence of charToLookFor (regardless of case) and returns the (0 based) index of its location. More... | |
| static int | IndexOfIgnoreCase (const char *strToSearch, const char *strToLookFor) |
| Searches strToSearch for the first occurrence of strToLookFor (regardless of case) and returns the (0 based) index of its location. More... | |
| static int | IndexOfIgnoreCase (const wchar_t *strToSearch, const wchar_t *strToLookFor) |
| Searches strToSearch for the first occurrence of strToLookFor (regardless of case) and returns the (0 based) index of its location. More... | |
| static char * | InsertString (const char *strToReceive, const char *strToInsert, const int &startIndex) |
| Inserts the string strToInsert into strToRevcive by "sandwiching" the two halves of strToReceive. More... | |
| static wchar_t * | InsertString (const wchar_t *strToReceive, const wchar_t *strToInsert, const int &startIndex) |
| Inserts the string strToInsert into strToRevcive by "sandwiching" the two halves of strToReceive. More... | |
| static bool | InsertString (char *destination, const char *strToReceive, const char *strToInsert, const int &startIndex) |
| Inserts the string strToInsert into strToRevcive by "sandwiching" the two halves of strToReceive. More... | |
| static bool | InsertString (wchar_t *destination, const wchar_t *strToReceive, const wchar_t *strToInsert, const int &startIndex) |
| Inserts the string strToInsert into strToRevcive by "sandwiching" the two halves of strToReceive. More... | |
| static bool | IsAlphabetic (const char &character) |
| Returns true if a character is a letter from either a to z or A to Z. More... | |
| static bool | IsAlphabetic (const wchar_t &character) |
| Returns true if a wide character is not a digit. More... | |
| static bool | IsDigit (const char &character) |
| Returns true if a character is a digit from 0-9. More... | |
| static bool | IsDigit (const wchar_t &character) |
| Returns true if a wide character is a digit. More... | |
| static bool | IsEmpty (const char *str) |
| Searches a given string to see if it is all empty. More... | |
| static bool | IsEmpty (const wchar_t *str) |
| Searches a given wide string to see if it is all empty. More... | |
| static bool | IsFile (const char *str) |
| Searches for a given file path and checks if the file path is (points to) a file or not. More... | |
| static bool | IsFile (const wchar_t *str) |
| Searches for a given file path and checks if the file path is (points to) a file or not. More... | |
| static bool | IsFolder (const char *str) |
| Searches for a given folder path and checks if the file path is (points to) a folder or not. More... | |
| static bool | IsFolder (const wchar_t *str) |
| Searches for a given folder path and checks if the file path is (points to) a folder or not. More... | |
| static bool | IsNumber (const char *str) |
| Returns true if all characters are a digit. More... | |
| static bool | IsNumber (const wchar_t *str) |
| Returns true if all characters are a digit. More... | |
| static bool | IsPathADevice (const char *path) |
| Returns true if the provided path leads to a device rather than a file. More... | |
| static bool | IsPathADevice (const wchar_t *path) |
| Returns true if the provided path leads to a device rather than a file. More... | |
| static bool | IsWhitespace (const char &character) |
| Returns true if a character is whitespace. More... | |
| static bool | IsWhitespace (const wchar_t &character) |
| Returns true if a wide character is whitespace. More... | |
| static double | Largest (const double &numOne, const double &numTwo) |
| Returns the larger of the two values. More... | |
| static float | Largest (const float &numOne, const float &numTwo) |
| Returns the larger of the two values. More... | |
| static int | Largest (const int &numOne, const int &numTwo) |
| Returns the larger of the two values. More... | |
| static long | Largest (const long &numOne, const long &numTwo) |
| Returns the larger of the two values. More... | |
| static char | LastChar (const char *str) |
| Returns the last character in str. More... | |
| static wchar_t | LastChar (const wchar_t *str) |
| Returns the last character in str. More... | |
| static int | LastIndexOf (const char *strToSearch, const char *strToLookFor) |
| Searches strToSearch for the last occurrence of strToLookFor and returns the (0 based) index of its location. More... | |
| static int | LastIndexOf (const wchar_t *strToSearch, const wchar_t *strToLookFor) |
| Searches strToSearch for the last occurrence of strToLookFor and returns the (0 based) index of its location. More... | |
| static double | LogBaseTen (const double &num) |
| Calculates the logarithm (log) base 10 of num in compliance with CERT Coding Standard. More... | |
| static float | LogBaseTen (const float &num) |
| Calculates the logarithm (log) base 10 of num in compliance with CERT Coding Standard. More... | |
| static int | LogBaseTen (const int &num) |
| Calculates the logarithm (log) base 10 of num in compliance with CERT Coding Standard. More... | |
| static long | LogBaseTen (const long &num) |
| Calculates the logarithm (log) base 10 of num in compliance with CERT Coding Standard. More... | |
| static double | LogBaseTwo (const double &num) |
| Calculates the logarithm (log) base 2 of num in compliance with CERT Coding Standard. More... | |
| static float | LogBaseTwo (const float &num) |
| Calculates the logarithm (log) base 2 of num in compliance with CERT Coding Standard. More... | |
| static int | LogBaseTwo (const int &num) |
| Calculates the logarithm (log) base 2 of num in compliance with CERT Coding Standard. More... | |
| static long | LogBaseTwo (const long &num) |
| Calculates the logarithm (log) base 2 of num in compliance with CERT Coding Standard. More... | |
| static double | Mod (const double &numerator, const double &denominator) |
| Computes the floating-point remainder of the division operation numerator/denominator in compliance with CERT Coding Standard. More... | |
| static float | Mod (const float &numerator, const float &denominator) |
| Computes the floating-point remainder of the division operation numerator/denominator in compliance with CERT Coding Standard. More... | |
| static int | Mod (const int &numerator, const int &denominator) |
| Computes the floating-point remainder of the division operation numerator/denominator in compliance with CERT Coding Standard. More... | |
| static long | Mod (const long &numerator, const long &denominator) |
| Computes the floating-point remainder of the division operation numerator/denominator in compliance with CERT Coding Standard. More... | |
| static double | MultiplyThenAdd (const double &multOne, const double &multTwo, const double &add) |
| Calculates the product of multOne * multTwo, then adds add to that product (i.e. More... | |
| static float | MultiplyThenAdd (const float &multOne, const float &multTwo, const float &add) |
| Calculates the product of multOne * multTwo, then adds add to that product (i.e. More... | |
| static int | MultiplyThenAdd (const int &multOne, const int &multTwo, const int &add) |
| Calculates the product of multOne * multTwo, then adds add to that product (i.e. More... | |
| static long | MultiplyThenAdd (const long &multOne, const long &multTwo, const long &add) |
| Calculates the product of multOne * multTwo, then adds add to that product (i.e. More... | |
| static double | NaturalLog (const double &num) |
| Calculates the Natural Logarithm (ln) of num in compliance with CERT Coding Standard. More... | |
| static float | NaturalLog (const float &num) |
| Calculates the Natural Logarithm (ln) of num in compliance with CERT Coding Standard. More... | |
| static int | NaturalLog (const int &num) |
| Calculates the Natural Logarithm (ln) of num in compliance with CERT Coding Standard. More... | |
| static long | NaturalLog (const long &num) |
| Calculates the Natural Logarithm (ln) of num in compliance with CERT Coding Standard. More... | |
| static double | NaturalLogGammaFunction (const double &num) |
| Calculates The Natural Log (ln) of The Gamma Function (ln | (0)integral(Inf)[t^num-1 * e^-t dt] |). More... | |
| static float | NaturalLogGammaFunction (const float &num) |
| Calculates The Natural Log (ln) of The Gamma Function (ln | (0)integral(Inf)[t^num-1 * e^-t dt] |). More... | |
| static int | NaturalLogGammaFunction (const int &num) |
| Calculates The Natural Log (ln) of The Gamma Function (ln | (0)integral(Inf)[t^num-1 * e^-t dt] |). More... | |
| static long | NaturalLogGammaFunction (const long &num) |
| Calculates The Natural Log (ln) of The Gamma Function (ln | (0)integral(Inf)[t^num-1 * e^-t dt] |). More... | |
| static int | NextIndexOf (const char *strToSearch, const char &charToLookFor, const int &startIndex) |
| Retrieves the first occurrence of charToLookFor in strToSearch starting at startIndex onward. More... | |
| static int | NextIndexOf (const wchar_t *strToSearch, const wchar_t &charToLookFor, const int &startIndex) |
| Retrieves the first occurrence of charToLookFor in strToSearch starting at startIndex onward. More... | |
| static int | NextIndexOf (const char *strToSearch, const char *strToLookFor, const int &startIndex) |
| Retrieves the first occurrence of strToLookFor in strToSearch starting at startIndex onward. More... | |
| static int | NextIndexOf (const wchar_t *strToSearch, const wchar_t *strToLookFor, const int &startIndex) |
| Retrieves the first occurrence of strToLookFor in strToSearch starting at startIndex onward. More... | |
| static double | NumTimesTwoToTheXPower (const double &num, const double &power) |
| Calculates num * 2^power in compliance with CERT Coding Standard. More... | |
| static float | NumTimesTwoToTheXPower (const float &num, const float &power) |
| Calculates num * 2^power in compliance with CERT Coding Standard. More... | |
| static int | NumTimesTwoToTheXPower (const int &num, const int &power) |
| Calculates num * 2^power in compliance with CERT Coding Standard. More... | |
| static long | NumTimesTwoToTheXPower (const long &num, const long &power) |
| Calculates num * 2^power in compliance with CERT Coding Standard. More... | |
| static double | PositiveDifference (const double &numOne, const double &numTwo) |
| Calculates the difference between numOne and numTwo only if numOne > numTwo. More... | |
| static float | PositiveDifference (const float &numOne, const float &numTwo) |
| Calculates the difference between numOne and numTwo only if numOne > numTwo. More... | |
| static int | PositiveDifference (const int &numOne, const int &numTwo) |
| Calculates the difference between numOne and numTwo only if numOne > numTwo. More... | |
| static long | PositiveDifference (const long &numOne, const long &numTwo) |
| Calculates the difference between numOne and numTwo only if numOne > numTwo. More... | |
| static double | Power (const double &base, const double &exponent) |
| Takes the provided base and raises it to the exponent (power). More... | |
| static float | Power (const float &base, const float &exponent) |
| Takes the provided base and raises it to the exponent (power). More... | |
| static int | Power (const int &base, const int &exponent) |
| Takes the provided base and raises it to the exponent (power). More... | |
| static long | Power (const long &base, const long &exponent) |
| Takes the provided base and raises it to the exponent (power). More... | |
| static double | RadiansToDegrees (const double &radians) |
| Converts a number from radians to degrees. More... | |
| static float | RadiansToDegrees (const float &radians) |
| Converts a number from radians to degrees. More... | |
| static int | RadiansToDegrees (const int &radians) |
| Converts a number from radians to degrees. More... | |
| static long | RadiansToDegrees (const long &radians) |
| Converts a number from radians to degrees. More... | |
| static double | Range (const double &inValue, const double &minInRange, const double &maxInRange, const double &minOutRange, const double &maxOutRange) |
| Takes the provided inValue with a range of minInRange to maxInRange, and maps the converted value between minOutRange and maxOutRange. More... | |
| static float | Range (const float &inValue, const float &minInRange, const float &maxInRange, const float &minOutRange, const float &maxOutRange) |
| Takes the provided inValue with a range of minInRange to maxInRange, and maps the converted value between minOutRange and maxOutRange. More... | |
| static int | Range (const int &inValue, const int &minInRange, const int &maxInRange, const int &minOutRange, const int &maxOutRange) |
| Takes the provided inValue with a range of minInRange to maxInRange, and maps the converted value between minOutRange and maxOutRange. More... | |
| static long | Range (const long &inValue, const long &minInRange, const long &maxInRange, const long &minOutRange, const long &maxOutRange) |
| Takes the provided inValue with a range of minInRange to maxInRange, and maps the converted value between minOutRange and maxOutRange. More... | |
| static char * | ReadTextFile (const char *filePath, const size_t &numBytesToRead=0, const size_t &maxBufferSize=MAX_STRING_BUFFER_SIZE, const char *mode="r", const int &seekOffset=0, const int &seekOrigin=SEEK_SET, long *outEndCursorPos=NULL) |
| Opens a file for reading and returns a char buffer containing some or all of the data in the file. More... | |
| static wchar_t * | ReadTextFileW (const wchar_t *filePath, const size_t &numBytesToRead=0, const size_t &maxBufferSize=MAX_STRING_BUFFER_SIZE, const wchar_t *mode=L"r, ccs=UTF-8", const int &seekOffset=0, const int &seekOrigin=SEEK_SET, long *outEndCursorPos=NULL) |
| Opens a file for reading and returns a wide char buffer containing some or all of the data in the file. More... | |
| static void * | ReadBinaryFile (const char *filePath, const size_t &numBytesToRead=0, const size_t &maxBufferSize=MAX_STRING_BUFFER_SIZE, const char *mode="rb", const int &seekOffset=0, const int &seekOrigin=SEEK_SET, long *outEndCursorPos=NULL) |
| Opens a file for reading and returns a char buffer containing some or all of the data in the file. More... | |
| static void * | ReadBinaryFileW (const wchar_t *filePath, const size_t &numBytesToRead=0, const size_t &maxBufferSize=MAX_STRING_BUFFER_SIZE, const wchar_t *mode=L"rb, ccs=UTF-8", const int &seekOffset=0, const int &seekOrigin=SEEK_SET, long *outEndCursorPos=NULL) |
| Opens a file for reading and returns a wide char buffer containing some or all of the data in the file. More... | |
| static bool | ReadTextFile (char *destination, const char *filePath, const size_t &numBytesToRead=0, const size_t &maxBufferSize=MAX_STRING_BUFFER_SIZE, const char *mode="r", const int &seekOffset=0, const int &seekOrigin=SEEK_SET, long *outEndCursorPos=NULL) |
| Opens a file for reading and returns a char buffer containing some or all of the data in the file. More... | |
| static bool | ReadTextFileW (wchar_t *destination, const wchar_t *filePath, const size_t &numBytesToRead=0, const size_t &maxBufferSize=MAX_STRING_BUFFER_SIZE, const wchar_t *mode=L"r, ccs=UTF-8", const int &seekOffset=0, const int &seekOrigin=SEEK_SET, long *outEndCursorPos=NULL) |
| Opens a file for reading and returns a char buffer containing some or all of the data in the file. More... | |
| static bool | ReadBinaryFile (void *destination, const char *filePath, const size_t &numBytesToRead=0, const size_t &maxBufferSize=MAX_STRING_BUFFER_SIZE, const char *mode="rb", const int &seekOffset=0, const int &seekOrigin=SEEK_SET, long *outEndCursorPos=NULL) |
| Opens a file for reading and returns a char buffer containing some or all of the data in the file. More... | |
| static bool | ReadBinaryFileW (void *destination, const wchar_t *filePath, const size_t &numBytesToRead=0, const size_t &maxBufferSize=MAX_STRING_BUFFER_SIZE, const wchar_t *mode=L"rb, ccs=UTF-8", const int &seekOffset=0, const int &seekOrigin=SEEK_SET, long *outEndCursorPos=NULL) |
| Opens a file for reading and returns a char buffer containing some or all of the data in the file. More... | |
| static double | Remainder (const double &numerator, const double &denominator) |
| Calculates the Computes The IEEE remainder of the floating point division operation numerator/denominator. More... | |
| static float | Remainder (const float &numerator, const float &denominator) |
| Calculates the Computes The IEEE remainder of the floating point division operation numerator/denominator. More... | |
| static int | Remainder (const int &numerator, const int &denominator) |
| Calculates the Computes The IEEE remainder of the floating point division operation numerator/denominator. More... | |
| static long | Remainder (const long &numerator, const long &denominator) |
| Calculates the Computes The IEEE remainder of the floating point division operation numerator/denominator. More... | |
| static double | RemainderWithQuotient (const double &numerator, const double &denominator, int *outQuotient) |
| Calculates the floating-point remainder of the division operation numerator/denominator the same way the Remainder() function does. More... | |
| static float | RemainderWithQuotient (const float &numerator, const float &denominator, int *outQuotient) |
| Calculates the floating-point remainder of the division operation numerator/denominator the same way the Remainder() function does. More... | |
| static int | RemainderWithQuotient (const int &numerator, const int &denominator, int *outQuotient) |
| Calculates the floating-point remainder of the division operation numerator/denominator the same way the Remainder() function does. More... | |
| static long | RemainderWithQuotient (const long &numerator, const long &denominator, int *outQuotient) |
| Calculates the floating-point remainder of the division operation numerator/denominator the same way the Remainder() function does. More... | |
| static char * | RemoveAllWhitespace (const char *str) |
| Removes all whitespace from a given string. More... | |
| static wchar_t * | RemoveAllWhitespace (const wchar_t *str) |
| Removes all whitespace from a given wide string. More... | |
| static void | RemoveAllWhitespaceInPlace (char *str) |
| Removes all whitespace from a given string in place. More... | |
| static void | RemoveAllWhitespaceInPlace (wchar_t *str) |
| Removes all whitespace from a given wide string in place. More... | |
| static char * | RemoveCharactersFromString (const char *strToRemoveFrom, const char &charToRemove) |
| Removes any occurrence of charToRemove from strToRemoveFrom. More... | |
| static wchar_t * | RemoveCharactersFromString (const wchar_t *strToRemoveFrom, const wchar_t &charToRemove) |
| Removes any occurrence of charToRemove from strToRemoveFrom. More... | |
| static void | RemoveCharactersFromStringInPlace (char *strToRemoveFrom, const char &charToRemove) |
| Removes any occurrence of charToRemove from strToRemoveFrom. More... | |
| static void | RemoveCharactersFromStringInPlace (wchar_t *strToRemoveFrom, const wchar_t &charToRemove) |
| Removes any occurrence of charToRemove from strToRemoveFrom. More... | |
| static char * | RemoveStringFromString (const char *strToRemoveFrom, const char *strToRemove, const bool &removeOnlyFirstOccurrence=false) |
| Removes the specified string (strToLookFor) from strToSearch and returns a newly allocated buffer containing the result. More... | |
| static wchar_t * | RemoveStringFromString (const wchar_t *strToRemoveFrom, const wchar_t *strToRemove, const bool &removeOnlyFirstOccurrence=false) |
| Removes the specified string (strToLookFor) from strToSearch and returns a newly allocated buffer containing the result. More... | |
| static void | RemoveStringFromStringInPlace (char *strToRemoveFrom, const char *strToRemove, const bool &removeOnlyFirstOccurrence=false) |
| Removes the specified string (strToLookFor) by directly modifying strToSearch. More... | |
| static void | RemoveStringFromStringInPlace (wchar_t *strToRemoveFrom, const wchar_t *strToRemove, const bool &removeOnlyFirstOccurrence=false) |
| Removes the specified string (strToLookFor) by directly modifying strToSearch. More... | |
| static char * | ReplaceString (const char *strToSearch, const char *strToLookFor, const char *strToReplaceWith, const bool &removeOnlyFirstOccurrence=false) |
| Inserts strToReplaceWith in the position strToLookFor is located, then strToLookFor is removed. More... | |
| static wchar_t * | ReplaceString (const wchar_t *strToSearch, const wchar_t *strToLookFor, const wchar_t *strToReplaceWith, const bool &removeOnlyFirstOccurrence=false) |
| Inserts strToReplaceWith in the position strToLookFor is located, then strToLookFor is removed. More... | |
| static bool | ReplaceString (char *destination, const int &destinationLength, const char *strToSearch, const char *strToLookFor, const char *strToReplaceWith, const bool &removeOnlyFirstOccurrence=false) |
| Attempts to remove the provided strToLookFor and replace it with the provided strToReplaceWith inside of the whole strToSearch. More... | |
| static bool | ReplaceString (wchar_t *destination, const int &destinationLength, const wchar_t *strToSearch, const wchar_t *strToLookFor, const wchar_t *strToReplaceWith, const bool &removeOnlyFirstOccurrence=false) |
| Attempts to remove the provided strToLookFor and replace it with the provided strToReplaceWith inside of the whole strToSearch. More... | |
| static char * | RetrieveDataBetweenTags (const char *fileData, const char *startTag, const char *endTag) |
| Finds the XML data between the startTag and endTag and returns it. More... | |
| static wchar_t * | RetrieveDataBetweenTags (const wchar_t *fileData, const wchar_t *startTag, const wchar_t *endTag) |
| Finds the XML data between the startTag and endTag and returns it. More... | |
| static char * | RetrieveDataBetweenTags (const char *fileData, const int &startTagIndex, const int &endTagIndex) |
| Finds the XML data between the startTagIndex and endTagIndex and returns it. More... | |
| static wchar_t * | RetrieveDataBetweenTags (const wchar_t *fileData, const int &startTagIndex, const int &endTagIndex) |
| Finds the XML data between the startTagIndex and endTagIndex and returns it. More... | |
| static bool | RetrieveDataBetweenTags (char *destination, const char *fileData, const char *startTag, const char *endTag) |
| Finds the XML data between the startTag and endTag and returns it. More... | |
| static bool | RetrieveDataBetweenTags (wchar_t *destination, const wchar_t *fileData, const wchar_t *startTag, const wchar_t *endTag) |
| Finds the XML data between the startTag and endTag and returns it. More... | |
| static bool | RetrieveDataBetweenTags (char *destination, const char *fileData, const int &startTagIndex, const int &endTagIndex) |
| Finds the XML data between the startTagIndex and endTagIndex and returns it. More... | |
| static bool | RetrieveDataBetweenTags (wchar_t *destination, const wchar_t *fileData, const int &startTagIndex, const int &endTagIndex) |
| Finds the XML data between the startTagIndex and endTagIndex and returns it. More... | |
| static char ** | RetrieveDataChunksBetweenTags (const char *fileData, const char *startTag, const char *endTag, int &outFinalBufferSize) |
| Finds a series of XML data between startTag and endTag. More... | |
| static wchar_t ** | RetrieveDataChunksBetweenTags (const wchar_t *fileData, const wchar_t *startTag, const wchar_t *endTag, int &outFinalBufferSize) |
| Finds a series of XML data between startTag and endTag. More... | |
| static bool | RetrieveDataChunksBetweenTags (char **destination, const char *fileData, const char *startTag, const char *endTag) |
| Finds a series of XML data between startTag and endTag. More... | |
| static bool | RetrieveDataChunksBetweenTags (wchar_t **destination, const wchar_t *fileData, const wchar_t *startTag, const wchar_t *endTag) |
| Finds a series of XML data between startTag and endTag. More... | |
| static vector< char * > | RetrieveFileNames (const char *fullFilePath) |
| Returns all the names of the files inside a folder, Ignores non files like folders. More... | |
| static vector< wchar_t * > | RetrieveFileNames (const wchar_t *fullFilePath) |
| Returns all the names of the files inside a folder, Ignores non files like folders. More... | |
| static vector< char * > | RetrieveFolderNames (const char *fullFilePath) |
| Returns all the names of the sub-folder(s) in a folder. More... | |
| static vector< wchar_t * > | RetrieveFolderNames (const wchar_t *fullFilePath) |
| Returns all the names of the sub-folder(s) in a folder. More... | |
| static bool | RetrieveFileNames (vector< WIN32_FIND_DATAA > &destination, const char *fullFilePath) |
| Returns all the names of the files(s) in a folder. More... | |
| static bool | RetrieveFileNames (vector< WIN32_FIND_DATAW > &destination, const wchar_t *fullFilePath) |
| Returns all the names of the files(s) in a folder. More... | |
| static bool | RetrieveFolderNames (vector< WIN32_FIND_DATAA > &destination, const char *fullFilePath) |
| Retrieves and stores all the names of the sub-folder(s) in a folder. More... | |
| static bool | RetrieveFolderNames (vector< WIN32_FIND_DATAW > &destination, const wchar_t *fullFilePath) |
| Retrieves and stores all the names of the sub-folder(s) in a folder. More... | |
| static char * | ReverseString (const char *strToReverse) |
| Creates a new string containing all the characters from strToReverse in reverse order. More... | |
| static wchar_t * | ReverseString (const wchar_t *strToReverse) |
| Creates a new wide string containing all the characters from strToReverse in reverse order. More... | |
| static void | ReverseStringInPlace (char *strToReverse) |
| Directly modifies strToReverse to have all its characters in reverse order. More... | |
| static void | ReverseStringInPlace (wchar_t *strToReverse) |
| Directly modifies strToReverse to have all its characters in reverse order. More... | |
| static long | RoundToNearestInteger (const double &num) |
| Rounds the floating-point argument num to an integer value, using the current rounding mode. More... | |
| static long | RoundToNearestInteger (const float &num) |
| Rounds the floating-point argument num to an integer value, using the current rounding mode. More... | |
| static long | RoundToNearestInteger (const int &num) |
| Rounds the floating-point argument num to an integer value, using the current rounding mode. More... | |
| static long | RoundToNearestInteger (const long &num) |
| Rounds the floating-point argument num to an integer value, using the current rounding mode. More... | |
| static long | RoundUp (const double &num) |
| Calculates the nearest integer value to num (in integer format), rounding halfway cases away from zero, regardless of the current rounding mode. More... | |
| static long | RoundUp (const float &num) |
| Calculates the nearest integer value to num (in integer format), rounding halfway cases away from zero, regardless of the current rounding mode. More... | |
| static long | RoundUp (const int &num) |
| Calculates the nearest integer value to num (in integer format), rounding halfway cases away from zero, regardless of the current rounding mode. More... | |
| static long | RoundUp (const long &num) |
| Calculates the nearest integer value to num (in integer format), rounding halfway cases away from zero, regardless of the current rounding mode. More... | |
| static void | ShowMessageBox (const HWND &hWindow, const char *message, const char *title="Error") |
| Displays a standard message box with a message, title, and an OK button. More... | |
| static void | ShowMessageBox (const HWND &hWindow, const wchar_t *message, const wchar_t *title=L"Error") |
| Displays a standard message box with a message, title, and an OK button. More... | |
| static double | Sin (const double &numInRadians) |
| Calculates the Sin in compliance with CERT Coding Standard. More... | |
| static float | Sin (const float &numInRadians) |
| Calculates the Sin in compliance with CERT Coding Standard. More... | |
| static int | Sin (const int &numInRadians) |
| Calculates the Sin in compliance with CERT Coding Standard. More... | |
| static long | Sin (const long &numInRadians) |
| Calculates the Sin in compliance with CERT Coding Standard. More... | |
| static double | SinH (const double &numInRadians) |
| Calculates the SinH in compliance with CERT Coding Standard. More... | |
| static float | SinH (const float &numInRadians) |
| Calculates the SinH in compliance with CERT Coding Standard. More... | |
| static int | SinH (const int &numInRadians) |
| Calculates the SinH in compliance with CERT Coding Standard. More... | |
| static long | SinH (const long &numInRadians) |
| Calculates the SinH in compliance with CERT Coding Standard. More... | |
| static double | Smallest (const double &numOne, const double &numTwo) |
| Calculates the smaller of the two values and returns the smaller one. More... | |
| static float | Smallest (const float &numOne, const float &numTwo) |
| Calculates the smaller of the two values and returns the smaller one. More... | |
| static int | Smallest (const int &numOne, const int &numTwo) |
| Calculates the smaller of the two values and returns the smaller one. More... | |
| static long | Smallest (const long &numOne, const long &numTwo) |
| Calculates the smaller of the two values and returns the smaller one. More... | |
| static double | SquareRoot (const double &num) |
| Returns the Square Root of the provided number. More... | |
| static float | SquareRoot (const float &num) |
| Returns the Square Root of the provided number. More... | |
| static int | SquareRoot (const int &num) |
| Returns the Square Root of the provided number. More... | |
| static long | SquareRoot (const long &num) |
| Returns the Square Root of the provided number. More... | |
| static char * | SubString (const char *str, const int &startIndex, const int &upToButNotIncludingIndex=INT_MAX) |
| Returns a string containing the characters between startIndex and upToButNotIncludingIndex. More... | |
| static wchar_t * | SubString (const wchar_t *str, const int &startIndex, const int &upToButNotIncludingIndex=INT_MAX) |
| Returns a wide string containing the characters between startIndex and upToButNotIncludingIndex. More... | |
| static bool | SubString (char *destination, const char *str, const int &startIndex, const int &upToButNotIncludingIndex=INT_MAX) |
| Returns a string containing the characters between startIndex and upToButNotIncludingIndex. More... | |
| static bool | SubString (wchar_t *destination, const wchar_t *str, const int &startIndex, const int &upToButNotIncludingIndex=INT_MAX) |
| Returns a string containing the characters between startIndex and upToButNotIncludingIndex. More... | |
| static double | Tan (const double &numInRadians) |
| Calculates the Tangent (Tan) of numInRadians in compliance with CERT Coding Standard. More... | |
| static float | Tan (const float &numInRadians) |
| Calculates the Tangent (Tan) of numInRadians in compliance with CERT Coding Standard. More... | |
| static int | Tan (const int &numInRadians) |
| Calculates the Tangent (Tan) of numInRadians in compliance with CERT Coding Standard. More... | |
| static long | Tan (const long &numInRadians) |
| Calculates the Tangent (Tan) of numInRadians in compliance with CERT Coding Standard. More... | |
| static double | TanH (const double &numInRadians) |
| Calculates The Hyperbolic Tangent (TanH) of numInRadians in compliance with CERT Coding Standard. More... | |
| static float | TanH (const float &numInRadians) |
| Calculates The Hyperbolic Tangent (TanH) of numInRadians in compliance with CERT Coding Standard. More... | |
| static int | TanH (const int &numInRadians) |
| Calculates The Hyperbolic Tangent (TanH) of numInRadians in compliance with CERT Coding Standard. More... | |
| static long | TanH (const long &numInRadians) |
| Calculates The Hyperbolic Tangent (TanH) of numInRadians in compliance with CERT Coding Standard. More... | |
| static char ** | Tokenize (const char *strToTokenize, const char *delimiter, int &outNumTokensFound) |
| Breaks up a string and returns an array of all the strings between each delimiter. More... | |
| static wchar_t ** | Tokenize (const wchar_t *strToTokenize, const wchar_t *delimiter, int &outNumTokensFound) |
| Breaks up a wide string and returns an array of all the wide strings between each delimiter. More... | |
| static bool | Tokenize (char **destination, const char *strToTokenize, const char *delimiter, int &outNumTokensFound) |
| Breaks up a string and stores of all the strings between each delimiter into the destination buffer. More... | |
| static bool | Tokenize (wchar_t **destination, const wchar_t *strToTokenize, const wchar_t *delimiter, int &outNumTokensFound) |
| Breaks up a string and stores of all the strings between each delimiter into the destination buffer. More... | |
| static double | Truncate (const double &num) |
| Removes everything after the decimal point. More... | |
| static float | Truncate (const float &num) |
| Removes everything after the decimal point. More... | |
| static double | TwoToTheXPower (const double &power) |
| Calculates 2^power in compliance with CERT Coding Standard. More... | |
| static float | TwoToTheXPower (const float &power) |
| Calculates 2^power in compliance with CERT Coding Standard. More... | |
| static int | TwoToTheXPower (const int &power) |
| Calculates 2^power in compliance with CERT Coding Standard. More... | |
| static long | TwoToTheXPower (const long &power) |
| Calculates 2^power in compliance with CERT Coding Standard. More... | |
| static bool | Validate (const HWND &hWnd, const HRESULT &result, const char *message, const char *title="ERROR") |
| Returns false and displays an error window if result is an error (i.e. More... | |
| static bool | Validate (const HWND &hWnd, const HRESULT &result, const wchar_t *message, const wchar_t *title=L"ERROR") |
| Returns false and displays an error window if result is an error (i.e. More... | |
| static size_t | WriteTextFile (const char *filePath, const void *bufferToWrite, const size_t &bufferSize, const char *mode="w", const int &seekOffset=0, const int &seekOrigin=SEEK_SET, long *outEndCursorPos=NULL) |
| Opens a file for writing and returns the number of items/elements written to the file. More... | |
| static size_t | WriteTextFileW (const wchar_t *filePath, const void *bufferToWrite, const size_t &bufferSize, const wchar_t *mode=L"w, ccs=UTF-8", const int &seekOffset=0, const int &seekOrigin=SEEK_SET, long *outEndCursorPos=NULL) |
| Opens a file for writing and returns the number of items/elements written to the file. More... | |
| static size_t | WriteBinaryFile (const char *filePath, const void *bufferToWrite, const size_t &bufferSize, const char *mode="wb", const int &seekOffset=0, const int &seekOrigin=SEEK_SET, long *outEndCursorPos=NULL) |
| Opens a file for writing and returns the number of items/elements written to the file. More... | |
| static size_t | WriteBinaryFileW (const wchar_t *filePath, const void *bufferToWrite, const size_t &bufferSize, const wchar_t *mode=L"wb, ccs=UTF-8", const int &seekOffset=0, const int &seekOrigin=SEEK_SET, long *outEndCursorPos=NULL) |
| Opens a file for writing and returns the number of items/elements written to the file. More... | |
| static bool | ZeroOutMemory (void *bufferToZero, const size_t &sizeOfBufferInBytes) |
| Assigns 0 to every slot in the buffer (aka Zeroing out the memory) in compliance with CERT Coding Standard. More... | |
|
static |
Allocates a memory aligned buffer of specified size and zeros it out.
Output:My name is Eddie and I like spaghetti.
| size | The number of bytes to allocate. |
| alignment | The byte alignment of the buffer. |
|
static |
Allocates a memory aligned buffer of specified size.
Output:My name is Eddie and I like spaghetti.
| size | The number of bytes to allocate. |
| alignment | The byte alignment of the buffer. |
|
static |
Calculates the absolute value of a number in compliance with CERT Coding Standard.
The absolute value is the positive version of value (example: |3-4| = 1).
Output:2.300000
| num | The number to use to determine the absolute value. |
|
static |
Calculates the absolute value of a number in compliance with CERT Coding Standard.
The absolute value is the positive version of value (example: |3-4| = 1).
Output:2.300000
| num | The number to use to determine the absolute value. |
|
static |
Calculates the absolute value of a number in compliance with CERT Coding Standard.
The absolute value is the positive version of value (example: |3-4| = 1).
Output:2
| num | The number to use to determine the absolute value. |
|
static |
Calculates the absolute value of a number in compliance with CERT Coding Standard.
The absolute value is the positive version of value (example: |3-4| = 1).
Output:2
| num | The number to use to determine the absolute value. |
|
static |
Allocates a buffer and copies a provided traditional string into the buffer.
Output:An eraser of love...
| [in,out] | strToCopy | If non-null, to copy. |
|
static |
Allocates a buffer and copies a provided traditional wide string into the buffer.
Output: (output cannot be displayed on Windows console without calling the ChangeWindowsConsoleFont function first.)
| [in,out] | wideStrToCopy | If non-null, the wide string to copy. |
|
static |
Calculates the ArcCos in compliance with CERT Coding Standard.
Output:angleInRadians:0.785398 result:0.667457
| numInRadians | Number in radians to calculate ArcCos for. |
|
static |
Calculates the ArcCos in compliance with CERT Coding Standard.
Output:angleInRadians:0.785398 result:0.667457
| numInRadians | Number in radians to calculate ArcCos for. |
|
static |
Calculates the ArcCos in compliance with CERT Coding Standard.
Output:angleInRadians:0 result:1
| numInRadians | Number in radians to calculate ArcCos for. |
|
static |
Calculates the ArcCos in compliance with CERT Coding Standard.
Output:angleInRadians:0 result:1
| numInRadians | Number in radians to calculate ArcCos for. |
|
static |
Calculates the ArcCosH in compliance with CERT Coding Standard.
Output:0.962424
| numInRadians | Number in radians to calculate ArcCosH for. |
|
static |
Calculates the ArcCosH in compliance with CERT Coding Standard.
Output:0.962424
| numInRadians | Number in radians to calculate ArcCosH for. |
|
static |
Calculates the ArcCosH in compliance with CERT Coding Standard.
Output:1
| numInRadians | Number in radians to calculate ArcCosH for. |
|
static |
Calculates the ArcCosH in compliance with CERT Coding Standard.
Output:1
| numInRadians | Number in radians to calculate ArcCosH for. |
|
static |
Calculates the ArcSin in compliance with CERT Coding Standard.
Output:angleInRadians:0.785398 result:0.903339
| numInRadians | Number in radians to calculate ArcSin for. |
|
static |
Calculates the ArcSin in compliance with CERT Coding Standard.
Output:angleInRadians:0.785398 result:0.903339
| numInRadians | Number in radians to calculate ArcSin for. |
|
static |
Calculates the ArcSin in compliance with CERT Coding Standard.
This function is useless but is provided for completeness.
Output:angleInRadians:0 result:0
| numInRadians | Number in radians to calculate ArcSin for. |
|
static |
Calculates the ArcSin in compliance with CERT Coding Standard.
This function is useless but is provided for completeness.
Output:angleInRadians:0 result:0
| numInRadians | Number in radians to calculate ArcSin for. |
|
static |
Calculates the ArcSinH in compliance with CERT Coding Standard.
Output:angleInRadians:0.785398 result:0.721225
| numInRadians | Number in radians to calculate ArcSinH for. |
|
static |
Calculates the ArcSinH in compliance with CERT Coding Standard.
Output:angleInRadians:0.785398 result:0.721226
| numInRadians | Number in radians to calculate ArcSinH for. |
|
static |
Calculates the ArcSinH in compliance with CERT Coding Standard.
Output:angleInRadians:0 result:0
| numInRadians | Number in radians to calculate ArcSinH for. |
|
static |
Calculates the ArcSinH in compliance with CERT Coding Standard.
Output:angleInRadians:0 result:0
| numInRadians | Number in radians to calculate ArcSinH for. |
|
static |
Calculates the ArcTan in compliance with CERT Coding Standard.
Output:angleInRadians:0.785398 result:0.665774
| numInRadians | Number in radians to calculate ArcTan for. |
|
static |
Calculates the ArcTan in compliance with CERT Coding Standard.
Output:angleInRadians:0.785398 result:0.665774
| numInRadians | Number in radians to calculate ArcTan for. |
|
static |
Calculates the ArcTan in compliance with CERT Coding Standard.
Output:angleInRadians:0 result:0
| numInRadians | Number in radians to calculate ArcTan for. |
|
static |
Calculates the ArcTan in compliance with CERT Coding Standard.
Output:angleInRadians:0 result:0
| numInRadians | Number in radians to calculate ArcTan for. |
|
static |
Calculates the ArcTan2 in compliance with CERT Coding Standard.
To compute the value, the function takes into account the sign of both arguments in order to determine the quadrant.
Output:-1.107149
| y | Value representing the proportion of the y-coordinate. |
| x | Value representing the proportion of the x-coordinate. |
|
static |
Calculates the ArcTan2 in compliance with CERT Coding Standard.
To compute the value, the function takes into account the sign of both arguments in order to determine the quadrant.
Output:-1.107149
| y | Value representing the proportion of the y-coordinate. |
| x | Value representing the proportion of the x-coordinate. |
|
static |
Calculates the ArcTan2 in compliance with CERT Coding Standard.
To compute the value, the function takes into account the sign of both arguments in order to determine the quadrant.
Output:-1
| y | Value representing the proportion of the y-coordinate. |
| x | Value representing the proportion of the x-coordinate. |
|
static |
Calculates the ArcTan2 in compliance with CERT Coding Standard.
To compute the value, the function takes into account the sign of both arguments in order to determine the quadrant.
Output:1
| y | Value representing the proportion of the y-coordinate. |
| x | Value representing the proportion of the x-coordinate. |
|
static |
Calculates the ArcTanH in compliance with CERT Coding Standard.
Output:angleInRadians:0.785398 result:1.059306
| numInRadians | Number in radians to calculate ArcTanH for. |
|
static |
Calculates the ArcTanH in compliance with CERT Coding Standard.
Output:angleInRadians:0.785398 result:1.059306
| numInRadians | Number in radians to calculate ArcTanH for. |
|
static |
Calculates the ArcTanH in compliance with CERT Coding Standard.
Output:angleInRadians:0 result:0
| numInRadians | Number in radians to calculate ArcTanH for. |
|
static |
Calculates the ArcTanH in compliance with CERT Coding Standard.
Output:angleInRadians:0 result:0
| numInRadians | Number in radians to calculate ArcTanH for. |
|
static |
Adjusts the resolution to the correct aspect ratio for the destination.
Output:New Width:1024 New Height:576
| newWidth | The width for the image destination. | |
| newHeight | The height for the image destination. | |
| originalWidth | The original width of the source. | |
| originalHeight | The original height of the source. | |
| [out] | outAdjustedWidth | The calculated width. |
| [out] | outAdjustedHeight | The calculated height. |
|
static |
Uses fseek() to calculate the size of the file by moving the file pointer to the end.
Output:37
| [in] | theFile | A pointer to the File. |
|
static |
Gets the size of the file in compliance with CERT Coding Standard.
Output:33
| [in] | theFilePath | The full file path. |
|
static |
Counts the number of digits of num.
Output:7
| num | Number to count digits of. |
|
static |
Counts the number of digits of num.
Output:7
| num | Number to count digits of. |
|
static |
Calculates the smallest integer value greater than or equal to num.
Output:2.000000
| num | The number to convert. |
|
static |
Calculates the smallest integer value greater than or equal to num.
Output:2.000000
| num | The number to convert. |
|
static |
Calculates the smallest integer value greater than or equal to num.
Output:5
| num | The number to convert. |
|
static |
Calculates the smallest integer value greater than or equal to num.
Output:5
| num | The number to convert. |
|
static |
|
static |
Returns a single character in str at a specified index.
Output:e
| [in] | str | String to search. |
| index | The (0 based) index of what character to get. |
|
static |
Returns a single character in str at a specified index.
Output:決
| [in] | str | String to search. |
| index | The (0 based) index of what character to get. |
|
static |
Returns a value between min and max inclusive.
If the value exceeds max, then max is returned. If the value is below min, then min is returned, otherwise numToClamp is returned.
Output:Clamped Number: 1.20000010000
| numToClamp | The number to bound between min and max. |
| min | The number to return if numToClamp is lower then it. |
| max | The number to return if numToClamp is higher then it. |
|
static |
Returns a value between min and max inclusive.
If the value exceeds max, then max is returned. If the value is below min, then min is returned, otherwise numToClamp is returned.
Output:Clamped Number: 1.275000
| numToClamp | The number to bound between min and max. |
| min | The number to return if numToClamp is lower then it. |
| max | The number to return if numToClamp is higher then it. |
|
static |
Returns a value between min and max inclusive.
If the value exceeds max, then max is returned. If the value is below min, then min is returned, otherwise numToClamp is returned.
Output:Clamped Number: 68
| numToClamp | The number to bound between min and max. |
| min | The number to return if numToClamp is lower then it. |
| max | The number to return if numToClamp is higher then it. |
|
static |
Returns a value between min and max inclusive.
If the value exceeds max, then max is returned. If the value is below min, then min is returned, otherwise numToClamp is returned.
Output:Clamped Number: 2000000000
| numToClamp | The number to bound between min and max. |
| min | The number to return if numToClamp is lower then it. |
| max | The number to return if numToClamp is higher then it. |
|
static |
Calculates the Complementary Error Function integral from num to infinity in compliance with CERT Coding Standard.
Output:0.157299
| num | The starting point for the integral. |
|
static |
Calculates the Complementary Error Function integral from num to infinity in compliance with CERT Coding Standard.
Output:0.157299
| num | The starting point for the integral. |
|
static |
Calculates the Complementary Error Function integral from num to infinity in compliance with CERT Coding Standard.
Output:0
| num | The starting point for the integral. |
|
static |
Calculates the Complementary Error Function integral from num to infinity in compliance with CERT Coding Standard.
Output:0
| num | The starting point for the integral. |
|
static |
Appends a series of strings together.
Output:EverythingEverythingEverything.
| [in] | destination | The Destination Buffer to store the concatenation. |
| [in] | numStrings | Number of strings to append. |
| [in] | ... | Variable arguments providing additional strings. |
|
static |
Appends a series of strings together.
Output:EverythingEverythingEverything.
| [in] | numStrings | Number of strings to append. |
| [in] | ... | Variable arguments providing additional strings. |
|
static |
Appends an array of strings together and stores it in the provided destination buffer.
Output:EverythingEverythingEverythingEverything
| destination | The buffer to store the concatenated strings in. | |
| numStrings | Number of strings to append. | |
| [in] | stringArray | The array of strings to append. |
|
static |
Appends a vector array of strings together and stores the result in the provided destination buffer.
Output:EverythingEverythingEverythingEverything
| [in] | stringVectorArray | The vector array of strings to append. |
|
static |
Appends an array of strings together and returns the combined string.
Output:EverythingEverythingEverythingEverything
| numStrings | Number of strings to append. | |
| [in] | stringArray | The array of strings to append. |
|
static |
Appends an array of strings together and returns the combined string.
Output:БляБляБляБля
| numStrings | Number of strings to append. | |
| [in] | stringArray | The array of strings to append. |
|
static |
Appends a vector array of strings together and returns the combined string.
Output:EverythingEverythingEverythingEverything
| [in] | stringVectorArray | The vector array of strings to append. |
|
static |
Appends a vector array of wide strings together and returns the combined wide string.
Output:EverythingEverythingEverythingEverything.
| [in] | stringVectorArray | The vector array of strings to append. |
|
static |
Appends an array of strings together and stores it in the provided destination buffer.
Output:万事万事万事万事
| destination | The buffer to store the concatenated strings in. | |
| numStrings | Number of strings to append. | |
| [in] | stringArray | The array of strings to append. |
|
static |
Appends a vector array of wide strings together and returns the combined wide string.
Output:万事万事万事万事.
| [in] | stringVectorArray | The vector array of strings to append. |
|
static |
Appends a series of strings together.
Output:ทุกอย่างทุกอย่างทุกอย่าง
| [in] | numStrings | Number of strings to append. |
| [in] | ... | Variable arguments providing additional strings. |
|
static |
Appends a series of strings together.
Output:ทุกอย่างทุกอย่างทุกอย่าง
| [in] | destination | The Destination Buffer to store the concatenation. |
| [in] | numStrings | Number of strings to append. |
| [in] | ... | Variable arguments providing additional strings. |
|
static |
Searches strToSearch for the first occurrence of strToLookFor and returns true if found.
Output:Contains the word.
| [in] | strToSearch | String to search starting from left to right. |
| [in] | strToLookFor | String to look for inside of strToSearch. |
|
static |
Searches strToSearch for the first occurrence of strToLookFor and returns true if found.
Output:Contains the word.
| [in] | strToSearch | Wide String to search starting from left to right. |
| [in] | strToLookFor | Wide String to look for inside of strToSearch. |
|
static |
Searches strToSearch for the first occurrence of strToLookFor (regardless of case) and returns true if found.
Output:Contains the word.
| [in] | strToSearch | String to search starting from left to right. |
| [in] | strToLookFor | String to look for inside of strToSearch. |
|
static |
Searches strToSearch for the first occurrence of strToLookFor (regardless of case) and returns true if found.
Output:Contains the word.
| [in] | strToSearch | Wide String to search starting from left to right. |
| [in] | strToLookFor | Wide String to look for inside of strToSearch. |
|
static |
By definition, false is equal to 0 and true is equal to anything but 0.
In other words, any positive or negative number returns true, if num is 0 then false.
Output:false
| [in] | num | The number to determine if true or false. |
|
static |
By definition, false is equal to 0 and true is equal to anything but 0.
In other words, any positive or negative number returns true, if num is 0 then false.
Output:false
| [in] | num | The number to determine if true or false. |
|
static |
By definition, false is equal to 0 and true is equal to anything but 0.
In other words, any positive or negative number returns true, if num is 0 then false.
Output:false
| [in] | num | The number to determine if true or false. |
|
static |
Returns a buffer containing the result of _itoa_s() using integerToConvert.
Output:989969
| integerToConvert | The integer to pass to _itoa_s(). |
|
static |
Returns a buffer containing the result of _itow_s() using integerToConvert.
Output:989969
| integerToConvert | The integer to pass to _itow_s(). |
|
static |
By definition, false is equal to 0 and true is equal to anything but 0.
In other words, any positive or negative number returns true, if num is 0 then false.
Output:false
| [in] | num | The number to determine if true or false. |
|
static |
Returns a buffer containing the result of snprintf() using integerToConvert.
Output:2147483647
| integerToConvert | The integer to pass to snprintf(). |
|
static |
Returns a buffer containing the result of swprintf() using longToConvert.
Output:2147483647
| longToConvert | The integer to pass to swprintf(). |
|
static |
Converts a traditional string array to a vector string array.
Output:strVectorArray[0]:0 strVectorArray[1]:1 strVectorArray[2]:2 strVectorArray[3]:3
| [in] | stringArray | The string array to convert. |
|
static |
Converts a traditional wide string array to a vector wide string array.
Output:strVectorArray[0]:0 strVectorArray[1]:1 strVectorArray[2]:2 strVectorArray[3]:3
| [in] | stringArray | The wide string array to convert. |
|
static |
Converts a string containing "full width" characters to the corresponding "half width" characters.
In Unicode, there are "full width" versions of regular ASCII characters such as the number 4 (4) or the letter B (B) for example. This means we can convert full width versions and the half width versions and vice versa.
However, this will only work with the Unicode characters between Full Width Exclamation Mark (0xFF01) to Full Width Tilda (0xFF5E) which line up perfectly with the ASCII chart (33 to 126 respectively). If a character is not in the corresponding ASCII range, an exception is thrown.
Output: !! "" ## $$ %% && ' ( ) * + , - . / 0 10 21 32 43 54 65 76 87 98 : ; < = > ? @ A B C D E F G H I J K L M N O pP qQ R S T U V W X Y Z [ \ ] ^ _ ` a bb c d e f g h i j k l m n o p q r s t u v w x y z { | } ~
| [in] | fullWidthStr | The string containing the Full Width characters. |
|
static |
Converts a string containing "full width" characters to the corresponding "half width" characters.
In Unicode, there are "full width" versions of regular ASCII characters such as the number 4 (4) or the letter B (B) for example. This means we can convert full width versions and the half width versions and vice versa.
However, this will only work with the Unicode characters between Full Width Exclamation Mark (0xFF01) to Full Width Tilda (0xFF5E) which line up perfectly with the ASCII chart (33 to 126 respectively). If a character is not in the corresponding ASCII range, an exception is thrown.
Output: !! "" ## $$ %% && ' ( ) * + , - . / 0 10 21 32 43 54 65 76 87 98 : ; < = > ? @ A B C D E F G H I J K L M N O pP qQ R S T U V W X Y Z [ \ ] ^ _ ` a bb c d e f g h i j k l m n o p q r s t u v w x y z { | } ~
| [in] | fullWidthStr | The string containing the Full Width characters. |
| [out] | outHalfWidthStr | The output string containing the converted characters. |
|
static |
Converts a string containing "full width" characters to the corresponding "half width" characters.
In Unicode, there are "full width" versions of regular ASCII characters such as the number 4 (4) or the letter B (B) for example. This means we can convert full width versions and the half width versions and vice versa.
However, this will only work with the Unicode characters between Full Width Exclamation Mark (0xFF01) to Full Width Tilda (0xFF5E) which line up perfectly with the ASCII chart (33 to 126 respectively). If a character is not in the corresponding ASCII range, an exception is thrown.
Output: !! "" ## $$ %% && ' ( ) * + , - . / 0 10 21 32 43 54 65 76 87 98 : ; < = > ? @ A B C D E F G H I J K L M N O pP qQ R S T U V W X Y Z [ \ ] ^ _ ` a bb c d e f g h i j k l m n o p q r s t u v w x y z { | } ~
| [in] | fullWidthStr | The string containing the Full Width characters. |
|
static |
Converts a string containing "full width" characters to the corresponding "half width" characters.
In Unicode, there are "full width" versions of regular ASCII characters such as the number 4 (4) or the letter B (B) for example. This means we can convert full width versions and the half width versions and vice versa.
However, this will only work with the Unicode characters between Full Width Exclamation Mark (0xFF01) to Full Width Tilda (0xFF5E) which line up perfectly with the ASCII chart (33 to 126 respectively). If a character is not in the corresponding ASCII range, an exception is thrown.
Output:!! "" ## $$ %% && ' ( ) * + , - . / 0 10 21 32 43 54 65 76 87 98 : ; < = > ? @ A B C D E F G H I J K L M N O pP qQ R S T U V W X Y Z [ \ ] ^ _ ` a bb c d e f g h i j k l m n o p q r s t u v w x y z { | } ~
| [in] | fullWidthStr | The string containing the Full Width characters. |
| [out] | outHalfWidthStr | The output string containing the converted characters. |
|
static |
Converts a string containing "half width" characters to the corresponding "full width" characters.
In Unicode, there are "full width" versions of regular ASCII characters such as the number 4 (4) or the letter B (B) for example. This means we can convert full width versions and the half width versions and vice versa.
However, this will only work with the Unicode characters between Full Width Exclamation Mark (0xFF01) to Full Width Tilda (0xFF5E) which line up perfectly with the ASCII chart (33 to 126 respectively). If a character is not in the corresponding ASCII range, an exception is thrown.
Output: !#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_`abcdefghijklmnopqrstuvwxyz{|}~
| [in] | halfWidthStr | The string containing the Half Width characters. |
|
static |
Converts a string containing "half width" characters to the corresponding "full width" characters.
In Unicode, there are "full width" versions of regular ASCII characters such as the number 4 (4) or the letter B (B) for example. This means we can convert full width versions and the half width versions and vice versa.
However, this will only work with the Unicode characters between Full Width Exclamation Mark (0xFF01) to Full Width Tilda (0xFF5E) which line up perfectly with the ASCII chart (33 to 126 respectively). If a character is not in the corresponding ASCII range, an exception is thrown.
Output:!#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_`abcdefghijklmnopqrstuvwxyz{|}~
| [in] | halfWidthStr | The string containing the Half Width characters. |
| [out] | outHalfWidthStr | The output string containing the converted characters. |
|
static |
Converts a string containing "half width" characters to the corresponding "full width" characters.
In Unicode, there are "full width" versions of regular ASCII characters such as the number 4 (4) or the letter B (B) for example. This means we can convert full width versions and the half width versions and vice versa.
However, this will only work with the Unicode characters between Full Width Exclamation Mark (0xFF01) to Full Width Tilda (0xFF5E) which line up perfectly with the ASCII chart (33 to 126 respectively). If a character is not in the corresponding ASCII range, an exception is thrown.
Output: !#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_`abcdefghijklmnopqrstuvwxyz{|}~
| [in] | halfWidthStr | The string containing the Half Width characters. |
|
static |
Converts a string containing "half width" characters to the corresponding "full width" characters.
In Unicode, there are "full width" versions of regular ASCII characters such as the number 4 (4) or the letter B (B) for example. This means we can convert full width versions and the half width versions and vice versa.
However, this will only work with the Unicode characters between Full Width Exclamation Mark (0xFF01) to Full Width Tilda (0xFF5E) which line up perfectly with the ASCII chart (33 to 126 respectively). If a character is not in the corresponding ASCII range, an exception is thrown.
Output:!#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_`abcdefghijklmnopqrstuvwxyz{|}~
| [in] | halfWidthStr | The string containing the Half Width characters. |
| [out] | outHalfWidthStr | The output string containing the converted characters. |
|
static |
Converts a given string to a bool, If str is a string like "False", "FALSE", or "tRuE", then the function will return false, false, true respectively.
If str is an integer for example; "0" will return false and any other number will return true.
Output:true
| [in] | str | String to convert. |
|
static |
Converts a given wide string to a bool, If str is a wide string like "False", "FALSE", or "tRuE", then the function will return false, false, true respectively.
If str is an integer for example; "0" will return false and any other number will return true.
Output:true
| [in] | str | Wide String to convert. |
|
static |
Converts a string to its double value.
Output: Value: 0.420690
| [in] | str | String to convert to double. |
|
static |
Converts a string to its double value.
Output:Value: 0.420690
| [in] | str | String to convert to double. |
|
static |
Converts a string to its float value.
Output: Value: 0.420690
| [in] | str | String to convert to float. |
|
static |
Converts a string to its float value.
Output:Value: 0.420690
| [in] | str | String to convert to float. |
|
static |
Converts a tokenized string (a string with commas separating numbers for example) to an array of floats.
Output:floatArray[0]: 0.000000 floatArray[1]: 1.000000 floatArray[2]: 2.000000
| [in] | strToConvert | String to convert. |
| [in] | delimiter | String that separates each number. |
| [out] | outNumItems | Size of the array. |
|
static |
Converts a tokenized wide string (a string with commas separating numbers for example) to an array of floats.
Output:floatArray[0]: 0.000000 floatArray[1]: 1.000000 floatArray[2]: 2.000000
| [in] | strToConvert | String to convert. |
| [in] | delimiter | String that separates each number. |
| [out] | outNumItems | Size of the array. |
|
static |
Converts a string to its hex value.
Output:Hex Value: deadbeef Integer Value: 305419896.
| [in] | str | String to convert to hex. |
|
static |
Converts a string to its hex value.
Output:Hex Value: deadbeef Integer Value: 305419896.
| [in] | str | String to convert to hex. |
|
static |
Converts a string to its integer value.
Output:Value: 42069
| [in] | str | String to convert to integer. |
|
static |
Converts a string to its integer value.
Output:Value: 42069
| [in] | str | String to convert to integer. |
|
static |
Converts a string to its long integer value.
Output:Value: 1206942069
| [in] | str | String to convert to long. |
|
static |
Converts a string to its long integer value.
Output:Value: 1206942069
| [in] | str | String to convert to long. |
|
static |
Converts a traditional string to a traditional string that is all on one line, In other words; this function removes any occurrence of
from stringToConvert.
Output:KrustyKrabUn-Fair!
| [in] | strToConvert | The string to convert to one line. |
|
static |
Converts a traditional wide string to a traditional wide string that is all on one line, In other words; this function removes any occurrence of
from stringToConvert.
Output:夕日が私たちを照らします。
| [in] | strToConvert | The wide string to convert to one line. |
|
static |
Converts a traditional string to a traditional string that is all on one line, In other words; this function removes any occurrence of
from stringToConvert.
strToConvert must be an allocated string since this function works directly on it.
Output:KrustyKrabUn-Fair!
| [in,out] | strToConvert | The string to directly convert to one line. Throws an exception if strToConvert is NULL. |
|
static |
Converts a traditional wide string to a traditional wide string that is all on one line, In other words; this function removes any occurrence of
from stringToConvert.
strToConvert must be an allocated wide string since this function works directly on it.
Output:KrustyKrabUn-Fair!
| [in,out] | strToConvert | The wide string to directly convert to one line. Throws an exception if strToConvert is NULL. |
|
static |
Converts a traditional string to a wide string.
A wide string is a string containing Unicode characters (non English).
Output:Wide string: The ceiling is right Squidward.
| [in] | strToConvert | The string to convert to a wide string. |
|
static |
Converts a string vector array to a traditional string array.
Output:Array[0]:My Array[1]:name Array[2]:is Array[3]:Eddie Array[4]:and I like Pizza.
| [in] | destinationStrArray | The Destination Buffer to hold the converted vector array. |
| [in] | stringVectorArray | The string vector array to convert. |
| [out] | outStringArrayLength | The final length of the created string vector array. |
|
static |
Converts a string vector array to a traditional string array.
Output:Array[0]:My Array[1]:name Array[2]:is Array[3]:Eddie Array[4]:and I like Pizza.
| [in] | stringVectorArray | The string vector array to convert. |
| [out] | outStringArrayLength | The final length of the created string vector array. |
|
static |
Converts a wide string vector array to a traditional wide string array.
Output:Array[0]:あ Array[1]:い Array[2]:う Array[3]:え Array[4]:お
| [in] | stringVectorArray | The string vector array to convert. |
| [out] | outStringArrayLength | The final length of the created string vector array. |
|
static |
Converts a string vector array to a traditional string array.
Output:Array[0]:あ Array[1]:い Array[2]:う Array[3]:え Array[4]:お
| [in] | destinationStrArray | The Destination Buffer to hold the converted vector array. |
| [in] | stringVectorArray | The string vector array to convert. |
| [out] | outStringArrayLength | The final length of the created string vector array. |
|
static |
Converts a character to lowercase.
Output:a
| [in] | character | The character to convert to lowercase. |
|
static |
Converts a string to all lowercase letters.
Output:abcdef
| [in] | str | The string to determine if true or false. |
|
static |
Converts a wide character to lowercase.
Output:a
| [in] | character | The wide character to convert to lowercase. |
|
static |
Converts a wide string to all lowercase letters.
Output:abcdef
| [in] | str | The string to determine if true or false. |
|
static |
Directly modifies str to have all its letters converted to lower case.
Output:abcdef
| [in,out] | str | The string to determine if true or false. Throws an exception if str is NULL. |
|
static |
Directly modifies str to have all its letters converted to lower case.
Output:abcdef
| [in,out] | str | The wide string to determine if true or false. Throws an exception if str is NULL. |
|
static |
Converts a character to uppercase.
Output:A
| [in] | character | The character to convert to uppercase. |
|
static |
Converts a string to all uppercase letters.
Output:ABCDEF
| [in] | str | The string to determine if true or false. |
|
static |
Converts a wide character to uppercase.
Output:A
| [in] | character | The wide character to convert to uppercase. |
|
static |
Converts a string to all uppercase letters.
Output:ABCDEF
| [in] | str | The string to determine if true or false. |
|
static |
Directly modifies str to have all its letters converted to upper case.
Output:ABCDEF
| [in] | str | The string to convert to all uppercase letters. Throws an exception if str is NULL. |
|
static |
Directly modifies str to have all its letters converted to upper case.
Output:ABCDEF
| [in] | str | The string to convert to all uppercase letters. Throws an exception if str is NULL. |
|
static |
Calculates the Cosine (cos) of numInRadians in compliance with CERT Coding Standard.
Output:angleInRadians:0.785398 result:0.707107
| numInRadians | The number in radians to take the cosine of. |
|
static |
Calculates the Cosine (cos) of numInRadians in compliance with CERT Coding Standard.
Output:angleInRadians:0.785398 result:0.707107
| numInRadians | The number in radians to take the cosine of. |
|
static |
Calculates the Cosine (cos) of numInRadians in compliance with CERT Coding Standard.
Output:angleInRadians:0 result:1
| numInRadians | The number in radians to take the cosine of. |
|
static |
Calculates the Cosine (cos) of numInRadians in compliance with CERT Coding Standard.
Output:angleInRadians:0 result:1
| numInRadians | The number in radians to take the cosine of. |
|
static |
Calculates the CosH in compliance with CERT Coding Standard.
Output:angleInRadians:0.785398 result:1.324609
| numInRadians | Number in radians to calculate CosH for. |
|
static |
Calculates the CosH in compliance with CERT Coding Standard.
Output:angleInRadians:0.785398 result:1.324609
| numInRadians | Number in radians to calculate CosH for. |
|
static |
Calculates the CosH in compliance with CERT Coding Standard.
Output:angleInRadians:0 result:1
| numInRadians | Number in radians to calculate CosH for. |
|
static |
Calculates the CosH in compliance with CERT Coding Standard.
Output:angleInRadians:0 result:1
| numInRadians | Number in radians to calculate CosH for. |
|
static |
Counts the number of times charToLookFor appears in strToSearch.
Output:Number of occurrences of e: 13
| [in] | strToSearch | A string containing the data to be searched. |
| [in] | charToLookFor | A string character to look for. |
|
static |
Counts the number of times strToLookFor appears in strToSearch.
Assumes itemToLookFor is always smaller than word.
Output:Number of occurrences of as: 3
| [in] | strToSearch | A string containing the data to be searched. |
| [in] | strToLookFor | A string representing the substring to look for. |
|
static |
Counts the number of times charToLookFor appears in strToSearch.
Output:Number of occurrences of て: 4
| [in] | strToSearch | A wide string containing the data to be searched. |
| [in] | charToLookFor | A wide character to look for. |
|
static |
Counts the number of times strToLookFor appears in strToSearch.
Assumes itemToLookFor is always smaller than word.
Output:Number of occurrences of ます: 3
| [in] | strToSearch | A wide string containing the data to be searched. |
| [in] | strToLookFor | A wide string representing the substring to look for. |
|
static |
Calculates the Cube Root in compliance with CERT Coding Standard.
Output:12.000000
| num | The number to take the Cube Root of. |
|
static |
Calculates the Cube Root in compliance with CERT Coding Standard.
Output:12.000000
| num | The number to take the Cube Root of. |
|
static |
Calculates the Cube Root in compliance with CERT Coding Standard.
Output:12
| num | The number to take the Cube Root of. |
|
static |
Calculates the Cube Root in compliance with CERT Coding Standard.
Output:258
| num | The number to take the Cube Root of. |
|
static |
Converts a number from degrees to radians.
Output:1.570796
| degrees | Degrees to convert. |
|
static |
Converts a number from degrees to radians.
Output:1.570796
| degrees | Degrees to convert. |
|
static |
Converts a number from degrees to radians.
This function is somewhat useless but provided for completeness.
Output:1
| [in] | degrees | Degrees to convert. |
|
static |
Converts a number from degrees to radians.
This function is somewhat useless but provided for completeness.
Output:1
| [in] | degrees | Degrees to convert. |
|
static |
Returns true if the specified file exists, false otherwise.
Output:File exists.
| fullFilePathWithNameAndExt | File to check. |
|
static |
Returns true if the specified file exists, false otherwise.
Output:File exists.
| [in] | fullFilePathWithNameAndExt | File to check. |
|
static |
Compares two traditional strings together.
Output:Strings are NOT equal.
| [in] | strToCompOne | First string to compare. |
| [in] | strToCompTwo | Second string to compare. |
|
static |
Compares two traditional wide strings together.
Output:Strings are equal.
| [in] | strToCompOne | First wide string to compare. |
| [in] | strToCompTwo | Second wide string to compare. |
|
static |
Compares two traditional strings together but ignores upper/lower case.
Output:Strings are equal.
| [in] | strToCompOne | First string to compare. |
| [in] | strToCompTwo | Second string to compare. |
|
static |
Compares two traditional wide strings together but ignores upper/lower case.
Output:Strings are equal.
| [in] | strToCompOne | First wide string to compare. |
| [in] | strToCompTwo | Second wide string to compare. |
|
static |
Calculates the Error Function integral from 0 to num in compliance with CERT Coding Standard.
Output:0.842701
| num | End point for the integral. |
|
static |
Calculates the Error Function integral from 0 to num in compliance with CERT Coding Standard.
Output:0.842701
| num | End point for the integral. |
|
static |
Calculates the Error Function integral from 0 to num in compliance with CERT Coding Standard.
Output:0
| num | End point for the integral. |
|
static |
Calculates the Error Function integral from 0 to num in compliance with CERT Coding Standard.
Output:1
| num | End point for the integral. |
|
static |
Calculates e^x in compliance with CERT Coding Standard.
Output:148.413159
| power | Number to raise e to (i.e. power = x in e^x). |
|
static |
Calculates e^x in compliance with CERT Coding Standard.
Output:148.413159
| power | Number to raise e to (i.e. power = x in e^x). |
|
static |
Calculates e^x in compliance with CERT Coding Standard.
Output:148
| power | Number to raise e to (i.e. power = x in e^x). |
|
static |
Calculates e^x in compliance with CERT Coding Standard.
Output:148
| power | Number to raise e to (i.e. power = x in e^x). |
|
static |
Calculates (e^x) - 1 in compliance with CERT Coding Standard.
Output:147.413159
| power | Number to raise e to (i.e. power = x in e^x). |
|
static |
Calculates (e^x) - 1 in compliance with CERT Coding Standard.
Output:147.413159
| power | Number to raise e to (i.e. power = x in e^x). |
|
static |
Calculates (e^x) - 1 in compliance with CERT Coding Standard.
Output:147
| power | Number to raise e to (i.e. power = x in e^x). |
|
static |
Calculates (e^x) - 1 in compliance with CERT Coding Standard.
Output:147
| power | Number to raise e to (i.e. power = x in e^x). |
|
static |
Returns the first character in str.
Output:H
| [in] | str | String to search. |
|
static |
Returns the first character in str.
Output:H
| [in] | str | Wide String to search. |
|
static |
Calculates the largest integer value not greater than num.
Created in compliance with CERT Coding Standard.
Output:2.000000
| num | The number to use to calculate. |
|
static |
Calculates the largest integer value not greater than num.
Created in compliance with CERT Coding Standard.
Output:2.000000
| num | The number to use to calculate. |
|
static |
Calculates the largest integer value not greater than num.
This function is somewhat useless but provided for completeness. Created in compliance with CERT Coding Standard.
Output:2
| num | The number to use to calculate. |
|
static |
Calculates the largest integer value not greater than num.
This function is somewhat useless but provided for completeness. Created in compliance with CERT Coding Standard.
Output:2
| num | The number to use to calculate. |
|
static |
Calculates The Gamma Function ( (0)integral(Inf)[t^num-1 * e^-t dt] ) in compliance with CERT Coding Standard.
Output:24.000000
| num | Number to use for t^num-1 in the equation. |
|
static |
Calculates The Gamma Function ( (0)integral(Inf)[t^num-1 * e^-t dt] ) in compliance with CERT Coding Standard.
Output:24.000000
| num | Number to use for t^num-1 in the equation. |
|
static |
Calculates The Gamma Function ( (0)integral(Inf)[t^num-1 * e^-t dt] ) in compliance with CERT Coding Standard.
Output:24
| num | Number to use for t^num-1 in the equation. |
|
static |
Calculates The Gamma Function ( (0)integral(Inf)[t^num-1 * e^-t dt] ) in compliance with CERT Coding Standard.
Output:24
| num | Number to use for t^num-1 in the equation. |
|
static |
Some might think this is all unnecessary but I think it's important to seed the RandomNumberGenerator properly with a proper seed value.
Too often are games plagued with predictable outcomes all leading back to not seeding the RNG properly. Generates a "super" random number using a random seed at launch.
Output:0.497629 0.638465 1.472265 1.991590 1.803949 1.128226 1.635912 1.555864 1.969895 1.976564
| min | Lowest number to generate. |
| max | Highest number to generate. |
|
static |
Some might think this is all unnecessary but I think it's important to seed the RandomNumberGenerator properly with a proper seed value.
Too often are games plagued with predictable outcomes all leading back to not seeding the RNG properly. Generates a "super" random number using a random seed at launch.
Output:1.256275 1.039645 1.164033 0.496690 0.133898 0.010024 1.047318 0.418186 0.347023 1.533608
| min | Lowest number to generate. |
| max | Highest number to generate. |
|
static |
Some might think this is all unnecessary but I think it's important to seed the RandomNumberGenerator properly with a proper seed value.
Too often are games plagued with predictable outcomes all leading back to not seeding the RNG properly. Generates a "super" random number using a random seed at launch.
Output:35 82 10 52 10 34 56 21 37 14
| min | Lowest number to generate. |
| max | Highest number to generate. |
|
static |
Some might think this is all unnecessary but I think it's important to seed the RandomNumberGenerator properly with a proper seed value.
Too often are games plagued with predictable outcomes all leading back to not seeding the RNG properly. Generates a "super" random number using a random seed at launch.
Output:50 52 50 96 47 92 35 90 72 38
| min | Lowest number to generate. |
| max | Highest number to generate. |
|
static |
Gets the corresponding detailed description of the HRESULT.
Output:The network BIOS session limit was exceeded.
| result | The HRESULT description. |
|
static |
Gets the corresponding detailed description of the HRESULT.
Output:The network BIOS session limit was exceeded.
| result | The HRESULT description. |
|
static |
Gets the pixel dimensions of the provided image (filePath).
Output:Width:250 Height:297
| filePath | [in] The full file path of the image. |
| outWidth | [out] The width of the image. |
| outHeight | [out] The height of the image |
|
static |
Gets the pixel dimensions of the provided image (filePath).
Output:Width:250 Height:297
| filePath | [in] The full file path of the image. |
| outWidth | [out] The width of the image. |
| outHeight | [out] The height of the image |
|
static |
|
static |
Solves for c in Pythagoras theorem (a^2 + b^2 = c^2); i.e square root of (x^2 + y^2).
Created in compliance with CERT Coding Standard.
Output:5.000000
| x | Value of one of the sides of the triangle. |
| y | Value of the other side of the triangle. |
|
static |
Solves for c in Pythagoras theorem (a^2 + b^2 = c^2); i.e square root of (a^2 + b^2).
Created in compliance with CERT Coding Standard.
Output:5.000000
| x | Value of one of the sides of the triangle. |
| y | Value of the other side of the triangle. |
|
static |
Solves for c in Pythagoras theorem (a^2 + b^2 = c^2); i.e square root of (a^2 + b^2).
Created in compliance with CERT Coding Standard.
Output:5
| x | Value of one of the sides of the triangle. |
| y | Value of the other side of the triangle. |
|
static |
Solves for c in Pythagoras theorem (a^2 + b^2 = c^2); i.e square root of (a^2 + b^2).
Created in compliance with CERT Coding Standard.
Output:5
| x | Value of one of the sides of the triangle. |
| y | Value of the other side of the triangle. |
|
static |
Searches strToSearch for the first occurrence of charToLookFor and returns the (0 based) index of its location.
Output:16
| [in] | strToSearch | String to search starting from left to right. |
| charToLookFor | Character to look for inside of strToSearch. |
|
static |
Searches strToSearch for the first occurrence of strToLookFor and returns the (0 based) index of its location.
Output:16
| [in] | strToSearch | String to search starting from left to right. |
| [in] | strToLookFor | String to look for inside of strToSearch. |
|
static |
Searches strToSearch for the first occurrence of charToLookFor and returns the (0 based) index of its location.
Output:7
| [in] | strToSearch | String to search starting from left to right. |
| charToLookFor | Character to look for inside of strToSearch. |
|
static |
Searches strToSearch for the first occurrence of strToLookFor and returns the (0 based) index of its location.
Output:6
| [in] | strToSearch | Wide String to search starting from left to right. |
| [in] | strToLookFor | Wide String to look for inside of strToSearch. |
|
static |
Returns the first index of a letter in a given string.
For Example: "23584Anus" would return 5.
Output:5
| [in] | strToSearch | String to search for the first occurrence of a alphabetical character. |
|
static |
Returns the first index of a letter in a given wide string.
For Example: "23584Anus" would return 5.
Output:5
| [in] | strToSearch | Wide String to search for the first occurrence of a alphabetical character. |
|
static |
Searches strToSearch for the first occurrence of charToLookFor (regardless of case) and returns the (0 based) index of its location.
Output:8
| [in] | strToSearch | String to search starting from left to right. |
| charToLookFor | Character to look for inside of strToSearch. |
|
static |
Searches strToSearch for the first occurrence of strToLookFor (regardless of case) and returns the (0 based) index of its location.
Output:11
| [in] | strToSearch | String to search starting from left to right. |
| [in] | strToLookFor | String to look for inside of strToSearch. |
|
static |
Searches strToSearch for the first occurrence of charToLookFor (regardless of case) and returns the (0 based) index of its location.
Output:8
| [in] | strToSearch | String to search starting from left to right. |
| charToLookFor | Character to look for inside of strToSearch. |
|
static |
Searches strToSearch for the first occurrence of strToLookFor (regardless of case) and returns the (0 based) index of its location.
Output:11
| [in] | strToSearch | Wide String to search starting from left to right. |
| [in] | strToLookFor | Wide String to look for inside of strToSearch. |
|
static |
Inserts the string strToInsert into strToRevcive by "sandwiching" the two halves of strToReceive.
The first half is from 0 to startIndex-1, the last half is from startIndex to the end of strToReceive. Stores the result in the provided destination buffer.
Output:Eddie O'Hagan is a Computer Scientist.
| [in] | destination | The Destination Buffer to store the result. |
| [in] | strToReceive | The string to receive strToInsert. |
| [in] | strToInsert | The string to sandwich/insert into strToReceive. |
| startIndex | The index in strToReceive to insert at strToInsert. |
|
static |
Inserts the string strToInsert into strToRevcive by "sandwiching" the two halves of strToReceive.
The first half is from 0 to startIndex-1, the last half is from startIndex to the end of strToReceive.
Output:Eddie O'Hagan is a Computer Scientist.
| [in] | strToReceive | The string to receive strToInsert. |
| [in] | strToInsert | The string to sandwich/insert into strToReceive. |
| startIndex | The index in strToReceive to insert at strToInsert. |
|
static |
Inserts the string strToInsert into strToRevcive by "sandwiching" the two halves of strToReceive.
The first half is from 0 to startIndex-1, the last half is from startIndex to the end of strToReceive.
Output:彼らが日本でマリファナを合法化することを願っています。
| [in] | strToReceive | The wide string to receive strToInsert. |
| [in] | strToInsert | The wide string to sandwich/insert into strToReceive. |
| startIndex | The index in strToReceive to insert at strToInsert. |
|
static |
Inserts the string strToInsert into strToRevcive by "sandwiching" the two halves of strToReceive.
The first half is from 0 to startIndex-1, the last half is from startIndex to the end of strToReceive. Stores the result in the provided destination buffer.
Output: 彼らが日本でマリファナを合法化することを願っています。
| [in] | destination | The Destination Buffer to store the result. |
| [in] | strToReceive | The string to receive strToInsert. |
| [in] | strToInsert | The string to sandwich/insert into strToReceive. |
| startIndex | The index in strToReceive to insert at strToInsert. |
|
static |
Returns true if a character is a letter from either a to z or A to Z.
Letters fall into a range on the ASCII chart which makes this an simple test.
ASCII chart: http://www.asciitable.com/index/asciifull.gif.
Output:true
| [in] | character | A single character to test if it's either a-z or A-Z. |
|
static |
Returns true if a wide character is not a digit.
Output:true
| [in] | character | A single wide character to test. |
|
static |
Returns true if a character is a digit from 0-9.
Digits fall into a range on the ASCII chart which makes this an simple test.
ASCII chart: http://www.asciitable.com/index/asciifull.gif.
Output:true
| [in] | character | A single character to test if it's between 0-9. |
|
static |
Returns true if a wide character is a digit.
Output:true
| [in] | character | A single wide character to test if it's between 0-9. |
|
static |
Searches a given string to see if it is all empty.
In other words, is the string provided all whitespace.
Output:true
| [in] | str | String to search. |
|
static |
Searches a given wide string to see if it is all empty.
In other words, is the string provided all whitespace.
Output:true
| [in] | str | Wide String to search. |
|
static |
Searches for a given file path and checks if the file path is (points to) a file or not.
Output: File path is a file.
| [in] | str |
|
static |
Searches for a given file path and checks if the file path is (points to) a file or not.
Output: File path is a file.
| [in] | str |
|
static |
Searches for a given folder path and checks if the file path is (points to) a folder or not.
Output: Folder path is a folder.
| [in] | str |
|
static |
Searches for a given folder path and checks if the file path is (points to) a folder or not.
Output: Folder path is a folder.
| [in] | str |
|
static |
Returns true if all characters are a digit.
ASCII chart: http://www.asciitable.com/index/asciifull.gif.
Output:true
| [in] | str | A string to test if all characters are digits. |
|
static |
Returns true if all characters are a digit.
Output:true
| [in] | str | A wide string to test if all characters are digits. |
|
static |
Returns true if the provided path leads to a device rather than a file.
Created in compliance with CERT Coding Standard.
Output:false
| [in] | path | The file path to test. |
|
static |
Returns true if the provided path leads to a device rather than a file.
Created in compliance with CERT Coding Standard.
Output:false
| [in] | path | The file path to test. |
|
static |
Returns true if a character is whitespace.
Output:true
| [in] | character | Character to test to see if it is whitespace. |
|
static |
Returns true if a wide character is whitespace.
Output:true
| [in] | character | Character to test to see if it is whitespace. |
|
static |
Returns the larger of the two values.
Output:2.010000
| numOne | number to compare against. |
| numTwo | other number to compare against. |
|
static |
Returns the larger of the two values.
Output:2.010000
| numOne | number to compare against. |
| numTwo | other number to compare against. |
|
static |
Returns the larger of the two values.
Output:3
| numOne | number to compare against. |
| numTwo | other number to compare against. |
|
static |
Returns the larger of the two values.
Output:3
| numOne | number to compare against. |
| numTwo | other number to compare against. |
|
static |
Returns the last character in str.
Output:?
| [in] | str | String to search. |
|
static |
Returns the last character in str.
Output:。
| [in] | str | Wide String to search. |
|
static |
Searches strToSearch for the last occurrence of strToLookFor and returns the (0 based) index of its location.
Output:78
| [in] | strToSearch | String to search starting from right to left. |
| [in] | strToLookFor | String to look for inside of strToSearch. |
|
static |
Searches strToSearch for the last occurrence of strToLookFor and returns the (0 based) index of its location.
Output:88
| [in] | strToSearch | Wide String to search starting from right to left. |
| [in] | strToLookFor | Wide String to look for inside of strToSearch. |
|
static |
Calculates the logarithm (log) base 10 of num in compliance with CERT Coding Standard.
Output:1.838849
| num | Number to use to calculate its logarithm base 10. |
|
static |
Calculates the logarithm (log) base 10 of num in compliance with CERT Coding Standard.
Output:1.838849
| num | Number to use to calculate its logarithm base 10. |
|
static |
Calculates the logarithm (log) base 10 of num in compliance with CERT Coding Standard.
Output:1
| num | Number to use to calculate its logarithm base 10. |
|
static |
Calculates the logarithm (log) base 10 of num in compliance with CERT Coding Standard.
Output:1
| num | Number to use to calculate its logarithm base 10. |
|
static |
Calculates the logarithm (log) base 2 of num in compliance with CERT Coding Standard.
Output:6.108524
| num | Number to use to calculate its logarithm base 2. |
|
static |
Calculates the logarithm (log) base 2 of num in compliance with CERT Coding Standard.
Output:6.108524
| num | Number to use to calculate its logarithm base 2. |
|
static |
Calculates the logarithm (log) base 2 of num in compliance with CERT Coding Standard.
Output:6
| num | Number to use to calculate its logarithm base 2. |
|
static |
Calculates the logarithm (log) base 2 of num in compliance with CERT Coding Standard.
Output:6
| num | Number to use to calculate its logarithm base 2. |
|
static |
Computes the floating-point remainder of the division operation numerator/denominator in compliance with CERT Coding Standard.
Output:4.000000
| numerator | Number to be divided. |
| denominator | Number to divide the numerator by. |
|
static |
Computes the floating-point remainder of the division operation numerator/denominator in compliance with CERT Coding Standard.
Output:4.000000
| numerator | Number to be divided. |
| denominator | Number to divide the numerator by. |
|
static |
Computes the floating-point remainder of the division operation numerator/denominator in compliance with CERT Coding Standard.
Output:4
| numerator | Number to be divided. |
| denominator | Number to divide the numerator by. |
|
static |
Computes the floating-point remainder of the division operation numerator/denominator in compliance with CERT Coding Standard.
Output:4
| numerator | Number to be divided. |
| denominator | Number to divide the numerator by. |
|
static |
Calculates the product of multOne * multTwo, then adds add to that product (i.e.
(multOne * multTwo) + add). Created in compliance with CERT Coding Standard.
Output:42.000000
| multOne | Number to multiply. |
| multTwo | Other number to multiply. |
| add | Number to add to the product of multOne * multTwo. |
|
static |
Calculates the product of multOne * multTwo, then adds add to that product (i.e.
(multOne * multTwo) + add). Created in compliance with CERT Coding Standard.
Output:42.000000
| multOne | Number to multiply. |
| multTwo | Other number to multiply. |
| add | Number to add to the product of multOne * multTwo. |
|
static |
Calculates the product of multOne * multTwo, then adds add to that product (i.e.
(multOne * multTwo) + add). Created in compliance with CERT Coding Standard.
Output:42
| multOne | Number to multiply. |
| multTwo | Other number to multiply. |
| add | Number to add to the product of multOne * multTwo. |
|
static |
Calculates the product of multOne * multTwo, then adds add to that product (i.e.
(multOne * multTwo) + add). Created in compliance with CERT Coding Standard.
Output:42
| multOne | Number to multiply. |
| multTwo | Other number to multiply. |
| add | Number to add to the product of multOne * multTwo. |
|
static |
Calculates the Natural Logarithm (ln) of num in compliance with CERT Coding Standard.
Output:4.234107
| num | Number to use to calculate its Natural Logarithm. |
|
static |
Calculates the Natural Logarithm (ln) of num in compliance with CERT Coding Standard.
Output:4.234107
| num | Number to use to calculate its Natural Logarithm. |
|
static |
Calculates the Natural Logarithm (ln) of num in compliance with CERT Coding Standard.
Output:4
| num | Number to use to calculate its Natural Logarithm. |
|
static |
Calculates the Natural Logarithm (ln) of num in compliance with CERT Coding Standard.
Output:4
| num | Number to use to calculate its Natural Logarithm. |
|
static |
Calculates The Natural Log (ln) of The Gamma Function (ln | (0)integral(Inf)[t^num-1 * e^-t dt] |).
Created in compliance with CERT Coding Standard.
Output:3.178054
| num | Number to use for t^num-1 in the equation. |
|
static |
Calculates The Natural Log (ln) of The Gamma Function (ln | (0)integral(Inf)[t^num-1 * e^-t dt] |).
Created in compliance with CERT Coding Standard.
Output:3.178054
| num | Number to use for t^num-1 in the equation. |
|
static |
Calculates The Natural Log (ln) of The Gamma Function (ln | (0)integral(Inf)[t^num-1 * e^-t dt] |).
Created in compliance with CERT Coding Standard.
Output:3
| num | Number to use for t^num-1 in the equation. |
|
static |
Calculates The Natural Log (ln) of The Gamma Function (ln | (0)integral(Inf)[t^num-1 * e^-t dt] |).
Created in compliance with CERT Coding Standard.
Output:3
| num | Number to use for t^num-1 in the equation. |
|
static |
Retrieves the first occurrence of charToLookFor in strToSearch starting at startIndex onward.
Output:7
| strToSearch | String to search through. |
| charToLookFor | Character to look for in strToSearch. |
| startIndex | Index to start looking. |
|
static |
Retrieves the first occurrence of strToLookFor in strToSearch starting at startIndex onward.
Output:30
| strToSearch | String to search through. |
| strToLookFor | String to look for in strToSearch. |
| startIndex | Index to start looking. |
|
static |
Retrieves the first occurrence of charToLookFor in strToSearch starting at startIndex onward.
Output:7
| strToSearch | Wide String to search through. |
| charToLookFor | Wide Character to look for in strToSearch. |
| startIndex | Index to start looking. |
|
static |
Retrieves the first occurrence of strToLookFor in strToSearch starting at startIndex onward.
Output:30
| strToSearch | Wide String to search through. |
| strToLookFor | Wide String to look for in strToSearch. |
| startIndex | Index to start looking. |
|
static |
Calculates num * 2^power in compliance with CERT Coding Standard.
Output:10.666667
| num | Number to multiply 2^power by. |
| power | Number to raise 2 to. |
|
static |
Calculates num * 2^power in compliance with CERT Coding Standard.
Output:10.666667
| num | Number to multiply 2^power by. |
| power | Number to raise 2 to. |
|
static |
Calculates num * 2^power in compliance with CERT Coding Standard.
Output:96
| num | Number to multiply 2^power by. |
| power | Number to raise 2 to. |
|
static |
Calculates num * 2^power in compliance with CERT Coding Standard.
Output:96
| num | Number to multiply 2^power by. |
| power | Number to raise 2 to. |
|
static |
Calculates the difference between numOne and numTwo only if numOne > numTwo.
If numOne <= numTwo then 0 is returned. Created in compliance with CERT Coding Standard.
Output:3.600000
| numOne | Number to use for subtraction. |
| numTwo | Other number to use for subtraction. |
|
static |
Calculates the difference between numOne and numTwo only if numOne > numTwo.
If numOne <= numTwo then 0 is returned. Created in compliance with CERT Coding Standard.
Output:3.600000
| numOne | Number to use for subtraction. |
| numTwo | Other number to use for subtraction. |
|
static |
Calculates the difference between numOne and numTwo only if numOne > numTwo.
If numOne <= numTwo then 0 is returned. Created in compliance with CERT Coding Standard.
Output:4
| numOne | Number to use for subtraction. |
| numTwo | Other number to use for subtraction. |
|
static |
Calculates the difference between numOne and numTwo only if numOne > numTwo.
If numOne <= numTwo then 0 is returned. Created in compliance with CERT Coding Standard.
Output:4
| numOne | Number to use for subtraction. |
| numTwo | Other number to use for subtraction. |
|
static |
Takes the provided base and raises it to the exponent (power).
Output:32.000000
| base | Number to raise. |
| exponent | Number of times to multiply base by itself. |
|
static |
Takes the provided base and raises it to the exponent (power).
Output:32.000000
| base | Number to raise. |
| exponent | Number of times to multiply base by itself. |
|
static |
Takes the provided base and raises it to the exponent (power).
Output:32
| base | Number to raise. |
| exponent | Number of times to multiply base by itself. |
|
static |
Takes the provided base and raises it to the exponent (power).
Output:32
| base | Number to raise. |
| exponent | Number of times to multiply base by itself. |
|
static |
Converts a number from radians to degrees.
Output:89.999981
| [in] | radians | Radians to convert. |
|
static |
Converts a number from radians to degrees.
Output:89.999981
| [in] | radians | Radians to convert. |
|
static |
Converts a number from radians to degrees.
Output:57
| [in] | radians | Radians to convert. |
|
static |
Converts a number from radians to degrees.
Output:57
| [in] | radians | Radians to convert. |
|
static |
Takes the provided inValue with a range of minInRange to maxInRange, and maps the converted value between minOutRange and maxOutRange.
For example, if we want to map the inValue (which ranges from 0 to 1024) and get the equivalent value if the range was between 0.0 and 5.0. Then we could do the following (see below example):
Output:inNum=512.000000 rangedNum=2.500000
| [in] | inValue | The number to convert/map to the range of minOutRange to maxOutRange. |
| [in] | minInRange | The lowest possible value for inValue. |
| [in] | maxInRange | The highest possible value for inVale. |
| [in] | minOutRange | The lowest possible value for the converted value (return value). |
| [in] | minOutRange | The highest possible value for the converted value (return value). |
|
static |
Takes the provided inValue with a range of minInRange to maxInRange, and maps the converted value between minOutRange and maxOutRange.
For example, if we want to map the inValue (which ranges from 0 to 1024) and get the equivalent value if the range was between 0.0 and 5.0. Then we could do the following (see below example):
Output:inNum=512.000000 rangedNum=2.500000
| [in] | inValue | The number to convert/map to the range of minOutRange to maxOutRange. |
| [in] | minInRange | The lowest possible value for inValue. |
| [in] | maxInRange | The highest possible value for inVale. |
| [in] | minOutRange | The lowest possible value for the converted value (return value). |
| [in] | minOutRange | The highest possible value for the converted value (return value). |
|
static |
Takes the provided inValue with a range of minInRange to maxInRange, and maps the converted value between minOutRange and maxOutRange.
For example, if we want to map the inValue (which ranges from 0 to 1024) and get the equivalent value if the range was between 0 and 5. Then we could do the following (see below example):
Output:inNum=512 rangedNum=2
| [in] | inValue | The number to convert/map to the range of minOutRange to maxOutRange. |
| [in] | minInRange | The lowest possible value for inValue. |
| [in] | maxInRange | The highest possible value for inVale. |
| [in] | minOutRange | The lowest possible value for the converted value (return value). |
| [in] | minOutRange | The highest possible value for the converted value (return value). |
|
static |
Takes the provided inValue with a range of minInRange to maxInRange, and maps the converted value between minOutRange and maxOutRange.
For example, if we want to map the inValue (which ranges from 0 to 1024) and get the equivalent value if the range was between 0 and 5. Then we could do the following (see below example):
Output:inNum=512 rangedNum=2
| [in] | inValue | The number to convert/map to the range of minOutRange to maxOutRange. |
| [in] | minInRange | The lowest possible value for inValue. |
| [in] | maxInRange | The highest possible value for inVale. |
| [in] | minOutRange | The lowest possible value for the converted value (return value). |
| [in] | minOutRange | The highest possible value for the converted value (return value). |
|
static |
Opens a file for reading and returns a char buffer containing some or all of the data in the file.
Created in compliance with the CERT Coding Standard.
Output:Writing Rect[0] to file with values: L0 R1 T0 B0 Writing Rect[1] to file with values: L1 R2 T1 B0 Writing Rect[2] to file with values: L2 R3 T4 B1 Reading Rect[0] from the file with values: L0 R1 T0 B0 Reading Rect[1] from the file with values: L1 R2 T1 B0 Reading Rect[2] from the file with values: L2 R3 T4 B1
| [in] | filePath | The path to the file. |
| numBytesToRead | The size of the buffer (the number bytes read in). If 0; numBytesToRead = maxBufferSize. | |
| maxBufferSize | Maximum number of bytes to read. | |
| [in] | mode | The mode for fopen_s ("r" for read, "r+" for read/write, etc). |
| seekOffset | Number of bytes to offset from origin. | |
| seekOrigin | Position used as reference for the offset (SEEK_SET represents beginning of file). | |
| [out] | outEndCursorPos | The value returned by ftell() after doing the read. |
|
static |
Opens a file for reading and returns a char buffer containing some or all of the data in the file.
Created in compliance with the CERT Coding Standard.
Output:Writing Rect[0] to file with values: L0 R1 T0 B0 Writing Rect[1] to file with values: L1 R2 T1 B0 Writing Rect[2] to file with values: L2 R3 T4 B1 Reading Rect[0] from the file with values: L0 R1 T0 B0 Reading Rect[1] from the file with values: L1 R2 T1 B0 Reading Rect[2] from the file with values: L2 R3 T4 B1
| [in] | destination | The Destination Buffer to store the text of size numBytesToRead. |
| [in] | filePath | The path to the file. |
| numBytesToRead | The size of the buffer (the number bytes read in). If 0; numBytesToRead = maxBufferSize. | |
| maxBufferSize | Maximum number of bytes to read. | |
| [in] | mode | The mode for fopen_s ("r" for read, "r+" for read/write, etc). |
| seekOffset | Number of bytes to offset from origin. | |
| seekOrigin | Position used as reference for the offset (SEEK_SET represents beginning of file). | |
| [out] | outEndCursorPos | The value returned by ftell() after doing the read. |
|
static |
Opens a file for reading and returns a wide char buffer containing some or all of the data in the file.
Created in compliance with the CERT Coding Standard.
Output:長方形を書く[0] 値をファイルする: L0 R1 T0 B0 長方形を書く[1] 値をファイルする: L1 R2 T1 B0 長方形を書く[2] 値をファイルする: L2 R3 T4 B1 長方形を読む[0] 値を持つファイルから: L0 R1 T0 B0 長方形を読む[1] 値を持つファイルから: L1 R2 T1 B0 長方形を読む[2] 値を持つファイルから: L2 R3 T4 B1
| [in] | filePath | The path to the file. |
| numBytesToRead | The size of the buffer (the number bytes read in). If 0; numBytesToRead = maxBufferSize. | |
| maxBufferSize | Maximum number of bytes to read. | |
| [in] | mode | The mode for fopen_s ("r" for read, "r, ccs=UTF-8" for read unicode, "r+" for read/write, etc). |
| seekOffset | Number of bytes to offset from origin. | |
| seekOrigin | Position used as reference for the offset (SEEK_SET represents beginning of file). | |
| [out] | outEndCursorPos | The value returned by ftell() after doing the read. |
|
static |
Opens a file for reading and returns a char buffer containing some or all of the data in the file.
Created in compliance with the CERT Coding Standard.
Output:長方形を書く[0] 値をファイルする: L0 R1 T0 B0 長方形を書く[1] 値をファイルする: L1 R2 T1 B0 長方形を書く[2] 値をファイルする: L2 R3 T4 B1 長方形を読む[0] 値を持つファイルから: L0 R1 T0 B0 長方形を読む[1] 値を持つファイルから: L1 R2 T1 B0 長方形を読む[2] 値を持つファイルから: L2 R3 T4 B1
| [in] | destination | The Destination Buffer to store the text of size numBytesToRead. |
| [in] | filePath | The path to the file. |
| numBytesToRead | The size of the buffer (the number bytes read in). If 0; numBytesToRead = maxBufferSize. | |
| maxBufferSize | Maximum number of bytes to read. | |
| [in] | mode | The mode for fopen_s ("r" for read, "r+" for read/write, etc). |
| seekOffset | Number of bytes to offset from origin. | |
| seekOrigin | Position used as reference for the offset (SEEK_SET represents beginning of file). | |
| [out] | outEndCursorPos | The value returned by ftell() after doing the read. |
|
static |
Opens a file for reading and returns a char buffer containing some or all of the data in the file.
Created in compliance with the CERT Coding Standard.
Output:dicksdicksdicksdicksdicksdicksdick8=>
| [in] | destination | The Destination Buffer to store the text of size numBytesToRead. |
| [in] | filePath | The path to the file. |
| numBytesToRead | The size of the buffer (the number bytes read in). If 0; numBytesToRead = maxBufferSize. | |
| maxBufferSize | Maximum number of bytes to read. | |
| [in] | mode | The mode for fopen_s ("r" for read, "r+" for read/write, etc). |
| seekOffset | Either zero, or a value returned by ftell(). | |
| seekOrigin | Position used as reference for the offset (SEEK_SET represents beginning of file). | |
| [out] | outEndCursorPos | The value returned by ftell() after doing the read. |
|
static |
Opens a file for reading and returns a char buffer containing some or all of the data in the file.
Created in compliance with the CERT Coding Standard.
Output:dicksdicksdicksdicksdicksdicksdick8=>
| [in] | filePath | The path to the file. |
| numBytesToRead | The size of the buffer (the number bytes read in). If 0; numBytesToRead = maxBufferSize. | |
| maxBufferSize | Maximum number of bytes to read. | |
| [in] | mode | The mode for fopen_s ("r" for read, "r+" for read/write, etc). |
| seekOffset | Either zero, or a value returned by ftell(). | |
| seekOrigin | Position used as reference for the offset (SEEK_SET represents beginning of file). | |
| [out] | outEndCursorPos | The value returned by ftell() after doing the read. |
|
static |
Opens a file for reading and returns a wide char buffer containing some or all of the data in the file.
Created in compliance with the CERT Coding Standard.
Output:わたし は エドワド オ’ハゲン です。 これ は なん です か?
| [in] | filePath | The path to the file. |
| numBytesToRead | The size of the buffer (the number bytes read in). If 0; numBytesToRead = maxBufferSize. | |
| maxBufferSize | Maximum number of bytes to read. | |
| [in] | mode | The mode for fopen_s ("r" for read, "r, ccs=UTF-8" for read unicode, "r+" for read/write, etc). |
| seekOffset | Either zero, or a value returned by ftell(). | |
| seekOrigin | Position used as reference for the offset (SEEK_SET represents beginning of file). | |
| [out] | outEndCursorPos | The value returned by ftell() after doing the read. |
|
static |
Opens a file for reading and returns a char buffer containing some or all of the data in the file.
Created in compliance with the CERT Coding Standard.
Output:わたし は エドワド オ’ハゲン です。 これ は なん です か?
| [in] | destination | The Destination Buffer to store the text of size numBytesToRead. |
| [in] | filePath | The path to the file. |
| numBytesToRead | The size of the buffer (the number bytes read in). If 0; numBytesToRead = maxBufferSize. | |
| maxBufferSize | Maximum number of bytes to read. | |
| [in] | mode | The mode for fopen_s ("r" for read, "r+" for read/write, etc). |
| seekOffset | Either zero, or a value returned by ftell(). | |
| seekOrigin | Position used as reference for the offset (SEEK_SET represents beginning of file). | |
| [out] | outEndCursorPos | The value returned by ftell() after doing the read. |
|
static |
Calculates the Computes The IEEE remainder of the floating point division operation numerator/denominator.
In contrast to Mod(); the returned value is not guaranteed to have the same sign as the numerator. Created in compliance with CERT Coding Standard.
Output:1.300000
| numerator | Number to be divided. |
| denominator | Number to divide the numerator by. |
|
static |
Calculates the Computes The IEEE remainder of the floating point division operation numerator/denominator.
In contrast to Mod(); the returned value is not guaranteed to have the same sign as the numerator. Created in compliance with CERT Coding Standard.
Output:1.300000
| numerator | Number to be divided. |
| denominator | Number to divide the numerator by. |
|
static |
Calculates the Computes The IEEE remainder of the floating point division operation numerator/denominator.
In contrast to Mod(); the returned value is not guaranteed to have the same sign as the numerator. Created in compliance with CERT Coding Standard.
Output:1
| numerator | Number to be divided. |
| denominator | Number to divide the numerator by. |
|
static |
Calculates the Computes The IEEE remainder of the floating point division operation numerator/denominator.
In contrast to Mod(); the returned value is not guaranteed to have the same sign as the numerator. Created in compliance with CERT Coding Standard.
Output:1
| numerator | Number to be divided. |
| denominator | Number to divide the numerator by. |
|
static |
Calculates the floating-point remainder of the division operation numerator/denominator the same way the Remainder() function does.
Additionally, the sign and at least the three of the last bits of numerator/denominator will be stored in outQuotient, sufficient to determine the quotient of the result within a period. Created in compliance with CERT Coding Standard.
Output:1.300000 Quotient:2
| numerator | Number to be divided. |
| denominator | Number to divide the numerator by. |
| outQuotient | Sign to indicate the quotient. |
|
static |
Calculates the floating-point remainder of the division operation numerator/denominator the same way the Remainder() function does.
Additionally, the sign and at least the three of the last bits of numerator/denominator will be stored in outQuotient, sufficient to determine the Quotient of the result within a period. Created in compliance with CERT Coding Standard.
Output:1.300000 Quotient:2
| numerator | Number to be divided. |
| denominator | Number to divide the numerator by. |
| outQuotient | Sign to indicate the quotient. |
|
static |
Calculates the floating-point remainder of the division operation numerator/denominator the same way the Remainder() function does.
Additionally, the sign and at least the three of the last bits of numerator/denominator will be stored in outQuotient, sufficient to determine the quotient of the result within a period. Created in compliance with CERT Coding Standard.
Output:1 Quotient:2
| numerator | Number to be divided. |
| denominator | Number to divide the numerator by. |
| outQuotient | Sign to indicate the quotient. |
|
static |
Calculates the floating-point remainder of the division operation numerator/denominator the same way the Remainder() function does.
Additionally, the sign and at least the three of the last bits of numerator/denominator will be stored in outQuotient, sufficient to determine the quotient of the result within a period. Created in compliance with CERT Coding Standard.
Output:1 Quotient:2
| numerator | Number to be divided. |
| denominator | Number to divide the numerator by. |
| outQuotient | Sign to indicate the quotient. |
|
static |
Removes all whitespace from a given string.
A newly allocated string is returned that has all whitespace removed from it.
Output:Eddie
| [in] | str | The string to remove whitespace from. |
|
static |
Removes all whitespace from a given wide string.
A newly allocated string is returned that has all whitespace removed from it.
Output:|あaいiうえбялдかьおyo¥|
| [in] | str | The string to remove whitespace from. |
|
static |
Removes all whitespace from a given string in place.
This means That str is modified directly and as a result, no return value is needed. Assumes str is an allocated string and not a string literal.
Output:Eddie
| [in,out] | str | The string to directly modify and delete whitespace from. Throws an exception if str is NULL. |
|
static |
Removes all whitespace from a given wide string in place.
This means That str is modified directly and as a result, no return value is needed. Assumes str is an allocated string and not a string literal.
Output:|あaいiうえбялдかьおyo¥|
| [in,out] | str | The wide string to directly modify and delete whitespace from. Throws an exception if str is NULL. |
|
static |
Removes any occurrence of charToRemove from strToRemoveFrom.
Output:Hs nyone ever been s fr s decided to be there nd then look more like?
| [in,out] | strToRemoveFrom | If non-null, to remove from. |
| charToRemove | The character to remove. |
|
static |
Removes any occurrence of charToRemove from strToRemoveFrom.
Output:誰がそこにいることを決心し、それらもっと似ているように見えることはあります?
| [in,out] | strToRemoveFrom | If non-null, to remove from. |
| charToRemove | The character to remove. |
|
static |
Removes any occurrence of charToRemove from strToRemoveFrom.
strToRemoveFrom must be an allocated string since this function works directly on it.
Output:Hs nyone ever been s fr s decided to be there nd then look more like?
| [in,out] | strToRemoveFrom | If non-null, to remove from. |
| charToRemove | The character to remove. |
|
static |
Removes any occurrence of charToRemove from strToRemoveFrom.
strToRemoveFrom must be an allocated string since this function works directly on it.
Output:誰がそこにいることを決心し、それらもっと似ているように見えることはあります?
| [in,out] | strToRemoveFrom | If non-null, to remove from. |
| charToRemove | The character to remove. |
|
static |
Removes the specified string (strToLookFor) from strToSearch and returns a newly allocated buffer containing the result.
Output:Eddie has a dick.
| [in,out] | strToSearch | The string to directly parse and modify. |
| [in] | strToLookFor | The substring to look for. |
| removeOnlyFirstOccurrence | True if only the first occurrence of strToLookFor should be removed. |
|
static |
Removes the specified string (strToLookFor) from strToSearch and returns a newly allocated buffer containing the result.
Output:Eddie has a dick.
| [in,out] | strToSearch | The string to directly parse and modify. |
| [in] | strToLookFor | The substring to look for. |
| removeOnlyFirstOccurrence | True if only the first occurrence of strToLookFor should be removed. |
|
static |
Removes the specified string (strToLookFor) by directly modifying strToSearch.
Output:Eddie has a dick.
| [in,out] | strToSearch | The string to directly parse and modify. |
| [in] | strToLookFor | The substring to look for. |
| removeOnlyFirstOccurrence | True if only the first occurrence of strToLookFor should be removed. |
|
static |
Removes the specified string (strToLookFor) by directly modifying strToSearch.
Output:エディ は な ペニス を 持っています。
| [in,out] | strToSearch | The string to directly parse and modify. |
| [in] | strToLookFor | The substring to look for. |
| removeOnlyFirstOccurrence | True if only the first occurrence of strToLookFor should be removed. |
|
static |
Attempts to remove the provided strToLookFor and replace it with the provided strToReplaceWith inside of the whole strToSearch.
The resulting string is then stored in the destination buffer.
Output:|NOT COOL Eddie NOT COOL cool. NOT COOL|
| [out] | destination | The destination buffer to hold the resulting string. |
| [in] | destinationLength | The length in characters of the destination buffer. |
| [in] | strToSearch | The string to directly parse and modify. |
| [in] | strToLookFor | The substring to look for. |
| [in] | strToReplaceWith | The substring to replace with. |
| removeOnlyFirstOccurrence | True if only the first occurrence of strToLookFor should be removed. |
|
static |
Inserts strToReplaceWith in the position strToLookFor is located, then strToLookFor is removed.
A newly allocated string is then returned.
Output:|NOT COOL Eddie NOT COOL cool. NOT COOL|
| [in] | strToSearch | The string to look through. |
| [in] | strToLookFor | The substring to look for. |
| [in] | strToReplaceWith | The substring to replace with. |
| removeOnlyFirstOccurrence | True if only the first occurrence of strToLookFor should be removed. |
|
static |
Inserts strToReplaceWith in the position strToLookFor is located, then strToLookFor is removed.
A newly allocated wide string is then returned.
Output:|ありません エディ ありません かっこいいです 。ありません|
| [in] | strToSearch | The wide string to look through. |
| [in] | strToLookFor | The substring to look for. |
| [in] | strToReplaceWith | The substring to replace with. |
| removeOnlyFirstOccurrence | True if only the first occurrence of strToLookFor should be removed. |
|
static |
Attempts to remove the provided strToLookFor and replace it with the provided strToReplaceWith inside of the whole strToSearch.
The resulting string is then stored in the destination buffer.
Output:|ありません エディ ありません かっこいいです 。ありません|
| [out] | destination | The destination buffer to hold the resulting string. |
| [in] | strToSearch | The string to directly parse and modify. |
| [in] | strToLookFor | The substring to look for. |
| [in] | strToReplaceWith | The substring to replace with. |
| removeOnlyFirstOccurrence | True if only the first occurrence of strToLookFor should be removed. |
|
static |
Finds the XML data between the startTag and endTag and returns it.
Output:Data between tags:0.1, 2.3, 2.2
| [in] | destination | A buffer to contain the retrieved data. |
| [in] | fileData | A string containing the data to be parsed. |
| [in] | startTag | A string representing the tag to start from. |
| [in] | endTag | A string representing the tag to end on. |
|
static |
Finds the XML data between the startTagIndex and endTagIndex and returns it.
Output:Data between tags:0.1, 2.3, 2.2
| [in] | destination | A buffer to contain the retrieved data. |
| [in] | fileData | A string containing the data to be parsed. |
| [in] | startTagIndex | Index of where to start reading in. |
| [in] | endTagIndex | Index of where to end reading data. |
|
static |
Finds the XML data between the startTag and endTag and returns it.
Output:Data between tags:0.1, 2.3, 2.2
| [in] | fileData | A string containing the data to be parsed. |
| [in] | startTag | A string representing the tag to start from. |
| [in] | endTag | A string representing the tag to end on. |
|
static |
Finds the XML data between the startTagIndex and endTagIndex and returns it.
Output:Data between tags:0.1, 2.3, 2.2
| [in] | fileData | A string containing the data to be parsed. |
| [in] | startTagIndex | Index of where to start reading in. |
| [in] | endTagIndex | Index of where to end reading data. |
|
static |
Finds the XML data between the startTagIndex and endTagIndex and returns it.
Output:タグ間のデータ:0.1, 2.3, 2.2
| [in] | fileData | A wide string containing the data to be parsed. |
| [in] | startTagIndex | Index of where to start reading in. |
| [in] | endTagIndex | Index of where to end reading data. |
|
static |
Finds the XML data between the startTag and endTag and returns it.
Output:タグ間のデータ:0.1, 2.3, 2.2
| [in] | fileData | A string containing the data to be parsed. |
| [in] | startTag | A string representing the tag to start from. |
| [in] | endTag | A string representing the tag to end on. |
|
static |
Finds the XML data between the startTagIndex and endTagIndex and returns it.
Output:タグ間のデータ:0.1, 2.3, 2.2
| [in] | destination | A buffer to contain the retrieved data. |
| [in] | fileData | A string containing the data to be parsed. |
| [in] | startTagIndex | Index of where to start reading in. |
| [in] | endTagIndex | Index of where to end reading data. |
|
static |
Finds the XML data between the startTag and endTag and returns it.
Output:タグ間のデータ:0.1, 2.3, 2.2
| [in] | destination | A buffer to contain the retrieved data. |
| [in] | fileData | A string containing the data to be parsed. |
| [in] | startTag | A string representing the tag to start from. |
| [in] | endTag | A string representing the tag to end on. |
|
static |
Finds a series of XML data between startTag and endTag.
For example, if we were reading in an XML file that looked like this: <Models> <Model> <position>0.1, 2.3, 2.2</position> <rotation>20.0, 0.0, 0.0, 1.0</rotation> </Model> <Model> <position>3.0, 4.0, 5.0</position> <rotation>0.0, 30.0, 0.0, 1.0</rotation> </Model> </Models>
And the start and end tags were "<Model>" and "</Model>" respectively; then the function will return an array containing: Array[0]="<position>0.1, 2.3, 2.2</position> <rotation>20.0, 0.0, 0.0, 1.0</rotation>"
Array[1]="<position>3.0, 4.0, 5.0</position> <rotation>0.0, 30.0, 0.0, 1.0</rotation>"
Output:Array[0]=<position>0.1, 2.3, 2.2</position> <rotation>20.0, 0.0, 0.0, 1.0</rotation>
Array[1]=<position>3.0, 4.0, 5.0</position> <rotation>0.0, 30.0, 0.0, 1.0</rotation>
| [in] | destination | The string array to contain all of the strings. |
| [in] | fileData | A string containing the data to be parsed. |
| [in] | startTag | A string representing the tag to start from. |
| [in] | endTag | A string representing the tag to end on. |
|
static |
Finds a series of XML data between startTag and endTag.
For example, if we were reading in an XML file that looked like this: <Models> <Model> <position>0.1, 2.3, 2.2</position> <rotation>20.0, 0.0, 0.0, 1.0</rotation> </Model> <Model> <position>3.0, 4.0, 5.0</position> <rotation>0.0, 30.0, 0.0, 1.0</rotation> </Model> </Models>
And the start and end tags were "<Model>" and "</Model>" respectively; then the function will return an array containing: Array[0]="<position>0.1, 2.3, 2.2</position> <rotation>20.0, 0.0, 0.0, 1.0</rotation>"
Array[1]="<position>3.0, 4.0, 5.0</position> <rotation>0.0, 30.0, 0.0, 1.0</rotation>"
Output:Array[0]=<position>0.1, 2.3, 2.2</position> <rotation>20.0, 0.0, 0.0, 1.0</rotation>
Array[1]=<position>3.0, 4.0, 5.0</position> <rotation>0.0, 30.0, 0.0, 1.0</rotation>
| [in] | fileData | A string containing the data to be parsed. |
| [in] | startTag | A string representing the tag to start from. |
| [in] | endTag | A string representing the tag to end on. |
| [out] | outFinalBufferSize | Size of the out final buffer. |
|
static |
Finds a series of XML data between startTag and endTag.
For example, if we were reading in an XML file that looked like this: <モデルス> <モデル> <立場>0.1, 2.3, 2.2</> <回転>20.0, 0.0, 0.0, 1.0</> </> <モデル> <立場>3.0, 4.0, 5.0</> <回転>0.0, 30.0, 0.0, 1.0</> </> </>
And the start and end tags were "<Model>" and "</Model>" respectively; then the function will return an array containing: アレイ[0]: <立場>0.1, 2.3, 2.2</> <回転>20.0, 0.0, 0.0, 1.0</>
アレイ[1]: <立場>3.0, 4.0, 5.0</> <回転>0.0, 30.0, 0.0, 1.0</>
Output:アレイ[0]: <立場>0.1, 2.3, 2.2</> <回転>20.0, 0.0, 0.0, 1.0</>
アレイ[1]: <立場>3.0, 4.0, 5.0</> <回転>0.0, 30.0, 0.0, 1.0</>
| [in] | fileData | A wide string containing the data to be parsed. |
| [in] | startTag | A wide string representing the tag to start from. |
| [in] | endTag | A wide string representing the tag to end on. |
| [out] | outFinalBufferSize | Size of the out final buffer. |
|
static |
Finds a series of XML data between startTag and endTag.
For example, if we were reading in an XML file that looked like this: <モデルス> <モデル> <立場>0.1, 2.3, 2.2</> <回転>20.0, 0.0, 0.0, 1.0</> </> <モデル> <立場>3.0, 4.0, 5.0</> <回転>0.0, 30.0, 0.0, 1.0</> </> </>
And the start and end tags were "<Model>" and "</Model>" respectively; then the function will return an array containing: アレイ[0]: <立場>0.1, 2.3, 2.2</> <回転>20.0, 0.0, 0.0, 1.0</>
アレイ[1]: <立場>3.0, 4.0, 5.0</> <回転>0.0, 30.0, 0.0, 1.0</>
Output:アレイ[0]: <立場>0.1, 2.3, 2.2</> <回転>20.0, 0.0, 0.0, 1.0</>
アレイ[1]: <立場>3.0, 4.0, 5.0</> <回転>0.0, 30.0, 0.0, 1.0</>
| [in] | destination | The string array to contain all of the strings. |
| [in] | fileData | A wide string containing the data to be parsed. |
| [in] | startTag | A wide string representing the tag to start from. |
| [in] | endTag | A wide string representing the tag to end on. |
|
static |
Returns all the names of the files inside a folder, Ignores non files like folders.
Output:sky.jpg mountans.png dontread.txt
| [in] | fullFilePath | Directory to look inside. |
|
static |
Returns all the names of the files inside a folder, Ignores non files like folders.
Output:sky.jpg mountans.png tits.gtfo dontread.txt
| [in] | fullFilePath | Directory to look inside. |
|
static |
Returns all the names of the files(s) in a folder.
Output:sky.jpg mountans.png tits.gtfo dontread.txt
| [in] | destination | A vector array to contain all the files found. |
| [in] | fullFilePath | Directory to look inside. |
|
static |
Returns all the names of the files(s) in a folder.
Output:さけ.bmp りんご.bmp バナナ.bmp
| [in] | destination | A vector array to contain all the files found. |
| [in] | fullFilePath | Directory to look inside. |
|
static |
Returns all the names of the sub-folder(s) in a folder.
Output:180 panoramics 360 panoramics photospheres
| [in] | fullFilePath | Directory to look inside. |
|
static |
Returns all the names of the sub-folder(s) in a folder.
Output:お尻 りんご オレンジ
| [in] | fullFilePath | Directory to look inside. |
|
static |
Retrieves and stores all the names of the sub-folder(s) in a folder.
Output:180 panoramics 360 panoramics photospheres
| [in] | destination | A vector array to store all the sub-folder names in the folder. |
| [in] | fullFilePath | Directory to look inside. |
|
static |
Retrieves and stores all the names of the sub-folder(s) in a folder.
Output:お尻 りんご オレンジ
| [in] | destination | A vector array to store all the sub-folder names in the folder. |
| [in] | fullFilePath | Directory to look inside. |
|
static |
Creates a new string containing all the characters from strToReverse in reverse order.
For example: "ABCDEF" will return "FEDCBA".
Output:FEDCBA
| [in] | strToReverse | A string to reverse. |
|
static |
Creates a new wide string containing all the characters from strToReverse in reverse order.
For example: "ABCDEF" will return "FEDCBA".
Output:おえういあ
| [in] | strToReverse | A wide string to reverse. |
|
static |
Directly modifies strToReverse to have all its characters in reverse order.
For example: "ABCDEF" will return "FEDCBA".
Output:FEDCBA
| [in,out] | strToReverse | A preallocated string to reverse. Throws an exception of strToReverse is NULL. |
|
static |
Directly modifies strToReverse to have all its characters in reverse order.
For example: "ABCDEF" will return "FEDCBA".
Output:おえういあ
| [in,out] | strToReverse | A preallocated string to reverse. Throws an exception of strToReverse is NULL. |
|
static |
Rounds the floating-point argument num to an integer value, using the current rounding mode.
Created in compliance with CERT Coding Standard.
Output:4
| num | Number to round. |
|
static |
Rounds the floating-point argument num to an integer value, using the current rounding mode.
Created in compliance with CERT Coding Standard.
Output:4
| num | Number to round. |
|
static |
Rounds the floating-point argument num to an integer value, using the current rounding mode.
This function is somewhat useless but provided for completeness. Created in compliance with CERT Coding Standard.
Output:3
| num | Number to round. |
|
static |
Rounds the floating-point argument num to an integer value, using the current rounding mode.
This function is somewhat useless but provided for completeness. Created in compliance with CERT Coding Standard.
Output:3
| num | Number to round. |
|
static |
Calculates the nearest integer value to num (in integer format), rounding halfway cases away from zero, regardless of the current rounding mode.
Created in compliance with CERT Coding Standard.
Output:4
| num | Number to round. |
|
static |
Calculates the nearest integer value to num (in integer format), rounding halfway cases away from zero, regardless of the current rounding mode.
Created in compliance with CERT Coding Standard.
Output:4
| num | Number to round. |
|
static |
Calculates the nearest integer value to num (in integer format), rounding halfway cases away from zero, regardless of the current rounding mode.
This function is somewhat useless but provided for completeness. Created in compliance with CERT Coding Standard.
Output:3
| num | Number to round. |
|
static |
Calculates the nearest integer value to num (in integer format), rounding halfway cases away from zero, regardless of the current rounding mode.
This function is somewhat useless but provided for completeness. Created in compliance with CERT Coding Standard.
Output:3
| num | Number to round. |
|
static |
Displays a standard message box with a message, title, and an OK button.
Output:(Shows a message box with the message "Hello Eddie!" and the title of "Message Box Name").
| hWindow | The parent window to the message box (Can be NULL). |
| message | The message to display in the message box (Can be NULL). |
| title | The title to use in the message box window (Can be NULL). |
|
static |
Displays a standard message box with a message, title, and an OK button.
Output:(Shows a message box with the message "こにちは エヂイ!" and the title of "メッセージボックス名").
| hWindow | The parent window to the message box (Can be NULL). |
| message | The message to display in the message box (Can be NULL). |
| title | The title to use in the message box window (Can be NULL). |
|
static |
Calculates the Sin in compliance with CERT Coding Standard.
Output:angleInRadians:0.785398 result:0.707107
| numInRadians | Number in radians to calculate Sin for. |
|
static |
Calculates the Sin in compliance with CERT Coding Standard.
Output:angleInRadians:0.785398 result:0.707107
| numInRadians | Number in radians to calculate Sin for. |
|
static |
Calculates the Sin in compliance with CERT Coding Standard.
Output:angleInRadians:0 result:0
| numInRadians | Number in radians to calculate Sin for. |
|
static |
Calculates the Sin in compliance with CERT Coding Standard.
Output:angleInRadians:0 result:0
| numInRadians | Number in radians to calculate Sin for. |
|
static |
Calculates the SinH in compliance with CERT Coding Standard.
Output:angleInRadians:0.785398 result:0.868671
| numInRadians | Number in radians to calculate SinH for. |
|
static |
Calculates the SinH in compliance with CERT Coding Standard.
Output:angleInRadians:0.785398 result:0.868671
| numInRadians | Number in radians to calculate SinH for. |
|
static |
Calculates the SinH in compliance with CERT Coding Standard.
Output:angleInRadians:0 result:0
| numInRadians | Number in radians to calculate SinH for. |
|
static |
Calculates the SinH in compliance with CERT Coding Standard.
Output:angleInRadians:0 result:0
| numInRadians | Number in radians to calculate SinH for. |
|
static |
Calculates the smaller of the two values and returns the smaller one.
Output:5.002000
| numOne | Number to compare. |
| numTwo | Other number to compare. |
|
static |
Calculates the smaller of the two values and returns the smaller one.
Output:5.002000
| numOne | Number to compare. |
| numTwo | Other number to compare. |
|
static |
Calculates the smaller of the two values and returns the smaller one.
Output:5
| numOne | Number to compare. |
| numTwo | Other number to compare. |
|
static |
Calculates the smaller of the two values and returns the smaller one.
Output:5
| numOne | Number to compare. |
| numTwo | Other number to compare. |
|
static |
Returns the Square Root of the provided number.
If the number provided is negative, -1 is returned.
Output:12.000000000
| [in] | num | The number to take the Square Root of. |
|
static |
Returns the Square Root of the provided number.
If the number provided is negative, -1 is returned.
Output:12.000000000
| [in] | num | The number to take the Square Root of. |
|
static |
Returns the Square Root of the provided number.
If the number provided is negative, -1 is returned.
Output:12
| [in] | num | The number to take the Square Root of. |
|
static |
Returns the Square Root of the provided number.
If the number provided is negative, -1 is returned.
Output:12
| [in] | num | The number to take the Square Root of. |
|
static |
Returns a string containing the characters between startIndex and upToButNotIncludingIndex.
Instead of dynamically allocating a buffer, This function uses a provided destination buffer to store the substring. If upToButNotIncludingIndex is not provided, then the string stored is everything from startIndex to the end of the string.
Here's an example: str = "Happiness" startIndex = 3 upToButNotIncludingIndex = 8 then the output would be "pines".
Output:pines
| [in] | destination | The Destination Buffer to store the retrieved sub-string. |
| [in] | str | The string to parse. |
| [in] | startIndex | The (0 based) index of where to start parsing str. |
| [in] | upToButNotIncludingIndex | The (0 based) index of where to stop. |
|
static |
Returns a string containing the characters between startIndex and upToButNotIncludingIndex.
Unlike strstr(), this function creates a new string and returns it. If upToButNotIncludingIndex is not provided, then the string returned is everything from startIndex to the end of the string.
Here's an example: str = "Happiness" startIndex = 3 upToButNotIncludingIndex = 8 then the output would be "pines".
Output:pines
| [in] | str | The string to parse. |
| [in] | startIndex | The (0 based) index of where to start parsing str. |
| [in] | upToButNotIncludingIndex | The (0 based) index of where to stop. |
|
static |
Returns a wide string containing the characters between startIndex and upToButNotIncludingIndex.
Unlike strstr(), this function creates a new string and returns it. If upToButNotIncludingIndex is not provided, then the string returned is everything from startIndex to the end of the string.
Here's an example: str = "私は日本語を話せません。" startIndex = 3 upToButNotIncludingIndex = 8 then the output would be "本語を話せ".
Output:本語を話せ
| [in] | str | The wide string to parse. |
| [in] | startIndex | The (0 based) index of where to start parsing str. |
| [in] | upToButNotIncludingIndex | The (0 based) index of where to stop. |
|
static |
Returns a string containing the characters between startIndex and upToButNotIncludingIndex.
Instead of dynamically allocating a buffer, This function uses a provided destination buffer to store the substring. If upToButNotIncludingIndex is not provided, then the string stored is everything from startIndex to the end of the string.
Here's an example: str = "私は日本語を話せません。" startIndex = 3 upToButNotIncludingIndex = 8 then the output would be "本語を話せ".
Output:本語を話せ
| [in] | destination | The Destination Buffer to store the retrieved sub-string. |
| [in] | str | The string to parse. |
| [in] | startIndex | The (0 based) index of where to start parsing str. |
| [in] | upToButNotIncludingIndex | The (0 based) index of where to stop. |
|
static |
Calculates the Tangent (Tan) of numInRadians in compliance with CERT Coding Standard.
Output:angleInRadians:0.785398 result:1.000000
| numInRadians | Number to use to calculate its tangent. |
|
static |
Calculates the Tangent (Tan) of numInRadians in compliance with CERT Coding Standard.
Output:angleInRadians:0.785398 result:1.000000
| numInRadians | Number to use to calculate its tangent. |
|
static |
Calculates the Tangent (Tan) of numInRadians in compliance with CERT Coding Standard.
Output:angleInRadians:0 result:0
| numInRadians | Number to use to calculate its tangent. |
|
static |
Calculates the Tangent (Tan) of numInRadians in compliance with CERT Coding Standard.
Output:angleInRadians:0 result:0
| numInRadians | Number to use to calculate its tangent. |
|
static |
Calculates The Hyperbolic Tangent (TanH) of numInRadians in compliance with CERT Coding Standard.
Output:angleInRadians:0.785398 result:0.655794
| numInRadians | Number to use to calculate its hyperbolic tangent. |
|
static |
Calculates The Hyperbolic Tangent (TanH) of numInRadians in compliance with CERT Coding Standard.
Output:angleInRadians:0.785398 result:0.655794
| numInRadians | Number to use to calculate its hyperbolic tangent. |
|
static |
Calculates The Hyperbolic Tangent (TanH) of numInRadians in compliance with CERT Coding Standard.
Output:angleInRadians:0 result:0
| numInRadians | Number to use to calculate its hyperbolic tangent. |
|
static |
Calculates The Hyperbolic Tangent (TanH) of numInRadians in compliance with CERT Coding Standard.
Output:angleInRadians:0 result:0
| numInRadians | Number to use to calculate its hyperbolic tangent. |
|
static |
Breaks up a string and stores of all the strings between each delimiter into the destination buffer.
For example: "Shit,Piss, Cunt,Cock-sucker,Mother_Fucker,and tits" And the delimiter was "," then the function would return: Array[0] = "Shit" Array[1] = "Piss" Array[2] = " Cunt" Array[3] = "Cock-sucker" Array[4] = "Mother_Fucker" Array[5] = "and tits"
Output:Array[0]:Shit Array[1]: Piss Array[2]: Cunt Array[3]: Cock - sucker Array[4]: Mother_Fucker Array[5]: and tits
| [in,out] | destination | An array to store the strings broken up from strToTokenize. |
| [in,out] | strToTokenize | A string to break up into an array. |
| [in,out] | delimiter | A string/character used to separate each string in strToTokenize. |
| [in,out] | outNumTokensFound | Number of strings added to the final array. |
|
static |
Breaks up a string and returns an array of all the strings between each delimiter.
For example: "Shit,Piss, Cunt,Cock-sucker,Mother_Fucker,and tits" And the delimiter was "," then the function would return: Array[0] = "Shit" Array[1] = "Piss" Array[2] = " Cunt" Array[3] = "Cock-sucker" Array[4] = "Mother_Fucker" Array[5] = "and tits"
Output:Array[0]:Shit Array[1]: Piss Array[2]: Cunt Array[3]: Cock - sucker Array[4]: Mother_Fucker Array[5]: and tits
| [in,out] | strToTokenize | A string to break up into an array. |
| [in,out] | delimiter | A string/character used to separate each string in strToTokenize. |
| [in,out] | outNumTokensFound | Number of strings added to the final array. |
|
static |
Breaks up a wide string and returns an array of all the wide strings between each delimiter.
For example: "たわごと、小便、おまんこ、コック-吸盤、マザー_ファッカー、そしておっぱい" And the delimiter was "、" then the function would return: アレイ[0]:たわごと アレイ[1]:小便 アレイ[2]:おまんこ アレイ[3]:コック-吸盤 アレイ[4]:マザー_ファッカー アレイ[5]:そしておっぱい
Output:アレイ[0]:たわごと アレイ[1]:小便 アレイ[2]:おまんこ アレイ[3]:コック-吸盤 アレイ[4]:マザー_ファッカー アレイ[5]:そしておっぱい
| [in,out] | strToTokenize | A wide string to break up into an array. |
| [in,out] | delimiter | A wide string/character used to separate each wide string in strToTokenize. |
| [in,out] | outNumTokensFound | Number of wide strings added to the final array. |
|
static |
Breaks up a string and stores of all the strings between each delimiter into the destination buffer.
For example: "たわごと、小便、おまんこ、コック-吸盤、マザー_ファッカー、そしておっぱい" And the delimiter was "、" then the function would return: アレイ[0]:たわごと アレイ[1]:小便 アレイ[2]:おまんこ アレイ[3]:コック-吸盤 アレイ[4]:マザー_ファッカー アレイ[5]:そしておっぱい
Output:アレイ[0]:たわごと アレイ[1]:小便 アレイ[2]:おまんこ アレイ[3]:コック-吸盤 アレイ[4]:マザー_ファッカー アレイ[5]:そしておっぱい
| [in,out] | destination | An array to store the strings broken up from strToTokenize. |
| [in,out] | strToTokenize | A string to break up into an array. |
| [in,out] | delimiter | A string/character used to separate each string in strToTokenize. |
| [in,out] | outNumTokensFound | Number of strings added to the final array. |
|
static |
Removes everything after the decimal point.
Created in compliance with CERT Coding Standard.
Output:2.000000
| num | Number to truncate. |
|
static |
Removes everything after the decimal point.
Created in compliance with CERT Coding Standard.
Output:2.000000
| num | Number to truncate. |
|
static |
Calculates 2^power in compliance with CERT Coding Standard.
Output:64.000000
| power | Number to raise 2 to. |
|
static |
Calculates 2^power in compliance with CERT Coding Standard.
Output:64.000000
| power | Number to raise 2 to. |
|
static |
Calculates 2^power in compliance with CERT Coding Standard.
Output:16
| power | Number to raise 2 to. |
|
static |
Calculates 2^power in compliance with CERT Coding Standard.
Output:16
| power | Number to raise 2 to. |
|
static |
Returns false and displays an error window if result is an error (i.e.
FAILED). Otherwise returns true.
Output:(Message box appears and displays the provided ERROR message.)
| hWnd | Handle of the window. | |
| result | The result to validate. | |
| [in] | message | The message to display if failure. |
| [in] | title | The title for the display window if failure. |
|
static |
Returns false and displays an error window if result is an error (i.e.
FAILED). Otherwise returns true.
Output:(Message box appears and displays the provided error message.)
| hWnd | Handle of the window. | |
| result | The result to validate. | |
| [in] | message | The message to display if failure. |
| [in] | title | The title for the display window if failure. |
|
static |
Opens a file for writing and returns the number of items/elements written to the file.
Created in compliance with the CERT Coding Standard.
Output:Writing Rect[0] to file with values: L0 R1 T0 B0 Writing Rect[1] to file with values: L1 R2 T1 B0 Writing Rect[2] to file with values: L2 R3 T4 B1 Reading Rect[0] from the file with values: L0 R1 T0 B0 Reading Rect[1] from the file with values: L1 R2 T1 B0 Reading Rect[2] from the file with values: L2 R3 T4 B1
| [in] | filePath | The path to the file. |
| bufferToWrite | The data to be written. | |
| bufferSize | Maximum number of bytes to read. | |
| [in] | mode | The mode for fopen_s ("w" for write, "w+" for read/write, etc). |
| seekOffset | Number of bytes to offset from origin. | |
| seekOrigin | Position used as reference for the offset (SEEK_SET represents beginning of file). | |
| [out] | outEndCursorPos | The value returned by ftell() after doing the read. |
|
static |
Opens a file for writing and returns the number of items/elements written to the file.
Created in compliance with the CERT Coding Standard.
Output:長方形を書く[0] 値をファイルする: L0 R1 T0 B0 長方形を書く[1] 値をファイルする: L1 R2 T1 B0 長方形を書く[2] 値をファイルする: L2 R3 T4 B1 長方形を読む[0] 値を持つファイルから: L0 R1 T0 B0 長方形を読む[1] 値を持つファイルから: L1 R2 T1 B0 長方形を読む[2] 値を持つファイルから: L2 R3 T4 B1
| [in] | filePath | The path to the file. |
| bufferToWrite | The data to be written. | |
| bufferSize | Maximum number of bytes to read. | |
| [in] | mode | The mode for fopen_s ("w" for write, "w+" for read/write, etc). |
| seekOffset | Number of bytes to offset from origin. | |
| seekOrigin | Position used as reference for the offset (SEEK_SET represents beginning of file). | |
| [out] | outEndCursorPos | The value returned by ftell() after doing the read. |
|
static |
Opens a file for writing and returns the number of items/elements written to the file.
Created in compliance with the CERT Coding Standard.
Output:dicksdicksdicksdicksdicksdicksdick8=>In a row?!
| [in] | filePath | The path to the file. |
| [in] | bufferToWrite | The data to be written. |
| bufferSize | Size of the buffer in bytes. | |
| [in] | mode | The mode for fopen_s ("w" for write, "w+" for read/write, etc). |
| seekOffset | Either zero, or a value returned by ftell(). | |
| seekOrigin | Position used as reference for the offset (SEEK_SET represents beginning of file). | |
| [out] | outEndCursorPos | The value returned by ftell() after doing the read. |
|
static |
Opens a file for writing and returns the number of items/elements written to the file.
Created in compliance with the CERT Coding Standard.
Output:(A message box showing: わたし わ エドワド オ’ハゲン です。 これ は なん です か?いい ですよ。)
| [in] | filePath | The path to the file. |
| [in] | bufferToWrite | The data to be written. |
| bufferSize | Size of the buffer in bytes. | |
| [in] | mode | The mode for fopen_s ("w" for write, "w+" for read/write, etc). |
| seekOffset | Either zero, or a value returned by ftell(). | |
| seekOrigin | Position used as reference for the offset (SEEK_SET represents beginning of file). | |
| [out] | outEndCursorPos | The value returned by ftell() after doing the read. |
|
static |
Assigns 0 to every slot in the buffer (aka Zeroing out the memory) in compliance with CERT Coding Standard.
Output: Before Zero Out: My name is Eddie and I like spaghetti. After Zero Out:
| bufferToZero | The buffer to zero out. |
| sizeOfBufferInBytes | The size of the buffer in bytes. |