Lines Matching full:n
27 static bool IsBetween(int n, int lower, int hign) in IsBetween() argument
29 if (n < lower || n > hign) { in IsBetween()
399 static bool MinuteIsValid(int n) in MinuteIsValid() argument
402 return IsBetween(n, 0, 59); in MinuteIsValid()
405 static bool SecondIsValid(int n) in SecondIsValid() argument
408 return IsBetween(n, 0, 59); in SecondIsValid()
411 static bool HourIsValid(int n) in HourIsValid() argument
414 return IsBetween(n, 0, 24); in HourIsValid()
417 static bool MilliSecondIsValid(int n) in MilliSecondIsValid() argument
420 return IsBetween(n, 0, 999); in MilliSecondIsValid()
452 bool IsValid(int n) const in IsValid() argument
455 return (index_ == 1 && MinuteIsValid(n)) || (index_ == 2 && SecondIsValid(n)); in IsValid()
458 bool IsValidSecond(int n) const in IsValidSecond() argument
461 return (index_ == 2 && SecondIsValid(n)); in IsValidSecond()
492 static bool MonthIsValid(int n) in MonthIsValid() argument
494 return IsBetween(n, 1, MOUTH_PER_YEAR); in MonthIsValid()
497 static bool DayIsValid(int n) in DayIsValid() argument
499 return IsBetween(n, 1, JSDate::MAX_DAYS_MONTH); in DayIsValid()