double getDouble() { if (mState == eIllegal || mBuffer.IsEmpty() || (mBuffer.Length() == 1 && mBuffer[0] == '.')) { return MOZ_DOUBLE_NaN(); } return mSign*PR_strtod(mBuffer.get(), 0); }
/* * Returns the default priority of this Pattern. * UnionPatterns don't like this. * This should be called on the simple patterns. */ double txUnionPattern::getDefaultPriority() { NS_ERROR("Don't call getDefaultPriority on txUnionPattern"); return MOZ_DOUBLE_NaN(); }