internal Namespace Reference#
Typedefs | |
typedef GenericRegex< UTF8<> > | Regex |
typedef GenericRegexSearch< Regex > | RegexSearch |
Functions | |
uint32_t | clzll (uint64_t x) |
DiyFp | GetCachedPowerByIndex (size_t index) |
DiyFp | GetCachedPower (int e, int *K) |
DiyFp | GetCachedPower10 (int exp, int *outExp) |
void | GrisuRound (char *buffer, int len, uint64_t delta, uint64_t rest, uint64_t ten_kappa, uint64_t wp_w) |
int | CountDecimalDigit32 (uint32_t n) |
void | DigitGen (const DiyFp &W, const DiyFp &Mp, uint64_t delta, char *buffer, int *len, int *K) |
void | Grisu2 (double value, char *buffer, int *length, int *K) |
char * | WriteExponent (int K, char *buffer) |
char * | Prettify (char *buffer, int length, int k, int maxDecimalPlaces) |
char * | dtoa (double value, char *buffer, int maxDecimalPlaces=324) |
const char * | GetDigitsLut () |
char * | u32toa (uint32_t value, char *buffer) |
char * | i32toa (int32_t value, char *buffer) |
char * | u64toa (uint64_t value, char *buffer) |
char * | i64toa (int64_t value, char *buffer) |
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... | |
template<> | |
SizeType | StrLen (const char *s) |
template<> | |
SizeType | StrLen (const wchar_t *s) |
template<typename Ch > | |
int | StrCmp (const Ch *s1, const Ch *s2) |
Custom strcmpn() which works on different character types. More... | |
template<typename Encoding > | |
bool | CountStringCodePoint (const typename Encoding::Ch *s, SizeType length, SizeType *outCount) |
Returns number of code points in a encoded string. More... | |
double | FastPath (double significand, int exp) |
double | StrtodNormalPrecision (double d, int p) |
template<typename T > | |
T | Min3 (T a, T b, T c) |
int | CheckWithinHalfULP (double b, const BigInteger &d, int dExp) |
bool | StrtodFast (double d, int p, double *result) |
template<typename Ch > | |
bool | StrtodDiyFp (const Ch *decimals, int dLen, int dExp, double *result) |
template<typename Ch > | |
double | StrtodBigInteger (double approx, const Ch *decimals, int dLen, int dExp) |
template<typename Ch > | |
double | StrtodFullPrecision (double d, int p, const Ch *decimals, size_t length, size_t decimalPosition, int exp) |
template<typename T > | |
void | Swap (T &a, T &b) RAPIDJSON_NOEXCEPT |
Custom swap() to avoid dependency on C++ <algorithm> header. More... | |
Typedef Documentation
◆ Regex
typedef GenericRegex<UTF8<> > internal::Regex |
◆ RegexSearch
typedef GenericRegexSearch<Regex> internal::RegexSearch |
Function Documentation
◆ CheckWithinHalfULP()
|
inline |
◆ clzll()
◆ CountDecimalDigit32()
|
inline |
◆ CountStringCodePoint()
template<typename Encoding >
bool internal::CountStringCodePoint | ( | const typename Encoding::Ch * | s, |
SizeType | length, | ||
SizeType * | outCount | ||
) |
Returns number of code points in a encoded string.
◆ DigitGen()
|
inline |
◆ dtoa()
|
inline |
◆ FastPath()
|
inline |
◆ GetCachedPower()
|
inline |
◆ GetCachedPower10()
|
inline |
◆ GetCachedPowerByIndex()
|
inline |
◆ GetDigitsLut()
|
inline |
◆ Grisu2()
|
inline |
◆ GrisuRound()
|
inline |
closer
◆ i32toa()
|
inline |
◆ i64toa()
|
inline |
◆ Min3()
template<typename T >
|
inline |
◆ Pow10()
|
inline |
Computes integer powers of 10 in double (10.0^n).
This function uses lookup table for fast and accurate results.
- Parameters
-
n non-negative exponent. Must <= 308.
- Returns
- 10.0^n
◆ Prettify()
|
inline |
◆ StrCmp()
template<typename Ch >
|
inline |
Custom strcmpn() which works on different character types.
- Template Parameters
-
Ch Character type (e.g. char, wchar_t, short)
- Parameters
-
s1 Null-terminated input string. s2 Null-terminated input string.
- Returns
- 0 if equal
◆ StrLen() [1/3]
template<typename Ch >
|
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.
◆ StrLen() [2/3]
template<>
|
inline |
◆ StrLen() [3/3]
template<>
|
inline |
◆ StrtodBigInteger()
template<typename Ch >
|
inline |
◆ StrtodDiyFp()
template<typename Ch >
|
inline |
◆ StrtodFast()
|
inline |
◆ StrtodFullPrecision()
template<typename Ch >
|
inline |
◆ StrtodNormalPrecision()
|
inline |
◆ Swap()
template<typename T >
|
inline |
Custom swap() to avoid dependency on C++ <algorithm> header.
- Template Parameters
-
T Type of the arguments to swap, should be instantiated with primitive C++ types only.
- Note
- This has the same semantics as std::swap().
◆ u32toa()
|
inline |
◆ u64toa()
|
inline |
◆ WriteExponent()
|
inline |