MCPcopy Create free account
hub / github.com/CppMicroServices/CppMicroServices / getAttributeName

Method getAttributeName

framework/src/util/LDAPExpr.cpp:1119–1143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1117 }
1118
1119 std::string
1120 LDAPExpr::ParseState::getAttributeName()
1121 {
1122 std::size_t start = m_pos;
1123 std::size_t n = 0;
1124 bool nIsSet = false;
1125 for (;; m_pos++)
1126 {
1127 Byte c = peek();
1128 if (c == '(' || c == ')' || c == '<' || c == '>' || c == '=' || c == '~')
1129 {
1130 break;
1131 }
1132 else if (!std::isspace(c))
1133 {
1134 n = m_pos - start + 1;
1135 nIsSet = true;
1136 }
1137 }
1138 if (!nIsSet)
1139 {
1140 return std::string();
1141 }
1142 return m_str.substr(start, n);
1143 }
1144
1145 std::string
1146 LDAPExpr::ParseState::getAttributeValue()

Callers 1

ParseSimpleMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected