def METHOD_NAME(name_to_search, subtype, r_pos=False):
    cryptocurrencies = {}
    # for subtype in subtypes:
    r_name = sanitize_cryptocurrency_name_to_search(name_to_search, subtype)
    if not name_to_search or isinstance(r_name, dict):
        # break
        return cryptocurrencies
    r_name = re.compile(r_name)
    for crypto_name in get_all_cryptocurrencies_by_subtype(subtype):
        res = re.search(r_name, crypto_name)
        if res:
            cryptocurrencies[crypto_name] = {}
            if r_pos:
                cryptocurrencies[crypto_name]['hl-start'] = res.start()
                cryptocurrencies[crypto_name]['hl-end'] = res.end()
    return cryptocurrencies