Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/third_party/tinygettext/src/dictionary.cpp
Show All 20 Lines | |||||
#include <assert.h> | #include <assert.h> | ||||
#include "tinygettext/log_stream.hpp" | #include "tinygettext/log_stream.hpp" | ||||
#include "tinygettext/dictionary.hpp" | #include "tinygettext/dictionary.hpp" | ||||
namespace tinygettext { | namespace tinygettext { | ||||
namespace { | |||||
std::ostream& operator<<(std::ostream& o, const std::vector<std::string>& v) | std::ostream& operator<<(std::ostream& o, const std::vector<std::string>& v) | ||||
{ | { | ||||
for (std::vector<std::string>::const_iterator it = v.begin(); it != v.end(); ++it) | for (std::vector<std::string>::const_iterator it = v.begin(); it != v.end(); ++it) | ||||
{ | { | ||||
if (it != v.begin()) | if (it != v.begin()) | ||||
o << ", "; | o << ", "; | ||||
o << "'" << *it << "'"; | o << "'" << *it << "'"; | ||||
} | } | ||||
return o; | return o; | ||||
} | } | ||||
} // namespace | |||||
Dictionary::Dictionary(const std::string& charset_) : | Dictionary::Dictionary(const std::string& charset_) : | ||||
entries(), | entries(), | ||||
ctxt_entries(), | ctxt_entries(), | ||||
charset(charset_), | charset(charset_), | ||||
plural_forms(), | plural_forms(), | ||||
m_has_fallback(false), | m_has_fallback(false), | ||||
m_fallback() | m_fallback() | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 197 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator