MapLink Pro 11.1.1.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
Loading...
Searching...
No Matches
TSLPlatformHelper Class Reference

Detailed Description

A utility class which provides cross platform implementations of useful methods.

Static Public Member Functions

static int64_t atoi64 (const char *number)
 
static bool isnan (double dsrc)
 
static const char * strcasestr (const char *str1, const char *str2)
 
static int stricmp (const char *str1, const char *str2)
 
static int strnicmp (const char *str1, const char *str2, size_t n)
 

Member Function Documentation

◆ atoi64()

static int64_t TSLPlatformHelper::atoi64 ( const char * number)
static

This method converts a string to a 64bit integer.

Calls either the _atoi64 on windows or C99 atoll. See system manual pages for specific limitations.

The current locale is used.

Parameters
numberstring to be converted
Returns
the converted number.

◆ isnan()

static bool TSLPlatformHelper::isnan ( double dsrc)
static

This method checks to see if a double is a NAN.

Returns true if the double is not a number, false otherwise.

Argument:

dsrc : a double-precision floating point value.

◆ strcasestr()

static const char * TSLPlatformHelper::strcasestr ( const char * str1,
const char * str2 )
static

Searches str1 for occurrences of str2, ignoring case sensitivity.

Returns a pointer to the first occurrence of str2, or null if not present.

Parameters
str1The string to search
str2The string to search for.

◆ stricmp()

static int TSLPlatformHelper::stricmp ( const char * str1,
const char * str2 )
static

Case-insensitive string comparison.

The current system locale is used.

Parameters
str1Null terminated string.
str2Null terminated string.
Returns
integer value corresponding to:
  • < 0 str1 is less that str2
  • 0 str1 is identical to str2
  • > 0 str1 is greater than str2

◆ strnicmp()

static int TSLPlatformHelper::strnicmp ( const char * str1,
const char * str2,
size_t n )
static

Case-insensitive string comparison of first n characters.

The current system locale is used.

Parameters
str1Null terminated string.
str2Null terminated string.
nthe number of characters to compare.
Returns
integer value corresponding to:
  • < 0 str1 substring is less that str2 substring
  • 0 str1 substring is identical to str2 substring
  • > 0 str1 substring is greater than str2 substring