MeVisLab Toolbox Reference
|
#include "mlUtilities.h"
#include "mlConfig.h"
#include "mlTypeDefs.h"
#include <ThirdPartyWarningsDisable.h>
#include <cstdlib>
#include <cstdio>
#include <ThirdPartyWarningsRestore.h>
Go to the source code of this file.
#define | strcasecmp(a, b) _stricmp((a),(b)) |
Resolving platform incompatibilities of string functions. More... | |
#define | strncasecmp(a, b, c) _strnicmp((a),(b),(c)) |
Implement strncasecmp by providing the internal WIN32 API-version. More... | |
#define | strtold(a, b) strtod((a),(b)) |
Implement strtold on WIN32 platforms by strtod since long double and double are identical. More... | |
#define | MLsnprintf _MLsnprintf |
#define | MLsscanf _MLsscanf |
ML_UTILS_EXPORT int | _MLsnprintf (char *s, size_t maxChars, const char *format,...) |
Deprecated compatibility helpers to handle the missing support for standard format specifiers for long long types under older versions of Visual C++. More... | |
ML_UTILS_EXPORT int | _MLsscanf (const char *s, const char *format,...) |
ML_UTILS_EXPORT MLint64 | MLint64Scan (const char *source, char **endPtr) |
Reads an MLint64 from a character string source and returns scanned value as MLint64. More... | |
ML_UTILS_EXPORT MLuint64 | MLuint64Scan (const char *source, char **endPtr) |
Reads an MLuint64 from a character string source and returns scanned value as MLuint64. More... | |
Global non constant constants for "always true" or "always false" expressions. | |
ML_UTILS_EXPORT int | MLAlwaysTrue |
Variable which is always true (=1), but non constant to make it impossible for compilers to detect that it is constant. More... | |
ML_UTILS_EXPORT int | MLAlwaysFalse |
Variable which is always false (=0), but non constant to make it impossible for compilers to detect that it is constant. More... | |
ML_UTILS_EXPORT int | MLAlwaysExecuted () |
A do-nothing function call which cannot be optimized away to avoid that function bodies etc. More... | |
#define MLsnprintf _MLsnprintf |
Definition at line 115 of file mlUtilsSystemC.h.
#define MLsscanf _MLsscanf |
Definition at line 116 of file mlUtilsSystemC.h.
#define strcasecmp | ( | a, | |
b | |||
) | _stricmp((a),(b)) |
Resolving platform incompatibilities of string functions.
Implement strcasecmp by providing the internal WIN32 API-version.
Definition at line 76 of file mlUtilsSystemC.h.
#define strncasecmp | ( | a, | |
b, | |||
c | |||
) | _strnicmp((a),(b),(c)) |
Implement strncasecmp by providing the internal WIN32 API-version.
Definition at line 79 of file mlUtilsSystemC.h.
#define strtold | ( | a, | |
b | |||
) | strtod((a),(b)) |
Implement strtold on WIN32 platforms by strtod since long double and double are identical.
Definition at line 83 of file mlUtilsSystemC.h.
ML_UTILS_EXPORT int _MLsnprintf | ( | char * | s, |
size_t | maxChars, | ||
const char * | format, | ||
... | |||
) |
Deprecated compatibility helpers to handle the missing support for standard format specifiers for long long types under older versions of Visual C++.
ML_UTILS_EXPORT int _MLsscanf | ( | const char * | s, |
const char * | format, | ||
... | |||
) |
ML_UTILS_EXPORT int MLAlwaysExecuted | ( | ) |
A do-nothing function call which cannot be optimized away to avoid that function bodies etc.
are optimized away, that they are considered as non constant and that corresponding warnings are created. It is needed for compile technical solutions to avoid warnings. Returns always 1. See also MLAlwaysTrue MLAlwaysFalse.
ML_UTILS_EXPORT MLint64 MLint64Scan | ( | const char * | source, |
char ** | endPtr | ||
) |
Reads an MLint64 from a character string source
and returns scanned value as MLint64.
source | is the string to be parsed. Leading white spaces are ignored. |
endPtr | is the pointer to the first character after scanned string or to source if scan failed. |
source
. This function is necessary since Microsoft forgot to implement _strtoi64 although it is well documented in the MSDN. ML_UTILS_EXPORT MLuint64 MLuint64Scan | ( | const char * | source, |
char ** | endPtr | ||
) |
Reads an MLuint64 from a character string source
and returns scanned value as MLuint64.
source | is the string to be parsed. Leading white spaces are ignored. |
endPtr | is the pointer to the first character after scanned string or to source if scan failed. |
source
. This function is necessary since Microsoft forgot to implement _strtoui64 although it's well documented in the MSDN.
|
extern |
Variable which is always false (=0), but non constant to make it impossible for compilers to detect that it is constant.
It is needed for compile technical solutions in debug/release constructs which require always false expressions, e.g., in ML_TRY / ML_CATCH expressions. It must never be set! See also MLAlwaysTrue.
|
extern |
Variable which is always true (=1), but non constant to make it impossible for compilers to detect that it is constant.
It is needed for compile technical solutions in debug/release constructs which require always true expressions, e.g., in ML_TRY / ML_CATCH expressions. It must never be set! See also MLAlwaysFalse.