Lines Matching refs:string
28 std::string digitAggregate = "0123456789";
33 std::string alphasAggregate = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
38 std::string schemeAggregate = digitAggregate + alphasAggregate + "+-.| _-~!$&=,;'(){}*";
43 std::string uricAggregate = schemeAggregate + ";/?:@&=$,[]_!~*'()%\"";
48 std::string pathAggregate = schemeAggregate + ";/:@&=$,_!~*'()%";
53 std::string userInfoAggregate = schemeAggregate + ";:&=$,_!~*'()%";
58 std::string portAggregate = digitAggregate + alphasAggregate + ".:@-;&=+$,-_!~*'()";
64 Uri::Uri(const std::string input)
90 if (pos != std::string::npos) {
97 if (pos != std::string::npos) {
104 if (pos != std::string::npos) {
118 if (pos != std::string::npos && pos == 0) {
120 data_ = data_.substr(2); // 2:Intercept the string from the second subscript
136 bool Uri::CheckCharacter(std::string data, std::bitset<MAX_BIT_SIZE> rule, bool flag) const
168 std::string fragment = data_.substr(pos + 1);
179 std::string query = data_.substr(pos + 1);
191 if (slashPos != std::string::npos && slashPos < pos) {
204 std::string scheme = data_.substr(0, pos);
230 if (data_.find('[') != std::string::npos || data_.find(']') != std::string::npos) {
250 if (pos != std::string::npos) {
259 if (pos != std::string::npos) {
268 if (pos != std::string::npos) {
270 if (pos1 == std::string::npos || pos > pos1) {
282 std::string path = data_.substr(pos);
293 std::string userInfo = data_.substr(0, pos);
304 std::string port = data_.substr(pos + 1);
346 std::string str = data_.substr(1, data_.size() - 2); // 2:Intercept the string from the second subscript
397 std::string Uri::ToString() const
420 if (index == std::string::npos) {
429 std::string Uri::AddQueryValue(const std::string key, const std::string value) const
434 std::string Uri::AddSegment(const std::string pathSegment) const
439 std::string Uri::BuildUriString(const std::string str, const std::string param) const
441 std::string result = "";
476 std::vector<std::string> Uri::GetSegment() const
478 std::vector<std::string> segments;
484 for (current = uriData_.path.find('/', previous); current != std::string::npos;
487 std::string segment = uriData_.path.substr(previous, current - previous);
498 std::string Uri::IsFailed() const
503 std::string Uri::Normalize() const
505 std::vector<std::string> temp;
512 while ((pos = uriData_.path.find('/', left)) != std::string::npos) {
520 std::vector<std::string> normalizeTemp;
533 std::string normalizePath = "";
546 std::string Uri::Split(const std::string &path) const
548 std::string normalizeUri = "";
578 std::string Uri::GetScheme() const
583 std::string Uri::GetAuthority() const
588 std::string Uri::GetSsp() const
593 std::string Uri::GetUserinfo() const
598 std::string Uri::GetHost() const
603 std::string Uri::GetPort() const
608 std::string Uri::GetPath() const
613 std::string Uri::GetQuery() const
618 std::string Uri::GetFragment() const
623 std::string Uri::ClearQuery() const