Torque2D Reference
Classes | Functions
rapidjson::internal Namespace Reference

Classes

class  Stack
 A type-unsafe stack for storing different types of data. More...
 

Functions

double Pow10 (int n)
 Computes integer powers of 10 in double (10.0^n). More...
 
template<typename Ch >
SizeType StrLen (const Ch *s)
 Custom strlen() which works on different character types. More...
 

Function Documentation

double rapidjson::internal::Pow10 ( int  n)
inline

Computes integer powers of 10 in double (10.0^n).

This function uses lookup table for fast and accurate results.

Parameters
npositive/negative exponent. Must <= 308.
Returns
10.0^n
SizeType rapidjson::internal::StrLen ( const Ch *  s)
inline

Custom strlen() which works on different character types.

Template Parameters
ChCharacter type (e.g. char, wchar_t, short)
Parameters
sNull-terminated input string.
Returns
Number of characters in the string.
Note
This has the same semantics as strlen(), the return value is not number of Unicode codepoints.