Parse UserAgent for C++