| 144 | } |
| 145 | |
| 146 | inline bool ContainsSubstring( const InlineString& name, const char* substr ) |
| 147 | { |
| 148 | size_t len = strlen( substr ); |
| 149 | for( const char* s = name.start; s + len <= name.end; ++s ) |
| 150 | { |
| 151 | if( strncmp( s, substr, len ) == 0 ) |
| 152 | { |
| 153 | return true; |
| 154 | } |
| 155 | } |
| 156 | return false; |
| 157 | } |
no outgoing calls
no test coverage detected