Welcome to mirror list, hosted at ThFree Co, Russian Federation.

reader.cpp « coding - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2eb6bb7ed9cc7a9dccee4b412d40aed8f9c7d6cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "reader.hpp"

#include "../../base/string_utils.hpp"


void Reader::ReadAsString(string & s) const
{
  s.clear();
  size_t const sz = Size();
  s.resize(sz);
  Read(0, &s[0], sz);
}

bool ModelReader::IsEqual(string const & fName) const
{
#if defined(OMIM_OS_WINDOWS)
  return strings::EqualNoCase(fName, m_name);
#else
  return (fName == m_name);
#endif
}