Does QT QString contain?

purpose

Originally I wanted to do a fuzzy query. The data is a QMap collection of key value. If you want to query whether a key is included in the Qmap collection, you can directly return bool to map.contains(key) to know, but if you want to do a fuzzy check, just Can't be used anymore.

Ideas

If you need fuzzy query, you need to make a judgment for each key, and then store the included keys

achieve

interface

Create a simple interface

Guess you like

Origin blog.csdn.net/qq_45646951/article/details/113736983