+ // replace ".[ExecutableType]" with "[ExecutableExt]"
+ {
+ StringBuffer output;
+ const char *pattern = ".[ExecutableType]";
+ for ( const char *i = m_string.c_str(); *i != '\0'; ++i )
+ {
+ if ( strncmp( pattern, i, sizeof( pattern ) ) == 0 )
+ {
+ output.push_string("[ExecutableExt]");
+ i += strlen( pattern ) - 1;
+ }
+ else
+ {
+ output.push_back(*i);
+ }
+ }
+ setString(output.c_str());
+ }
+