【文件属性】:
文件名称:uap-cpp:ua-parser的C ++实现
文件大小:40KB
文件格式:ZIP
更新时间:2021-05-04 13:03:16
C++
ua_parser C ++库
用法
Linux
要构建(静态)库:
make uaparser_cpp
要构建和运行测试:
make test
需要最新的(GCC> = 4.8或Clang> = 3.9都可以)C ++ 11编译器。
CMake构建
图书馆
cd uap-cpp
mkdir build
cd build
cmake ..
make uap-cpp-static
make uap-cpp-shared
测试
准备gtest:
apt-get install libgtest-dev
apt-get install cmake
cd /usr/src/gtest
cmake CMakeLists.txt
make
cp *.a /usr/lib
从构建目录运行:
make tests
从uap-cpp目录运行:
./build/UaParserTest
基准
从构
【文件预览】:
uap-cpp-master
----UaParserTest.cpp(12KB)
----.gitmodules(102B)
----packages.config(186B)
----benchmarks()
--------useragents.txt(106KB)
--------UaParserBench.cpp(620B)
--------README.md(623B)
----test_device_type_mobile.yaml(59KB)
----UaParser.vcxproj(8KB)
----UaParser.h(1KB)
----UaParser.cpp(11KB)
----uap-core()
----.clang-format(2KB)
----CMakeLists.txt(2KB)
----.travis.yml(331B)
----internal()
--------ReplaceTemplate.cpp(1KB)
--------MakeUnique.h(235B)
--------Pattern.cpp(1KB)
--------SnippetMapping.h(2KB)
--------AlternativeExpander.h(576B)
--------SnippetIndex.h(1KB)
--------StringView.h(696B)
--------Pattern.h(866B)
--------README.md(3KB)
--------ReplaceTemplate.h(457B)
--------SnippetIndex.cpp(5KB)
--------StringUtils.h(2KB)
--------AlternativeExpander.cpp(5KB)
----LICENSE(1KB)
----README.md(2KB)
----Makefile(1KB)
----.gitignore(465B)
----uap-cpp.sln(2KB)
----UaParserTest.vcxproj(8KB)