* Return the string name with prefix stripped. */
| 29 | * Return the string name with prefix stripped. |
| 30 | */ |
| 31 | std::string strip_prefix(const std::string& name, |
| 32 | const std::string& prefix) { |
| 33 | if (name.substr(0, prefix.size()) == prefix) { |
| 34 | return name.substr(prefix.size()); |
| 35 | } else { |
| 36 | return name; |
| 37 | } |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | using namespace PLYWriterHelper; |
no test coverage detected