Home
last modified time | relevance | path

Searched refs:curf (Results 1 – 2 of 2) sorted by relevance

/AliOS-Things-master/components/mqtt/MQTTClient-C/
A DMQTTClient.c153 char* curf = topicFilter; in isTopicMatched() local
157 while (*curf && curn < curn_end) in isTopicMatched()
159 if (*curn == '/' && *curf != '/') in isTopicMatched()
161 if (*curf != '+' && *curf != '#' && *curf != *curn) in isTopicMatched()
163 if (*curf == '+') in isTopicMatched()
169 else if (*curf == '#') in isTopicMatched()
171 curf++; in isTopicMatched()
175 return (curn == curn_end) && (*curf == '\0'); in isTopicMatched()
/AliOS-Things-master/components/linkkit/mqtt/impl/
A Diotx_mqtt_client.c1180 char *curf; in iotx_mc_is_topic_matched() local
1188 curf = topicFilter; in iotx_mc_is_topic_matched()
1192 while (*curf && curn < curn_end) { in iotx_mc_is_topic_matched()
1193 if (*curn == '/' && *curf != '/') { in iotx_mc_is_topic_matched()
1197 if (*curf != '+' && *curf != '#' && *curf != *curn) { in iotx_mc_is_topic_matched()
1201 if (*curf == '+') { in iotx_mc_is_topic_matched()
1207 } else if (*curf == '#') { in iotx_mc_is_topic_matched()
1210 curf++; in iotx_mc_is_topic_matched()
1214 return (curn == curn_end) && (*curf == '\0'); in iotx_mc_is_topic_matched()

Completed in 8 milliseconds