/
githubmirror
/
amphtml
Обзор
Документация
Войти
/
githubmirror
/
amphtml
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
validator/cpp/engine/parse-viewport.h
21 строка
820 B
Boxiao Cao
♻️ Use single bazel workspace for validator (#37131)
14 дек 2021, 00:56
Не верифицирован
14 дек 2021, 00:56
9b8d9f4
Код
Авторство
О чём код?
#ifndef CPP_ENGINE_PARSE_VIEWPORT_H_ #define CPP_ENGINE_PARSE_VIEWPORT_H_ #include <map> #include <string> namespace amp::validator::parse_viewport { // Parses |content| using the algorithm described at // https://drafts.csswg.org/css-device-adapt/#parsing-algorithm. // This algorithm was originally written down to parse the content // of a viewport meta tag, like // <meta name='viewport' content='a=b,c=d'> // but can be useful for parsing other lists of key/value pairs as well. // // The keys returned by this function are lower-cased, // to make it easy to implement case-insensitive lookup. // The values returned by this function remain as is. std::map<std::string, std::string> ParseContent(const std::string& content); } // namespace amp::validator::parse_viewport #endif // CPP_ENGINE_PARSE_VIEWPORT_H_