Torque3D Documentation / _generateds / rapidjson::internal

rapidjson::internal

Engine/source/persistence/rapidjson/internal/pow10.h

More...

Classes:

class

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

Public Functions

double
Pow10(int n)

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

StrLen(const Ch * s)

Custom strlen() which works on different character types.

Detailed Description

Public Functions

Pow10(int n)

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

This function uses lookup table for fast and accurate results. Parameters:

n

positive/negative exponent. Must <= 308.

return:

10.0^n

StrLen(const Ch * s)

Custom strlen() which works on different character types.

Parameters:

Ch

Character type (e.g. char, wchar_t, short)

Parameters:
s

Null-terminated input string.

return:

Number of characters in the string.

note:

This has the same semantics as strlen(), the return value is not number of Unicode codepoints.