MCPcopy Create free account
hub / github.com/MITK/MITK / getAttributeValue

Method getAttributeValue

Modules/CppMicroServices/src/usLDAPExpr.cpp:754–783  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

752}
753
754std::string LDAPExpr::ParseState::getAttributeValue()
755{
756 std::string sb;
757 bool exit = false;
758 while( !exit ) {
759 Byte c = peek( );
760 switch(c)
761 {
762 case '(':
763 case ')':
764 exit = true;
765 break;
766 case '*':
767 sb.append(1, LDAPExprConstants::WILDCARD());
768 break;
769 case '\\':
770 sb.append(1, m_str.at(++m_pos));
771 break;
772 default:
773 sb.append(1, c);
774 break;
775 }
776
777 if ( !exit )
778 {
779 m_pos++;
780 }
781 }
782 return sb;
783}
784
785void LDAPExpr::ParseState::error( const std::string &m ) const
786{

Callers 1

ParseSimpleMethod · 0.80

Calls 2

WILDCARDFunction · 0.85
atMethod · 0.80

Tested by

no test coverage detected