/
githubmirror
/
omim
Обзор
Документация
Войти
/
githubmirror
/
omim
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
android-951
map/ge0_parser.hpp
34 строки
902 B
Maxim Pimenov
Got rid of the old style std/ includes for several files, mostly in map/ and platform/.
23 сен 2019, 13:25
23 сен 2019, 13:25
bfc0b02
Код
Авторство
О чём код?
#pragma once #include "base/base.hpp" #include <cstdint> #include <string> namespace url_scheme { struct ApiPoint; class Ge0Parser { public: Ge0Parser(); bool Parse(std::string const & url, url_scheme::ApiPoint & outPoint, double & outZoomLevel); protected: uint8_t DecodeBase64Char(char const c); static double DecodeZoom(uint8_t const zoomByte); void DecodeLatLon(std::string const & url, double & lat, double & lon); void DecodeLatLonToInt(std::string const & url, int & lat, int & lon, size_t const bytes); double DecodeLatFromInt(int const lat, int const maxValue); double DecodeLonFromInt(int const lon, int const maxValue); std::string DecodeName(std::string name); void SpacesToUnderscore(std::string & name); void ValidateName(std::string & name); static bool IsHexChar(char const a); private: uint8_t m_base64ReverseCharTable[256]; }; } // namespace url_api