| | |
| | | return FALSE; |
| | | } |
| | | |
| | | paramSkipWhitespace(context); |
| | | if (locateText(context->paramlist.parameters, context->paramlist.length, value, &length)) { |
| | | paramSkipBytes(context, length); |
| | | paramSkipBytes(context, length + 2); |
| | | paramSkipWhitespace(context); |
| | | if (len) { |
| | | *len = length; |
| | | } |
| | |
| | | return FALSE; |
| | | } |
| | | |
| | | scpi_bool_t SCPI_IsCmd(scpi_t * context, const char * cmd) { |
| | | if (! context->paramlist.cmd) { |
| | | return FALSE; |
| | | } |
| | | |
| | | const char * pattern = context->paramlist.cmd->pattern; |
| | | return matchCommand (pattern, cmd, strlen (cmd)); |
| | | } |
| | | |
| | | scpi_bool_t SCPI_Match(const char * pattern, const char * value, size_t len) { |
| | | return matchCommand (pattern, value, len); |
| | | } |