Lines Matching defs:hasExponent
530 bool hasExponent = false;
539 if (!CheckZeroBeginNumber(hasExponent, hasDecimal)) {
543 if (!CheckNonZeroBeginNumber(hasExponent, hasDecimal)) {
552 return ConvertToNumber(strNum, negative, hasExponent, hasDecimal);
556 JSTaggedValue JsonParser<T>::ConvertToNumber(const std::string &str, bool negative, bool hasExponent, bool hasDecimal)
589 return (hasExponent || hasDecimal) ? JSTaggedValue::TryCastDoubleToInt32(v) :
1014 bool JsonParser<T>::IsDecimalsLegal(bool &hasExponent)
1025 if (hasExponent || current_ == end_) {
1032 hasExponent = true;
1041 bool JsonParser<T>::IsExponentLegal(bool &hasExponent)
1043 if (hasExponent || current_ == end_) {
1060 bool JsonParser<T>::CheckZeroBeginNumber(bool &hasExponent, bool &hasDecimal)
1065 if (!IsDecimalsLegal(hasExponent)) {
1069 if (!IsExponentLegal(hasExponent)) {
1080 bool JsonParser<T>::CheckNonZeroBeginNumber(bool &hasExponent, bool &hasDecimal)
1088 if (!IsDecimalsLegal(hasExponent)) {
1092 if (!IsExponentLegal(hasExponent)) {