Euphoria
findstring.h
Go to the documentation of this file.
1 #pragma once
2 
3 
4 
5 
6 
7 namespace eu::core
8 {
9  // find part of a string in another
10  // todo(Gustav): replace with a regex instead?
11  bool
12  find(const std::string& target, const std::string& search);
13 
14  // find all of the strings in the target
15  bool
16  find(const std::string& target, const std::vector<std::string>& searches);
17 
18  // find the string in any target
19  bool
20  find(const std::vector<std::string>& targets, const std::string& search);
21 
22  // find all of the strings in any target
23  bool
24  find
25  (
26  const std::vector<std::string>& targets,
27  const std::vector<std::string>& searches
28  );
29 }
bool find(const std::string &target, const std::string &search)
Definition: findstring.cc:8