| 104 | /***********************************************************************************/ |
| 105 | |
| 106 | bool ContainsPartialString( |
| 107 | const std::string& rMainString, |
| 108 | const std::string& rToCheck |
| 109 | ) |
| 110 | { |
| 111 | // Value to return |
| 112 | const std::string& sub_string = rMainString; |
| 113 | |
| 114 | // Search for the substring in string |
| 115 | std::size_t pos = sub_string.find(rToCheck); |
| 116 | |
| 117 | // Return true if found |
| 118 | if (pos != std::string::npos) { |
| 119 | return true; |
| 120 | } |
| 121 | |
| 122 | return false; |
| 123 | } |
| 124 | |
| 125 | /***********************************************************************************/ |
| 126 | /***********************************************************************************/ |