Torque2D Reference

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

- Namespace List
- Namespace Members

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

  n | positive/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

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

Parameters

  s | Null-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.