[ Home ]

wtstringnumeric.c File Reference

String conversions done in a portable manner. More...

#include <math.h>
#include "wtstring.h"
#include "../common/common_utils.h"

Include dependency graph for wtstringnumeric.c:


Functions

PUBLIC W32 wt_strhash (const char *string, W32 length, W32 mask)
 Generates a hash value from string.
PUBLIC SW32 StringToInteger (const char *string, W32 *error)
 Convert string to integer.
PUBLIC double StringToFloat (const char *string, W32 *error)
 Convert string to float.

Detailed Description

String conversions done in a portable manner.

Author:
Michael Liebscher
Date:
2004-2005

Function Documentation

PUBLIC double StringToFloat ( const char *  string,
W32 *  error 
)

Convert string to float.

Parameters:
[in] string The String to be converted to a float.
[out] error Error code. See header.
Returns:
A float value.

Here is the call graph for this function:

PUBLIC SW32 StringToInteger ( const char *  string,
W32 *  error 
)

Convert string to integer.

Parameters:
[in] string The String to be converted to an Integer.
[out] error Error code. See header.
Returns:
An integer value.

Here is the caller graph for this function:

PUBLIC W32 wt_strhash ( const char *  string,
W32  length,
W32  mask 
)

Generates a hash value from string.

Parameters:
[in] string NUL-terminated string to hash.
Returns:
Returns hash value