Rename Link to link

This commit is contained in:
Howard Hinnant
2016-05-28 20:20:28 -04:00
parent 67c31d794e
commit b0a23f2cff
2 changed files with 15 additions and 15 deletions
+5 -5
View File
@@ -1904,9 +1904,9 @@ operator<<(std::ostream& os, const time_zone& z)
return os;
}
// Link
// link
Link::Link(const std::string& s)
link::link(const std::string& s)
{
using namespace date;
std::istringstream in(s);
@@ -1916,7 +1916,7 @@ Link::Link(const std::string& s)
}
std::ostream&
operator<<(std::ostream& os, const Link& x)
operator<<(std::ostream& os, const link& x)
{
using namespace date;
detail::save_stream _(os);
@@ -2146,7 +2146,7 @@ init_tzdb()
}
else if (word == "Link")
{
db.links.push_back(Link(line));
db.links.push_back(link(line));
continue_zone = false;
}
else if (word == "Leap")
@@ -2230,7 +2230,7 @@ locate_zone(const std::string& tz_name)
if (zi == db.zones.end() || zi->name() != tz_name)
{
auto li = std::lower_bound(db.links.begin(), db.links.end(), tz_name,
[](const Link& z, const std::string& nm)
[](const link& z, const std::string& nm)
{
return z.name() < nm;
});