| 1095 | } |
| 1096 | |
| 1097 | string MakeInternal(const string& fname) { |
| 1098 | auto dot_pos = fname.rfind('.'); |
| 1099 | if (dot_pos == string::npos) { |
| 1100 | return strings::StrCat(fname, "_internal"); |
| 1101 | } else { |
| 1102 | return strings::StrCat(fname.substr(0, dot_pos), "_internal", |
| 1103 | fname.substr(dot_pos)); |
| 1104 | } |
| 1105 | } |
| 1106 | |
| 1107 | } // namespace |
| 1108 |