internal
Engine/source/persistence/rapidjson/document.h
Classes:
Regular expression engine with subset of ECMAscript grammar.
A type-unsafe stack for storing different types of data.
Keep reference.
Do copy optimization.
Public Typedefs
GenericRegex< UTF8<> >
Regex
RegexSearch
Public Variables
Represents an invalid index in GenericRegex::State::out, out1.
Public Functions
int
CheckWithinHalfULP(double b, const BigInteger & d, int dExp)
int
bool
CountStringCodePoint(const typename Encoding::Ch * s, SizeType length, SizeType * outCount)
Returns number of code points in a encoded string.
char *
dtoa(double value, char * buffer, int maxDecimalPlaces)
double
FastPath(double significand, int exp)
GetCachedPower(int e, int * K)
GetCachedPower10(int exp, int * outExp)
GetCachedPowerByIndex(size_t index)
const char *
GrisuRound(char * buffer, int len, uint64_t delta, uint64_t rest, uint64_t ten_kappa, uint64_t wp_w)
double
Pow10(int n)
Computes integer powers of 10 in double (10.0^n).
char *
Prettify(char * buffer, int length, int k, int maxDecimalPlaces)
double
StrtodBigInteger(double approx, const char * decimals, int dLen, int dExp)
bool
StrtodDiyFp(const char * decimals, int dLen, int dExp, double * result)
bool
StrtodFast(double d, int p, double * result)
double
StrtodFullPrecision(double d, int p, const char * decimals, size_t length, size_t decimalPosition, int exp)
double
StrtodNormalPrecision(double d, int p)
char *
WriteExponent(int K, char * buffer)
Detailed Description
Public Typedefs
typedef GenericRegex< UTF8<> > Regex
typedef GenericRegexSearch< Regex > RegexSearch
Public Variables
const SizeType kRegexInvalidRange
const SizeType kRegexInvalidState
Represents an invalid index in GenericRegex::State::out, out1.
Public Functions
CheckWithinHalfULP(double b, const BigInteger & d, int dExp)
CountDecimalDigit32(uint32_t n)
CountStringCodePoint(const typename Encoding::Ch * s, SizeType length, SizeType * outCount)
Returns number of code points in a encoded string.
DigitGen(const DiyFp & W, const DiyFp & Mp, uint64_t delta, char * buffer, int * len, int * K)
dtoa(double value, char * buffer, int maxDecimalPlaces)
FastPath(double significand, int exp)
GetCachedPower(int e, int * K)
GetCachedPower10(int exp, int * outExp)
GetCachedPowerByIndex(size_t index)
GetDigitsLut()
Grisu2(double value, char * buffer, int * length, int * K)
GrisuRound(char * buffer, int len, uint64_t delta, uint64_t rest, uint64_t ten_kappa, uint64_t wp_w)
i32toa(int32_t value, char * buffer)
i64toa(int64_t value, char * buffer)
Min3(T a, T b, T c)
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 | non-negative exponent. Must <= 308. |
10.0^n
Prettify(char * buffer, int length, int k, int maxDecimalPlaces)
StrLen(const Ch * s)
Custom strlen() which works on different character types.
Parameters:
Ch | Character type (e.g. char, wchar_t, short) |
s | Null-terminated input string. |
Number of characters in the string.
note:This has the same semantics as strlen(), the return value is not number of Unicode codepoints.
StrLen(const char * s)
StrLen(const wchar_t * s)
StrtodBigInteger(double approx, const char * decimals, int dLen, int dExp)
StrtodDiyFp(const char * decimals, int dLen, int dExp, double * result)
StrtodFast(double d, int p, double * result)
StrtodFullPrecision(double d, int p, const char * decimals, size_t length, size_t decimalPosition, int exp)
StrtodNormalPrecision(double d, int p)
Swap(T & a, T & b)
Custom swap() to avoid dependency on C++
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(uint32_t value, char * buffer)
u64toa(uint64_t value, char * buffer)
WriteExponent(int K, char * buffer)