VR-Vantage 2.2 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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).
template<typename Ch >
SizeType StrLen (const Ch *s)
 Custom strlen() which works on different character types.

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

References RAPIDJSON_ASSERT.

Referenced by rapidjson::GenericReader< Encoding, Allocator >::ParseNumber().

template<typename Ch >
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.

Referenced by rapidjson::GenericValue< Encoding, Allocator >::AddMember(), rapidjson::GenericValue< Encoding, Allocator >::FindMember(), rapidjson::GenericValue< Encoding, Allocator >::GenericValue(), rapidjson::GenericValue< Encoding, Allocator >::SetString(), rapidjson::Writer< Stream, Encoding, Allocator >::String(), and rapidjson::PrettyWriter< Stream, Encoding, Allocator >::String().



Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)