MCPcopy Create free account
hub / github.com/KratosMultiphysics/Kratos / ContainsPartialString

Function ContainsPartialString

kratos/utilities/string_utilities.cpp:106–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104/***********************************************************************************/
105
106bool 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/***********************************************************************************/

Callers 4

InitializeParserMethod · 0.85
IdentifyDataTXTMethod · 0.85

Calls 1

findMethod · 0.45

Tested by 1