From 832e276e94d4d5a30885e6e352ffdd19f4f16f04 Mon Sep 17 00:00:00 2001 From: Aotrix <9aotrix@protonmail.com> Date: Tue, 11 Nov 2025 18:02:09 +0100 Subject: added parameters --- subprojects/battleNetApi/src/apiUrl.cpp | 14 +++++++++----- subprojects/battleNetApi/src/token.cpp | 4 ++-- 2 files changed, 11 insertions(+), 7 deletions(-) (limited to 'subprojects/battleNetApi/src') diff --git a/subprojects/battleNetApi/src/apiUrl.cpp b/subprojects/battleNetApi/src/apiUrl.cpp index 89f7a5f..e08c8c7 100644 --- a/subprojects/battleNetApi/src/apiUrl.cpp +++ b/subprojects/battleNetApi/src/apiUrl.cpp @@ -1,11 +1,15 @@ #include "apiUrl.hpp" #include -ApiUrl::ApiUrl(const std::string iContentType) : mContentType{iContentType} {} -void ApiUrl::setLocale(const std::string iLocale) { - aParameters["locale"] = iLocale; //(std::chrono::utc_clock::now().time_since_epoch()); } -std::string Token::extractFirstMatchRegex(const std::string &iText, const std::string &iRegex) const { +std::string Token::extractTokenWithRegex(const std::string &iText, const std::string &iRegex) const { std::regex regex(iRegex); auto aMatchBegin = std::sregex_iterator(iText.begin(), iText.end(), regex); auto aMatchEnd = std::sregex_iterator(); -- cgit v1.2.3