Duration
- Converted Duration::valid to a static method, to match Date.
This commit is contained in:
@@ -237,7 +237,7 @@ bool Duration::negative () const
|
|||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
bool Duration::valid (const std::string& input) const
|
bool Duration::valid (const std::string& input)
|
||||||
{
|
{
|
||||||
std::string lower_input = lowerCase (input);
|
std::string lower_input = lowerCase (input);
|
||||||
|
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ public:
|
|||||||
std::string formatCompact () const;
|
std::string formatCompact () const;
|
||||||
|
|
||||||
bool negative () const;
|
bool negative () const;
|
||||||
bool valid (const std::string&) const;
|
static bool valid (const std::string&);
|
||||||
void parse (const std::string&);
|
void parse (const std::string&);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|||||||
Reference in New Issue
Block a user