Exemplo n.º 1
0
 double
 getDouble()
 {
     if (mState == eIllegal || mBuffer.IsEmpty() ||
         (mBuffer.Length() == 1 && mBuffer[0] == '.')) {
         return MOZ_DOUBLE_NaN();
     }
     return mSign*PR_strtod(mBuffer.get(), 0);
 }
Exemplo n.º 2
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();
}